Repository navigation
Closed
Description
What currently exists
Global flags:
-B, --current-branch string current git branch
-h, --help help for gh
-R, --repo string current GitHub repository
Flags for pr create
-T, --base string The branch into which you want your code merged
-b, --body string Supply a body. Will prompt for one otherwise.
-d, --draft Mark PR as a draft
-h, --help help for create
-t, --title string Supply a title. Will prompt for one otherwise.
Flags for issue create
-h, --help help for create
-m, --message stringArray set title and body
-w, --web open the web browser to create an issue
Flags for pr list
-b, --base string filter by base branch
-h, --help help for list
-l, --label stringArray filter by label
-L, --limit int maximum number of items to fetch (default 30)
-s, --state string filter by state (default "open")
Flags for issue list
-a, --assignee string filter by assignee
-h, --help help for list
-l, --label strings filter by label
-L, --limit int maximum number of issues to fetch (default 30)
-s, --state string filter by state (open|closed|all)
Proposed new flags
Global flags:
-h, --help Help for gh
-R, --repo string Select GitHub repository
-V, --version . Version for gh
Flags for pr create and issue create
-B, --base string The branch into which you want your code merged
-b, --body string Supply a body. Will prompt for one otherwise.
-d, --draft Mark PR as a draft
-h, --help Help for create
-t, --title string Supply a title. Will prompt for one otherwise.
-w, --web Create in web browser
Flags for pr list and issue list
-a, --assignee string Filter by assignee
-B, --base string Filter by base branch
-h, --help Help for list
-l, --label strings Filter by label
-L, --limit int Maximum number of items to fetch (default 30)
-s, --state string Filter by state (open|closed|all, default "open")
note: issue create and issue list won't include the --base flag
Flags for pr view and issue view
-t, --text Output title and body of [issue/pull request]
note: this is new functionality that we can open up a separate issue for
Metadata
Metadata
Assignees
Labels
No labels
Activity
ampinsk commentedon Nov 19, 2019
Took a stab at this in the flags section at the bottom of the design spec
mislav commentedon Nov 22, 2019
Based on the current design spec, enumerating some engineering tasks:
-B, --current-branchglobal flagpr: change shorthand for--baseto-Bpr create: support--webpr list: support-a, --assigneeExplore if we can replace Cobra'sI've looked into this and this would be too much hassle to do before the alpha. These values don't come from Cobra, but from thestring,int,strings,stringArrayetc. with something more human-friendlypflagpackage that Cobra is using, and this extra level of indirection makes it harder to change.ampinsk commentedon Nov 22, 2019
Updated the issue with what was in the doc! This should be ready to go whenever we want to prioritize it.
[-]Evaluate flags language[/-][+]Update flags language[/+]mislav commentedon Dec 3, 2019
Closing since all items are checked off except for
gh pr create --webwhich has a corresponding card on the project board.Merge pull request #68 from github/dev