Put the Current GitHub Issue in Your Prompt
Before I started using JIRA I was using GitHub and similar to my Put the current JIRA issue in your prompt post, I made one in the past for GitHub too.
It’s a bash script that returns the issue title of the current issue you are working on if you use branches named issue/7 (or whatever number the issue is).
It loads it with the GitHub CLI client gh
and caches it in a local JSON file so future requests load quickly (using jq
).
The purpose is to use it in a bash prompt. I use a modified velvet theme from Oh My Posh to put it in mine.
If you fancy this as part of your prompt (I put it on it’s own line in mine) then I posted a gist with the script and an Oh My Posh config with it here.