Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(milestoneupdater): May 2024 update #110

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions milestoneupdater/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
"example-files",
"files_downloadlimit",
"files_pdfviewer",
"files_rightclick",
"files_videoplayer",
"firstrunwizard",
"logreader",
"nextcloud_announcements",
Expand All @@ -30,25 +28,25 @@
"viewer"
],
"dueDates": {
"Nextcloud 27.1.10": "2024-05-23",
"Nextcloud 27.1.11": "2024-06-20",
"Nextcloud 28.0.6": "2024-05-23",
"Nextcloud 28.0.7": "2024-06-20",
"Nextcloud 29.0.1": "2024-05-23",
"Nextcloud 29.0.2": "2024-06-20"
"Nextcloud 29.0.2": "2024-06-06",
"Nextcloud 29.0.3": "2024-06-20"
},
"closeMilestones": [
"Nextcloud 27.1.9",
"Nextcloud 27.1.10",
"Nextcloud 28.0.5",
"Nextcloud 29"
"Nextcloud 29",
"Nextcloud 29.0.1",
"Nextcloud 28.0.6"
],
"addMilestones": [
"Nextcloud 27.1.10",
"Nextcloud 27.1.11",
"Nextcloud 28.0.6",
"Nextcloud 27.1.12",
"Nextcloud 28.0.7",
"Nextcloud 29.0.1",
"Nextcloud 29.0.2"
"Nextcloud 28.0.8",
"Nextcloud 29.0.2",
"Nextcloud 29.0.3"
],
"versionAdded": {}
}
Expand Down
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