Skip to content

Suggest default branch when same-org link uses a renamed branch#18

Merged
dvdstelt merged 1 commit intomainfrom
fix/same-org-default-branch-redirect
Mar 11, 2026
Merged

Suggest default branch when same-org link uses a renamed branch#18
dvdstelt merged 1 commit intomainfrom
fix/same-org-default-branch-redirect

Conversation

@dvdstelt
Copy link
Owner

GitHub's web UI silently redirects master -> main, but the API returns
404. When a file is not found at the URL's ref, retry on the repo's default branch and suggest updating the link if found.

GitHub's web UI silently redirects master -> main, but the API returns
404. When a file is not found at the URL's ref, retry on the repo's
default branch and suggest updating the link if found.
@dvdstelt dvdstelt self-assigned this Mar 11, 2026
@dvdstelt dvdstelt added the enhancement New feature or request label Mar 11, 2026
@dvdstelt dvdstelt merged commit ee22121 into main Mar 11, 2026
3 checks passed
@dvdstelt dvdstelt deleted the fix/same-org-default-branch-redirect branch March 11, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant