Repository navigation
Replies: 1 comment
|
Same need on Gitea/Forgejo, so adding the use case here instead of a separate Idea. On a protected branch that requires approvals, a repo admin merging from the PR panel gets If the GitHub direction here is approved, the Forgejo/Gitea equivalent could follow the same shape: an explicit, off-by-default "merge as administrator" choice. It would appear only when the repo reports |
Uh oh!
There was an error while loading. Please reload this page.
On some repos I work in, branch protection needs a code owner's review that I can't give on my own PRs. I'm an admin on those repos, so GitHub lets me merge past that, and
gh pr merge --adminworks fine from a terminal.In T3 Code there's no way to do the same. Turning on auto-merge either fails with "Could not turn on auto-merge: The host refused it…" or sits there waiting for a review that's never coming. So I drop out to the terminal for something the app already almost does.
Proposal: when GitHub reports
viewerCanMergeAsAdmin: truefor the viewer, show a Merge now as an administrator checkbox in the existing merge and auto-merge confirm dialogs. Ticking it does exactly whatgh pr merge --admindoes: a directmergePullRequestcall that skips auto-merge and the merge queue.It's small: one extra GraphQL field, one optional flag on the existing merge action, and a checkbox. I've got an implementation with tests and screenshots in #17281 if the direction sounds OK.
All reactions