Implement internal label check in release workflow
Add check for internal label in PRs to modify content accordingly.
This commit is contained in:
1 file changed
+6
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user