File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 with :
1919 fetch-depth : 0
2020 persist-credentials : true
21+ token : ${{ secrets.RELEASE_PAT }}
2122
2223 - uses : fregante/setup-git-user@024bc0b8e177d7e77203b48dab6fb45666854b35 # v2.0.2
2324
2930 run : knope prepare-release --verbose
3031 continue-on-error : true
3132 env :
32- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ GITHUB_TOKEN : ${{ secrets.RELEASE_PAT }}
3334
3435 - name : Enrich changelog with PR attribution
3536 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6061 });
6162 const pr = prs.data[0];
6263 if (pr) {
64+ const isInternal = pr.labels.some(label => label.name.toLowerCase() === 'internal');
65+ if (isInternal) {
66+ const lineRegex = new RegExp(`^.*.*\\r?\\n?`, 'gm');
67+ content = content.replace(lineRegex, '');
68+ continue;
69+ }
6370 replacement = `([#${pr.number}](${pr.html_url}) by @${pr.user.login})`;
6471 } else {
6572 // Commit exists but has no associated PR (e.g. direct push to dev)
You can’t perform that action at this time.
0 commit comments