Skip to content

Instantly share code, notes, and snippets.

@mtnygard
Created November 16, 2021 21:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtnygard/438521a316bf56c45c294d17e069ede0 to your computer and use it in GitHub Desktop.
Save mtnygard/438521a316bf56c45c294d17e069ede0 to your computer and use it in GitHub Desktop.
GitHub Issues as org-agenda TODOs w/ links & searchable/filterable labels.

GitHub Issues as org-agenda TODOs w/ links & searchable/filterable labels

gh issue list --limit 10000 --json number,title,url,labels \
    | jq -r '.[]|"** TODO [["+.url+"]["+(.number|tostring)+"]] "+.title+" "+":"+(.labels|map(.name)|join(":"))+":"' \
    | sed 's|::||g'

Credit to @dysinger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment