X Tutup
Skip to content

Include merged PRs with list --state=closed#513

Merged
mislav merged 2 commits intomasterfrom
closed-incl-merged
Feb 20, 2020
Merged

Include merged PRs with list --state=closed#513
mislav merged 2 commits intomasterfrom
closed-incl-merged

Conversation

@mislav
Copy link
Copy Markdown
Contributor

@mislav mislav commented Feb 20, 2020

Since we currently offer no way of querying PRs by combining multiple states with an OR, the best way to handle the closed state is to match what the web UI is doing; that is to include merged PRs.

Fixes #475

Since we currently offer no way of querying PRs by combining multiple
states with an OR, the best way to handle the `closed` state is to match
what the web UI is doing; that is to include merged PRs.
@mislav mislav merged commit cbc2d16 into master Feb 20, 2020
@mislav mislav deleted the closed-incl-merged branch February 20, 2020 13:01
@iSWORD
Copy link
Copy Markdown

iSWORD commented Apr 7, 2022

Sorry to bump an old thread, but I have an application where I need to query closed minus merged PRs. Is there no way to do this with the CLI anymore?

@mislav
Copy link
Copy Markdown
Contributor Author

mislav commented Apr 7, 2022

Not directly, no. You'd have to drop down to the API level for this.

@iSWORD
Copy link
Copy Markdown

iSWORD commented Apr 8, 2022

Appreciate your prompt response! I ended up using gh api graphql with a pullRequests(states: CLOSED) query, and learned something new!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gh pr list --state=closed excludes merged — differs from is:closed behavior on web UI?

2 participants

X Tutup