This is a custom Raycast extension I've built for myself for GitHub.
For now, you'll need to clone the repository and install it from within Raycast.
git clone https://github.com/jclem/raycast-github
cd raycast-github
npm install
npm run build
Then, from within Raycast with developer mode enabled, import the extension.
When attempting to execute the first command from this extension, you'll be prompted to enter a Personal Access Token (PAT). You can generate a PAT on GitHub, by going to:
User settings ➡️ Developer settings ➡️ Personal access tokens ➡️ Generate new token https://github.com/settings/tokens
-
Add a description to the "Note" field, e.g. "Raycast GitHub"
-
Select the following scopes from the list:
- repo
- codespace
Generate the token and copy and paste it into the Raycast input.
This command allows you to search, open, start, stop, and remove existing Codespaces.
To create new Codespaces, see the "Search Repositories" command below.
- Open the Codespace in VSCode.
- Open the Codespace in a web browser.
- Start the Codespace.
- Stop the Codespace.
- Delete the Codespace.
This allows you to search code on GitHub, for example by entering a query such as "ActiveRecord repo:rails/rails".
- Open the search result in a web browser.
- Open the search result in GitHub.dev. You can also do this by hitting the "." key while highlighting a search result.
- Copy the URL of the search result.
This allows you to search Git commits on GitHub, for example by entering a query such as "Finally actually fix layout bug".
- Open the commit in a web browser.
- Open the commit in GitHub.dev. You can also do this by hitting the "." key while highlighting a commit.
- Copy the URL of the commit.
This allows you to search issues and PRs on GitHub.
- Open the issue or PR in a web browser.
- View the full issue or PR body in Raycast.
- Copy the URL of the issue or PR.
This allows you to search repositories on GitHub.
- Open the repo in a web browser.
- Open the repo readme in Raycast.
- Copy the URL of the repository.
- Open the repo issues in a web browser.
- Open the repo pull requests in a web browser.
- Open the repo in GitHub.dev. You can also do this by hitting the "." key while highlighting a repo.
- Open or create a Codespace for the repo. This will try and find an existing Codespace and open it, or it will create a new Codespace and open it.
This allows you to search users on GitHub.
- Open the user's profile in a web browser.
- View the user's profile readme in Raycast.
- Copy the URL of the user's profile.