Skip to content

Commit 18ddef5

Browse files
committed
Modify contents and title again
1 parent d728a2c commit 18ddef5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: .github/scripts/check-eol-newrelease.cjs

+8-8
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ module.exports = async function checkEolAndNewReleases(actionCtx, config) {
158158
// Check if it reached EoL within the last eolLookbackDays
159159
if (eolDate <= now && eolDate >= eolLookbackDate) {
160160
if (!release.cycle) return;
161-
const title = `${languageName} ${release.cycle} reached End of Life`;
161+
const title = `Drop ${languageName} ${release.cycle} support`;
162162
const body = dedent(`
163-
**EoL date**: ${release.eol}
164-
endoflife.date for ${languageName}: ${eolViewUrl}
165-
166163
This version(${languageName} ${release.cycle}) has reached End of Life.
167164
Please drop its support as needed.
165+
166+
**EoL date**: ${release.eol}
167+
endoflife.date for ${languageName}: ${eolViewUrl}
168168
`);
169169
await createIssueIfNotExists(title, body, ['keep']);
170170
}
@@ -190,13 +190,13 @@ module.exports = async function checkEolAndNewReleases(actionCtx, config) {
190190
if (rDate >= newReleaseSince && rDate <= now) {
191191
if (!release.cycle) return;
192192
const ltsTag = ltsOnly ? ' (LTS)' : '';
193-
const title = `${languageName} ${release.cycle}${ltsTag} is now available`;
193+
const title = `Support ${languageName} ${release.cycle}${ltsTag}`;
194194
const body = dedent(`
195-
**Release date**: ${release.releaseDate}
196-
endoflife.date for ${languageName}: ${eolViewUrl}
197-
198195
A new version(${languageName} ${release.cycle}) has been released.
199196
Please start to support it.
197+
198+
**Release date**: ${release.releaseDate}
199+
endoflife.date for ${languageName}: ${eolViewUrl}
200200
`);
201201
await createIssueIfNotExists(title, body, ['keep']);
202202
}

0 commit comments

Comments
 (0)