Add isDraft to search prs json options, matching pr view (#6704)

This commit is contained in:
Matthew Gabeler-Lee 2022-12-09 02:57:27 -05:00 committed by GitHub
parent 4fd56ac7c1
commit eadc8e8372
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 14 deletions

View file

@ -122,7 +122,7 @@ func NewCmdPrs(f *cmdutil.Factory, runF func(*shared.IssuesOptions) error) *cobr
}
// Output flags
cmdutil.AddJSONFlags(cmd, &opts.Exporter, search.IssueFields)
cmdutil.AddJSONFlags(cmd, &opts.Exporter, search.PullRequestFields)
cmd.Flags().BoolVarP(&opts.WebMode, "web", "w", false, "Open the search query in the web browser")
// Query parameter flags