Skip to content

Instantly share code, notes, and snippets.

@timheuer
Created August 1, 2023 18:14
Show Gist options
  • Save timheuer/e02faba6b567794922cea3a82db0da66 to your computer and use it in GitHub Desktop.
Save timheuer/e02faba6b567794922cea3a82db0da66 to your computer and use it in GitHub Desktop.
Query GitHub Issues
["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
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