Skip to content

Add EoL and new release reminder #1189

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

Merged
merged 4 commits into from
Mar 11, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Modify contents and title again
  • Loading branch information
Yang-33 committed Mar 10, 2025
commit 18ddef554470c9ada0d6acbb96e6eb139fb388bd
16 changes: 8 additions & 8 deletions .github/scripts/check-eol-newrelease.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ module.exports = async function checkEolAndNewReleases(actionCtx, config) {
// Check if it reached EoL within the last eolLookbackDays
if (eolDate <= now && eolDate >= eolLookbackDate) {
if (!release.cycle) return;
const title = `${languageName} ${release.cycle} reached End of Life`;
const title = `Drop ${languageName} ${release.cycle} support`;
const body = dedent(`
**EoL date**: ${release.eol}
endoflife.date for ${languageName}: ${eolViewUrl}

This version(${languageName} ${release.cycle}) has reached End of Life.
Please drop its support as needed.

**EoL date**: ${release.eol}
endoflife.date for ${languageName}: ${eolViewUrl}
`);
await createIssueIfNotExists(title, body, ['keep']);
}
Expand All @@ -190,13 +190,13 @@ module.exports = async function checkEolAndNewReleases(actionCtx, config) {
if (rDate >= newReleaseSince && rDate <= now) {
if (!release.cycle) return;
const ltsTag = ltsOnly ? ' (LTS)' : '';
const title = `${languageName} ${release.cycle}${ltsTag} is now available`;
const title = `Support ${languageName} ${release.cycle}${ltsTag}`;
const body = dedent(`
**Release date**: ${release.releaseDate}
endoflife.date for ${languageName}: ${eolViewUrl}

A new version(${languageName} ${release.cycle}) has been released.
Please start to support it.

**Release date**: ${release.releaseDate}
endoflife.date for ${languageName}: ${eolViewUrl}
`);
await createIssueIfNotExists(title, body, ['keep']);
}
Expand Down
Loading