fix: prevent cross-repo references in GitHub Issues#123
Merged
Conversation
Replace full GitHub URLs in formatItem with plain-text references (e.g. "owner/repo Issue #123") so the LLM won't reproduce linkable URLs. Add neutralizeGitHubRefs() as a safety net in createGitHubIssue to break any remaining github.com URLs with a zero-width space, preventing GitHub from generating "mentioned this issue" notifications on external repos. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
I just resubmit the PR: #122 |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
formatItemwith plain-text references (owner/repo Issue #123) so the LLM won't reproduce linkable URLs in its outputneutralizeGitHubRefs()safety net increateGitHubIssuethat inserts zero-width spaces into any remaininggithub.comURLs before postingContext
External repo maintainers reported that every one of their issues/PRs was getting tagged with cross-references from our daily digest issues. This was caused by GitHub auto-linking full URLs in our issue bodies.
Test plan
pnpm typecheckandpnpm lint— both pass🤖 Generated with Claude Code