Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
review.typo3.org
gerrit
Commits
5744530b
Commit
5744530b
authored
Jan 29, 2021
by
Stephan Großberndt
Browse files
[TASK] Add response codes of intercept and b13.dev to patchset_created_log
parent
0c4e29b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
assets/hooks/change-merged.d/update-packagist.org.phpsh
View file @
5744530b
...
...
@@ -30,7 +30,7 @@ if ($result === 0 && !empty($composerJson)) {
$http
=
curl_init
(
'https://packagist.org/packages/'
.
$composerJson
->
name
);
curl_setopt
(
$http
,
CURLOPT_RETURNTRANSFER
,
TRUE
);
$result
=
curl_exec
(
$http
);
$http_status
=
curl_getinfo
(
$http
,
CURLINFO_
HTTP
_CODE
);
$http_status
=
curl_getinfo
(
$http
,
CURLINFO_
RESPONSE
_CODE
);
curl_close
(
$http
);
if
(
$http_status
===
200
)
{
...
...
assets/hooks/patchset-created.d/gerrit-adapter.core.b13.dev.phpsh
View file @
5744530b
...
...
@@ -25,5 +25,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($args));
// execute post
$result
=
curl_exec
(
$ch
);
echo
curl_getinfo
(
$ch
,
CURLINFO_RESPONSE_CODE
);
// close connection
curl_close
(
$ch
);
assets/hooks/patchset-created.d/intercept.typo3.com.phpsh
View file @
5744530b
...
...
@@ -33,5 +33,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
// execute post
$result
=
curl_exec
(
$ch
);
echo
curl_getinfo
(
$ch
,
CURLINFO_RESPONSE_CODE
);
// close connection
curl_close
(
$ch
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment