This content originally appeared on DEV Community π©βπ»π¨βπ» and was authored by adriens
βοΈ Why counting comments matters ?
There are two type issues with a lot of comments :
1οΈβ£ The ones that are popular, then getting a lot of feedback π€
2οΈβ£ The ones that have a lot of comments because we struggle to fix them efficiently π±
π In both cases, performing report on them can be helpful to monitor your RUN
performances.
β Count with API calls
βοΈ There actually is no native gh issue
command to count issues on a specific command...
π but gh api
...
"Makes an authenticated
HTTP
request to the GitHub API and prints the response."
gh api <endpoint> [flags]
π‘ This short post is documenting how easy it is to count comments on a given issue.
π€ Snippet
gh api -X GET \
-H "Accept: application/vnd.github.v3+json" \
-F per_page=100 \
/repos/YOUR_ORGA/REPO/issues/ISSUEID/comments | \
jq '. | length'
This content originally appeared on DEV Community π©βπ»π¨βπ» and was authored by adriens
adriens | Sciencx (2022-09-25T20:23:02+00:00) π Count comments on a GitHub issue π«. Retrieved from https://www.scien.cx/2022/09/25/%f0%9f%93%8a-count-comments-on-a-github-issue-%f0%9f%8e%ab/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.