Skip to content

fix: prevent cross-repo references in GitHub Issues#123

Merged
duanyytop merged 2 commits intomasterfrom
fix/prevent-cross-repo-references
Mar 10, 2026
Merged

fix: prevent cross-repo references in GitHub Issues#123
duanyytop merged 2 commits intomasterfrom
fix/prevent-cross-repo-references

Conversation

@duanyytop
Copy link
Owner

Summary

  • Replace full GitHub URLs in formatItem with plain-text references (owner/repo Issue #123) so the LLM won't reproduce linkable URLs in its output
  • Add neutralizeGitHubRefs() safety net in createGitHubIssue that inserts zero-width spaces into any remaining github.com URLs before posting
  • Prevents GitHub from generating "mentioned this issue" cross-reference notifications on external repositories (e.g. gemini-cli, codex, etc.)

Context

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

  • Run pnpm typecheck and pnpm lint — both pass
  • Verify next daily digest issue does not create cross-references on tracked repos
  • Committed markdown files still contain useful references (unaffected by this change)

🤖 Generated with Claude Code

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>
@howardpen9
Copy link

I just resubmit the PR: #122

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants