-
Notifications
You must be signed in to change notification settings - Fork 6
Format release notes with github script #1443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Website deployed to CF Pages, 👀 preview link https://317ebc44.flowzone.pages.dev |
62cea49
to
9ce7e67
Compare
9ce7e67
to
b083205
Compare
b083205
to
f7e5be7
Compare
#release-notes Format release notes with github script Notable changes
|
8be35f6
to
d2d1cbc
Compare
The previous function was throwing errors in some cases when the gh cli expected a local .git directory. Instead we should avoid an interactive CLI for steps like this. Change-type: patch Signed-off-by: Kyle Harding <[email protected]>
d2d1cbc
to
8432821
Compare
|
||
// Handle custom release notes | ||
const customReleaseNotesMatch = pr.body.match(/## Release Notes([\s\S]*?)(?=## |$)/i); | ||
console.log('match:', JSON.stringify(customReleaseNotesMatch, null, 2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to leave this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean it's not UNhelpful, but we can remove it if you think it's messy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't bother me, I was just wondering if it was intentional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, those ones were
The previous function was throwing errors in some cases when the gh cli expected a local .git directory.
Instead we should avoid an interactive CLI for steps like this.
Tested with both custom release notes (below) and Renovate-style release notes here.
Release Notes
Format release notes with github script to avoid interactive CLI errors at runtime.