Thanks for the tip!
I can't wrap my head around one thing, though: wouldn't that count comments only up to 100, as more comments would be paginated? 🤔
I wonder if issue endpoint would be better for this task, as it seems to contain comments property with the comments count.
comments
Hmmm, that looks pretty interesting indeed !
"comments": 0,
Here we go, and thanks a lot for having pointed this to us, see that trick @mbarre :
gh api -X GET \ -H "Accept: application/vnd.github.v3+json" \ -F per_page=100 \ /repos/ORGA/REPO/issues/ISSUID | \ jq '.comments'
... I could get :
149
within a single shot 😊
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the tip!
I can't wrap my head around one thing, though: wouldn't that count comments only up to 100, as more comments would be paginated? 🤔
I wonder if issue endpoint would be better for this task, as it seems to contain
comments
property with the comments count.Hmmm, that looks pretty interesting indeed !
"comments": 0,
Here we go, and thanks a lot for having pointed this to us, see that trick @mbarre :
... I could get :
149
within a single shot 😊