Skip to content
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

build: fix release notes script bug that omitted edited release-clerk comments #40634

Merged
merged 2 commits into from Nov 30, 2023

Conversation

ckerr
Copy link
Member

@ckerr ckerr commented Nov 29, 2023

Description of Change

This fixes the "some PRs are missing from the notes" issue I mentioned to @mlaurencin earlier today. Apparently, edited comments on GitHub can be stored with \r\n\r\n between paragraphs instead of \n\n, which broke the PERSIST_LEAD check in the notes generator. Happily, the fix is easy: remove \n\n from the test.

I've also added a warning if we ever reach a PR that doesn't have a note and doesn't have a no-note, so any future issues like this one won't fail silently.

CC @mlaurencin @VerteDinde

Checklist

Release Notes

Notes: none

… comments

add a warning when neither notes nor no-notes are found
@ckerr ckerr added component/build semver/none target/26-x-y PR should also be added to the "26-x-y" branch. target/27-x-y PR should also be added to the "27-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. labels Nov 29, 2023
@ckerr ckerr requested a review from a team as a code owner November 29, 2023 01:24
script/release/notes/notes.js Outdated Show resolved Hide resolved
…e-clerk comments

use console.warn() instead of console.log()
@codebytere codebytere merged commit b2fcc15 into main Nov 30, 2023
17 of 18 checks passed
@codebytere codebytere deleted the build/fix-release-notes-script branch November 30, 2023 11:41
Copy link

release-clerk bot commented Nov 30, 2023

No Release Notes

@trop
Copy link
Contributor

trop bot commented Nov 30, 2023

I have automatically backported this PR to "26-x-y", please check out #40654

@trop
Copy link
Contributor

trop bot commented Nov 30, 2023

I have automatically backported this PR to "27-x-y", please check out #40655

@trop
Copy link
Contributor

trop bot commented Nov 30, 2023

I have automatically backported this PR to "28-x-y", please check out #40656

@trop trop bot added in-flight/27-x-y in-flight/28-x-y merged/28-x-y PR was merged to the "28-x-y" branch. merged/26-x-y PR was merged to the "26-x-y" branch. and removed target/27-x-y PR should also be added to the "27-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. in-flight/28-x-y in-flight/26-x-y labels Nov 30, 2023
MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
… comments (electron#40634)

* build: fix release notes script bug that omitted edited release-clerk comments

add a warning when neither notes nor no-notes are found

* fixup! build: fix release notes script bug that omitted edited release-clerk comments

use console.warn() instead of console.log()
@trop trop bot added the merged/27-x-y PR was merged to the "27-x-y" branch. label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/build merged/26-x-y PR was merged to the "26-x-y" branch. merged/27-x-y PR was merged to the "27-x-y" branch. merged/28-x-y PR was merged to the "28-x-y" branch. semver/none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants