From d7667b6931599017ee5cded006abcf4a8f32fad9 Mon Sep 17 00:00:00 2001 From: marco-ippolito Date: Sun, 14 Apr 2024 15:05:26 +0200 Subject: [PATCH] feat: add patch authors --- lib/security-release/security-release.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/security-release/security-release.js b/lib/security-release/security-release.js index 2cc02242..2ebc3aa1 100644 --- a/lib/security-release/security-release.js +++ b/lib/security-release/security-release.js @@ -157,6 +157,19 @@ export async function pickReport(report, { cli, req }) { questionType: 'input', defaultAnswer: await getSupportedVersions() }); + + let patchAuthors = await cli.prompt( + 'Add github username of the authors of the patch (split by comma if multiple)', { + questionType: 'input', + defaultAnswer: '' + }); + + if (!patchAuthors) { + patchAuthors = []; + } else { + patchAuthors = patchAuthors.split(',').map((p) => p.trim()); + } + const summaryContent = await getSummary(id, req); return { @@ -165,6 +178,7 @@ export async function pickReport(report, { cli, req }) { cveIds: cve_ids, severity: reportSeverity, summary: summaryContent ?? '', + patchAuthors, affectedVersions: versions.split(',').map((v) => v.replace('v', '').trim()), link, reporter: reporter.data.attributes.username