diff --git a/lib/security-announcement.js b/lib/security-announcement.js index 025d947a..3d2cfa3e 100644 --- a/lib/security-announcement.js +++ b/lib/security-announcement.js @@ -49,15 +49,15 @@ export default class SecurityAnnouncement { repo: 'build' }; - const { title, content } = this.createPreleaseAnnouncementIssue(releaseDate); + const { title, content } = this.createPreleaseAnnouncementIssue(releaseDate, 'build'); await this.createIssue(title, content, repository); } - createPreleaseAnnouncementIssue(releaseDate) { + createPreleaseAnnouncementIssue(releaseDate, team) { const title = `[NEXT-SECURITY-RELEASE] Heads up on upcoming Node.js\ security release ${formatDateToYYYYMMDD(releaseDate)}`; const content = 'As per security release workflow,' + - ' creating issue to give docker team a heads up.'; + ` creating issue to give the ${team} team a heads up.`; return { title, content }; } @@ -67,7 +67,7 @@ export default class SecurityAnnouncement { repo: 'docker-node' }; - const { title, content } = this.createPreleaseAnnouncementIssue(releaseDate); + const { title, content } = this.createPreleaseAnnouncementIssue(releaseDate, 'docker'); await this.createIssue(title, content, repository); }