Skip to content

Commit

Permalink
feat: add patch authors
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Apr 16, 2024
1 parent 94119ef commit 7a4d35f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/security-release/security-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,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 {
Expand All @@ -172,6 +185,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
Expand Down

0 comments on commit 7a4d35f

Please sign in to comment.