Update newlines to PHP_EOL in post-request-shared.php
This commit is contained in:
parent
18a5d3a751
commit
49915391d0
|
@ -32,7 +32,7 @@ $graphql_api_url = getenv( 'GITHUB_GRAPHQL_URL' );
|
||||||
function get_latest_milestone_from_api( $use_latest_when_null = false ) {
|
function get_latest_milestone_from_api( $use_latest_when_null = false ) {
|
||||||
global $repo_owner, $repo_name;
|
global $repo_owner, $repo_name;
|
||||||
|
|
||||||
echo "Getting the list of milestones...\n";
|
echo 'Getting the list of milestones...' . PHP_EOL;
|
||||||
|
|
||||||
$query = "
|
$query = "
|
||||||
repository(owner:\"$repo_owner\", name:\"$repo_name\") {
|
repository(owner:\"$repo_owner\", name:\"$repo_name\") {
|
||||||
|
@ -61,7 +61,7 @@ function get_latest_milestone_from_api( $use_latest_when_null = false ) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
echo 'Latest open milestone: ' . $milestones[0]['title'] . "\n";
|
echo 'Latest open milestone: ' . $milestones[0]['title'] . PHP_EOL;
|
||||||
|
|
||||||
$chosen_milestone = null;
|
$chosen_milestone = null;
|
||||||
foreach ( $milestones as $milestone ) {
|
foreach ( $milestones as $milestone ) {
|
||||||
|
@ -86,7 +86,7 @@ function get_latest_milestone_from_api( $use_latest_when_null = false ) {
|
||||||
|
|
||||||
// If all the milestones have a release branch, just take the newest one.
|
// If all the milestones have a release branch, just take the newest one.
|
||||||
if ( $use_latest_when_null && is_null( $chosen_milestone ) ) {
|
if ( $use_latest_when_null && is_null( $chosen_milestone ) ) {
|
||||||
echo "WARNING: No milestone without release branch found, the newest one will be assigned.\n";
|
echo 'WARNING: No milestone without release branch found, the newest one will be assigned.' . PHP_EOL;
|
||||||
$chosen_milestone = $milestones[0];
|
$chosen_milestone = $milestones[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue