Skip to content

Commit 0cf1841

Browse files
authored
Merge pull request #6 from CopilotKit/fix/dependabot-spam
fix(ci): strip @mentions from dependabot major version analysis comments
2 parents e4d5b50 + 71006d9 commit 0cf1841

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/dependabot-major-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
breakingChanges = `_Unable to determine breaking changes automatically. Please review the [full changelog](https://github.com/${repoSlug}/releases)._`;
6464
} else {
6565
for (const release of relevantReleases.slice(0, 10)) {
66-
const body = release.body || '_No release notes._';
66+
const body = (release.body || '_No release notes._').replace(/(?<=^|\s)@(?=[a-zA-Z0-9])(?![a-zA-Z0-9-]*\/)/gm, '');
6767
releaseNotesSummary += `### ${release.tag_name}${release.name && release.name !== release.tag_name ? ' — ' + release.name : ''}\n\n`;
6868
releaseNotesSummary += body.substring(0, 2000);
6969
if (body.length > 2000) releaseNotesSummary += '\n\n_...truncated_';

0 commit comments

Comments
 (0)