Home

Awesome

GitHub Workflow for Alfred

You can search through GitHub (gh) and your GitHub Enterprise instance (ghe).

DOWNLOAD

Workflow Screenshot

Setup

This workflow requires PHP, which is no longer pre-installed since macOS 12 Montery.
You can install it via Homebrew (brew install php).

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

  1. In Alfred type (ghe > url https://github.mycompany.com)
  2. Create a new Personal Access Token (ghe > generate token or https://github.mycompany.com/settings/applications). It only needs access to your repos. Copy this token to your clipboard.
  3. In Alfred type (ghe > login <paste token here>)
  4. You can now ghe your_enterprise_repo_name

Access to private repositories in organizations

Organizations must approve this app, otherwise private repositories of that organization can not be accessed. Access can be requested here.

Key Combinations

Key CombinationAction
enterOpen entry in default browser
cmd + cCopy URL of the entry
cmd + enterPaste URL to front most app
shift or cmd + yOpen URL in QuickLook

Commands

To search through your GitHub Enterprise instance replace gh by ghe.

Repo commands

User commands

Search commands

"My" commands

Workflow commands