You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support completion for gh pr create --base option #5576
Activity
mislav commentedon May 25, 2022
We like this idea! More branch flags across other commands could also get the same treatment. Namely:
browse --branchcodespace create --branchpr create --basepr create --headpr edit --basepr list --basepr list --headrelease create --targetrelease edit --targetrepo sync --branchrepo view --branchrun list --branchworkflow run --refworkflow view --refTo enable completion,
RegisterFlagCompletionFunccould be used. To anyone who wants to contribute this feature: see existing usages for examples.Inside the completion func, the logic could be:
--repoflag override was used, and bail out if it has. There is no sense of querying the local git repo in this case;git branch --remotesand collect all rows;remote/prefix from all rows;[-]Support completion for gh pr create --base option[/-][+]Support completion for `gh pr create --base` option[/+]