Skip to content
Discussion options

You must be logged in to vote

Had a look at your repo, the API indeed only lists you, so it's just the cached sidebar that's stale. GitHub's pinned guide on this (https://github.com/orgs/community/discussions/209302) mentions a workaround that several people have confirmed: make GitHub re-read the default branch.

Lower-risk version (nothing gets renamed), from kunalx731 in that thread:

sha=$(gh api repos/moc2216/rimedou/git/ref/heads/main --jq .object.sha)
gh api -X POST repos/moc2216/rimedou/git/refs -f ref=refs/heads/recount -f sha=$sha
gh api -X PATCH repos/moc2216/rimedou -f default_branch=recount
gh api -X PATCH repos/moc2216/rimedou -f default_branch=main
gh api -X DELETE repos/moc2216/rimedou/git/refs/heads/rec…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by moc2216
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Repositories The core of version-controlled code storage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
2 participants