gh-dash/Q/How do I do the equivalent of Merge without waiting for requirements to be met (bypass rules) or use --admin?
Properties
- logseq-entity
- Logseq/Entity/Question
How do I do the equivalent of Merge without waiting for requirements to be met (bypass rules) or use
--adminin gh-dash?AI Answer
- Short answer: The built-in
mmerge (builtin: merge) shells out to plaingh pr merge— it has no admin/bypass option. Overridem(or bind another key) with a custom PR command that passes--admin, using the same template vars the official examples use. Config override
- In
~/.config/gh-dash/config.yml(or a repo-local.gh-dash.yml): - yaml
keybindings: prs: - key: m name: merge admin command: gh pr merge --admin --repo {{.RepoName}} {{.PrNumber}} {{.RepoName}}and{{.PrNumber}}are the standard PR keybinding placeholders; keep--reposo the merge works when the dashboard is not launched from that checkout.- Prefer a different key (e.g.
M) if you want to keep the default interactive merge onmand reserve admin merge for an explicit chord.
- In
Why the checkbox is missing
- Answer/Official from PR Keybindings and the configuration examples (the docs' own sample binds
mtogh pr merge --admin --repo {{.RepoName}} {{.PrNumber}}).
- Short answer: The built-in