Skip to content

Commit

Permalink
feat(milestoneupdater): show milestone link for easy edit
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed May 28, 2024
1 parent 8e27c5b commit b1c7b7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions milestoneupdater/releases.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ function getDateTime($date) {
$textColor = $data['state'] === 'open' ? $COLOR_RED : '';
print($textColor . $config['org'] . '/' . $name . ': close milestone ' . $milestone . ' - state: ' . $textStyle . $data['state'] . $NO_COLOR . PHP_EOL);

// Show the link to the milestone if it is still open and needs to be closed
if ($data['state'] === 'open') {
print($textColor . ' └ Link: ' . $info['html_url'] . $NO_COLOR . PHP_EOL);
}

if(array_key_exists($milestone, $config['dueDates'])) {
$data['due_on'] = getDateTime($config['dueDates'][$milestone]);
}
Expand Down

0 comments on commit b1c7b7e

Please sign in to comment.