mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +00:00
Fix contributor-scraping code
This commit is contained in:
parent
77a2f2490e
commit
777ddefa73
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ async function main() {
|
||||||
const releaseNotesHeader = /^\s*Release Notes:(.+)/ims;
|
const releaseNotesHeader = /^\s*Release Notes:(.+)/ims;
|
||||||
|
|
||||||
let releaseNotes = pullRequest.body || "";
|
let releaseNotes = pullRequest.body || "";
|
||||||
let contributor = pullRequest.user.login || "";
|
let contributor = pullRequest.user?.login ?? "Unable to identify";
|
||||||
const captures = releaseNotesHeader.exec(releaseNotes);
|
const captures = releaseNotesHeader.exec(releaseNotes);
|
||||||
const notes = captures ? captures[1] : "MISSING";
|
const notes = captures ? captures[1] : "MISSING";
|
||||||
const skippableNoteRegex = /^\s*-?\s*n\/?a\s*/ims;
|
const skippableNoteRegex = /^\s*-?\s*n\/?a\s*/ims;
|
||||||
|
|
Loading…
Reference in a new issue