build: fix release notes script bug that omitted edited release-clerk comments (#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()
This commit is contained in:
parent
763bc62c7f
commit
b2fcc15ec7
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,7 @@ const getNoteFromClerk = async (ghKey) => {
|
||||||
|
|
||||||
const CLERK_LOGIN = 'release-clerk[bot]';
|
const CLERK_LOGIN = 'release-clerk[bot]';
|
||||||
const CLERK_NO_NOTES = '**No Release Notes**';
|
const CLERK_NO_NOTES = '**No Release Notes**';
|
||||||
const PERSIST_LEAD = '**Release Notes Persisted**\n\n';
|
const PERSIST_LEAD = '**Release Notes Persisted**';
|
||||||
const QUOTE_LEAD = '> ';
|
const QUOTE_LEAD = '> ';
|
||||||
|
|
||||||
for (const comment of comments.data.reverse()) {
|
for (const comment of comments.data.reverse()) {
|
||||||
|
@ -130,6 +130,8 @@ const getNoteFromClerk = async (ghKey) => {
|
||||||
.trim();
|
.trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.warn(`WARN: no notes found in ${buildPullURL(ghKey)}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue