Skip to content

Avoid backlink noise when notifying PRs of uv.lock conflicts - #71001

Merged
potiuk merged 1 commit into
apache:mainfrom
eladkal:redirect
Aug 3, 2026
Merged

Avoid backlink noise when notifying PRs of uv.lock conflicts#71001
potiuk merged 1 commit into
apache:mainfrom
eladkal:redirect

Conversation

@eladkal

@eladkal eladkal commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The uv.lock conflict notifier (scripts/ci/notify_uv_lock_conflicts.py)
posts a comment on conflicting PRs linking back to the PR/commit that
bumped uv.lock on main. Because GitHub auto-generates a backlink
comment on any issue/PR referenced this way, every notification also
produced an unwanted comment on the original PR — noise unrelated to
its own discussion.

GitHub's docs describe using the redirect.github.com host instead of
github.com to suppress this automatic backlink behavior:
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls#avoiding-backlinks-to-linked-references

This adds an avoid_backlink() helper and applies it to both links
embedded in the notice body (the source PR link and the commit link).
The plain-text log/summary output is left untouched since it's never
posted to GitHub.

without this change we are getting too many useless refrences:
Screenshot 2026-08-03 at 18 52 36


Was generative AI tooling used to co-author this PR?
  • Yes — Claude (Sonnet 4.5)

Generated-by: Claude (Sonnet 4.5) following the guidelines

@potiuk
potiuk merged commit 09e49b4 into apache:main Aug 3, 2026
65 checks passed
@eladkal
eladkal deleted the redirect branch August 4, 2026 02:23
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