Skip to content

Commit 7addae8

Browse files
committed
done
1 parent 2fa9266 commit 7addae8

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/scripts/check-eol-newrelease.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
* - New releases within newReleaseThresholdDays
3232
* If fetching fails after multiple retries, an error Issue is created once per week.
3333
*
34+
* Note this script is used in a GitHub Action workflow, and some line/line-bot-sdk-* repositories.
35+
* If you modify this script, please consider syncing the changes to other repositories.
36+
*
3437
* @param {import('@actions/github-script').AsyncFunctionArguments} actionCtx
3538
* @param {EolNewReleaseConfig} config
3639
*/
@@ -155,12 +158,12 @@ module.exports = async function checkEolAndNewReleases(actionCtx, config) {
155158
// Check if it reached EoL within the last eolLookbackDays
156159
if (eolDate <= now && eolDate >= eolLookbackDate) {
157160
if (!release.cycle) return;
158-
const title = `[EoL] ${languageName} ${release.cycle} reached End of Life!`;
161+
const title = `[EoL] ${languageName} ${release.cycle} reached End of Life`;
159162
const body = dedent(`
160163
**EoL date**: ${release.eol}
161164
endoflife.date for ${languageName}: ${eolViewUrl}
162165
163-
This version has reached End of Life.
166+
This version(${languageName} ${release.cycle}) has reached End of Life.
164167
Please consider drop support or update as needed.
165168
`);
166169
await createIssueIfNotExists(title, body, ['keep']);
@@ -186,12 +189,13 @@ module.exports = async function checkEolAndNewReleases(actionCtx, config) {
186189
// Check if releaseDate is within newReleaseThresholdDays
187190
if (rDate >= newReleaseSince && rDate <= now) {
188191
if (!release.cycle) return;
189-
const title = `[New Release] ${languageName} ${release.cycle} is now available!`;
192+
const ltsTag = ltsOnly ? ' (LTS)' : '';
193+
const title = `[New Release] ${languageName} ${release.cycle}${ltsTag} is now available`;
190194
const body = dedent(`
191195
**Release date**: ${release.releaseDate}
192196
endoflife.date for ${languageName}: ${eolViewUrl}
193197
194-
A new version has been released.
198+
A new version(${languageName} ${release.cycle}) has been released.
195199
Please consider updating or testing as needed.
196200
`);
197201
await createIssueIfNotExists(title, body, ['keep']);

.github/workflows/check-eol-newrelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
languageName: 'Node.js',
2323
eolJsonUrl: 'https://endoflife.date/api/nodejs.json',
2424
eolViewUrl: 'https://endoflife.date/nodejs',
25-
eolLookbackDays: 1000,
26-
newReleaseThresholdDays: 1000,
25+
eolLookbackDays: 100,
26+
newReleaseThresholdDays: 100,
2727
ltsOnly: true,
2828
retryCount: 3,
2929
retryIntervalSec: 30

0 commit comments

Comments
 (0)