Created
August 1, 2023 18:14
-
-
Save timheuer/e02faba6b567794922cea3a82db0da66 to your computer and use it in GitHub Desktop.
Query GitHub Issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["number","title","state","labels"], | |
(.[] | [ | |
.number, | |
.title, | |
.state, | |
(.labels | if length == 0 then "no-label" elif length > 1 then map(.name) | join(",") else .[0].name end) | |
]) | @csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
winget install github.cli | |
winget install jqlang.jq | |
gh issue list --limit 1000 --state all --json number,title,state,labels | jq -r -f filter.jq > issues.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment