An Alfred workflow GitHub repository helper. Allows you to open the chosen repository in your browser, copy its URL to your clipboard, or navigate directly to the pull requests, issues, or projects page for that repo.
- Navigate to https://github.com/settings/tokens, and create a new Fine-Grain Token
- Set the repo access to your desired level (recommended: All repositories)
- If you set it to All repositories, under
Repository permissions
, findMetadata
and set it toRead only
- If you set it to All repositories, under
- Save & generate the token, and copy the value
- Set your GH_USERNAME and GH_TOKEN environment variables.
- Make sure that
jq
installed at/opt/homebrew/bin/jq
(you can usewhich jq
to check). If not installed, you can do so withbrew
:brew install jq
- Use the
ugh
command to update your GitHub repo list. This will fetch all of the repos that you are a owner or contributor to, sanitize them, and generate your list - If any part of the
ugh
command fails, right-click the workflow in the sidebar, Open in Terminal, runchmod 777 *.sh
, and then try theugh
command again - Once your list has been generated,
gh <repo_name>
will pull up the repository link, and you can then do the following:Enter
: go to repo⇧-Enter
: go to pull requests⌥-Enter
: go to issues⌃-Enter
: go to projects⌘-Enter
: copy the repo URL to your clipboard