Skip to content

Update flags language #68

@ampinsk

Description

@ampinsk

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions