List and open pull requests for GitHub repositories using Alfred and the GitHub CLI.
- Alfred with the Powerpack
- GitHub CLI installed and authenticated
- Use the
ghpr-repokeyword to add and select a GitHub repository. You can add multiple repositories, but only one can be selected at a time.ghpr-repo owner/repowill add the repository, andghpr-repowill list added repositories for selection. - Use the
ghprkeyword to list pull requests for the selected repository. You can also provide a search query to filter the pull requests. For example,ghpr bugwill list pull requests that have "bug" in the title or body. - Select and hit
Enteror click on a pull request to open it in your browser.
Download the latest release and double-click the .alfredworkflow file to install it in Alfred.
The Pull Request page on GitHub does not accurately display the status of pull requests. For example, it may show that a pull request is not approved when in reality it has. This affects filters as well making it difficult to find pull requests that are ready for review or have not yet been approved. This workflow was created to provide a more accurate and efficient way to manage pull requests directly from Alfred. It leverages the GitHub CLI to fetch and display pull requests, allowing users to quickly access and manage their repositories.
This Alfred workflow was initially generated via Claude Code. It is provided as-is without any warranties. Use it at your own risk. The author is not responsible for any issues that may arise from using this workflow.