From 71006d92ec3c7bc9404705f5d1f1c3a4c9a23792 Mon Sep 17 00:00:00 2001 From: Jordan Ritter Date: Fri, 15 May 2026 13:33:54 -0700 Subject: [PATCH] fix(ci): strip @mentions from dependabot major version analysis comments Upstream release notes contain @username references that trigger GitHub notifications when posted as PR comments. Strip mention-prefix @ from standalone mentions while preserving @scope/pkg, email@domain, and action@version patterns. Closes CopilotKit/aimock#216 --- .github/workflows/dependabot-major-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-major-analysis.yml b/.github/workflows/dependabot-major-analysis.yml index 8a86404e6..bc74b5053 100644 --- a/.github/workflows/dependabot-major-analysis.yml +++ b/.github/workflows/dependabot-major-analysis.yml @@ -63,7 +63,7 @@ jobs: breakingChanges = `_Unable to determine breaking changes automatically. Please review the [full changelog](https://github.com/${repoSlug}/releases)._`; } else { for (const release of relevantReleases.slice(0, 10)) { - const body = release.body || '_No release notes._'; + const body = (release.body || '_No release notes._').replace(/(?<=^|\s)@(?=[a-zA-Z0-9])(?![a-zA-Z0-9-]*\/)/gm, ''); releaseNotesSummary += `### ${release.tag_name}${release.name && release.name !== release.tag_name ? ' — ' + release.name : ''}\n\n`; releaseNotesSummary += body.substring(0, 2000); if (body.length > 2000) releaseNotesSummary += '\n\n_...truncated_';