GitHub Workflow for Alfred 3
You can search through GitHub (gh) and your GitHub Enterprise instance (ghe).
You have to login (gh > login) before you can use the workflow. The login uses OAuth, so you do not have to enter your credentials.

Setup
For github.com
In Alfred type (gh > login) to authenticate against your account. The login uses OAuth, so you do not have to enter your credentials.
For github enterprise
- In Alfred type (
ghe > url https://github.mycompany.com) - Create a new Personal Access Token (
ghe > generate tokenorhttps://github.mycompany.com/settings/applications). It only needs access to your repos. Copy this token to your clipboard. - In Alfred type (
ghe > login <paste token here>) - You can now
ghe your_enterprise_repo_name
Key Combinations
Key Combination, Action
----------------------, ------
enter, Open entry in default browser
cmd + c, Copy URL of the entry
cmd + enter, Paste URL to front most app
shift or cmd + y, Open URL in QuickLook
Commands
To search through your GitHub Enterprise instance replace gh by ghe.
Repo commands
gh user/repogh user/repo #123gh user/repo @branchgh user/repo *commitgh user/repo /path/to/filegh user/repo admingh user/repo clonegh user/repo graphsgh user/repo issuesgh user/repo milestonesgh user/repo networkgh user/repo new issuegh user/repo new pullgh user/repo projectsgh user/repo pullsgh user/repo pulsegh user/repo releasesgh user/repo wikigh user/repo projects
User commands
gh @usergh @user overviewgh @user repositoriesgh @user starsgh @user gists
Search commands
gh s repogh s @user
"My" commands
gh my dashboardgh my notificationsgh my profilegh my issuesgh my issues createdgh my issues assignedgh my issues mentionedgh my pullsgh my pulls createdgh my pulls assignedgh my pulls mentionedgh my pulls review requestedgh my reposgh my settingsgh my starsgh my gists
Workflow commands
gh > logingh > logoutgh > delete cachegh > delete databasegh > updategh > activate autoupdategh > deactivate autoupdategh > helpgh > changelogghe > url(GitHub Enterprise only)ghe > generate token(GitHub Enterprise only)ghe > enterprise reset(GitHub Enterprise only)