Implement internal label check in release workflow

Add check for internal label in PRs to modify content accordingly.
This commit is contained in:
7w1 authored and GitHub committed 2026-03-11 22:09:01 -05:00
1 parent 6897ce2d49
commit 496bd3f264
1 file changed
+6
+6
View File
@@ -61,6 +61,12 @@ jobs:
});
const pr = prs.data[0];
if (pr) {
const isInternal = pr.labels.some(label => label.name.toLowerCase() === 'internal');
if (isInternal) {
const lineRegex = new RegExp(`^.*.*\\r?\\n?`, 'gm');
content = content.replace(lineRegex, '');
continue;
}
replacement = `([#${pr.number}](${pr.html_url}) by @${pr.user.login})`;
} else {
// Commit exists but has no associated PR (e.g. direct push to dev)