8000 How can I search/list issues by issue numbers? · cli cli · Discussion #12213 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

Hey @sureshjoshi, this isn't possible as a first class command in gh. Feel free to open an enhancement issue if it is something you really want.

In the meantime, your best bet (assuming you've already figured out how to get your issue numbers) might be something like:

➜  cli git:(wm/refactor-gh-out-of-capi-client) ✗ issues=(12214 12203 12202)

query='query($owner:String!, $name:String!){ repository(owner:$owner, name:$name) {'
for n in "${issues[@]}"; do
  query+=" i$n: issue(number: $n) { number title state url }"
done
query+=' } }'

gh api graphql  -F owner='cli' -F name='cli' -f query="$query" | jq .

{
  "data": {
    "repository": {
      "i12214": {
        "number": 12214,
        "t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sureshjoshi
Comment options

Answer selected by sureshjoshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0