mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-16 00:47:39 +03:00
Add PR author to release notes scraper script
This commit is contained in:
parent
9241b11e1f
commit
53bcc3649a
@ -59,6 +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 || "";
|
||||||
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;
|
||||||
@ -68,6 +69,7 @@ async function main() {
|
|||||||
}
|
}
|
||||||
console.log("*", pullRequest.title);
|
console.log("*", pullRequest.title);
|
||||||
console.log(" PR URL: ", webURL);
|
console.log(" PR URL: ", webURL);
|
||||||
|
console.log(" Author: ", contributor);
|
||||||
|
|
||||||
// If the pull request contains a 'closes' line, print the closed issue.
|
// If the pull request contains a 'closes' line, print the closed issue.
|
||||||
const fixesMatch = (pullRequest.body || "").match(FIXES_REGEX);
|
const fixesMatch = (pullRequest.body || "").match(FIXES_REGEX);
|
||||||
|
Loading…
Reference in New Issue
Block a user