This fork of alfred-github-repos enables you to automatically search and clone any GitHub repository via the GitHub Search API and open the project with Visual Studio Code. If you already have a local version of the selected GitHub repository, that directory will be opened.
- Visual Studio Code (including the "code" shell command)
- Node.js
- git
- A GitHub Api token (how to obtain: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#about-personal-access-tokens)
- Download the workflow file.
- Double-click the downloaded file to install the workflow.
- Generate GitHub authentication token
- Simply copy and paste this token into the user configuration.
- Select your project directory in the user configuration
Here's the list of available commands.
The example above will search for repositories with the string "hello-world" in their name. Internally this uses the GitHub Search syntax, so you can use modifiers like:
This will search only in repositories that have more than 1000 stars.
Please note that this command only searches in the repository name. This means that your query will be appended with the
in:name
modifier. So when you type inhello-world
, the final search query sent will be: "hello-world in:name".
This command works the same as the previous one (gh <query>
) but it limits the search to your own repositories.
This includes repositories from your organizations as well.
This command searches within the Pull Requests that you're involved in.
If you want to limit the search to be under your organisations, please remove PR_ALL_INVOLVE_ME
environment variable
This command just opens your GitHub notification page.
You can customise the TTL for the internal caches of Repos/Organisations/PullRequests in the user configuration.
If you're using an Enterprise account, you can configure a custom api host in the user configuration.
You can submit your bug reports or feature requests at: https://github.com/AppelBoomHD/alfred-github-projects/issues
If you want to submit a Pull Request, please follow these simple guides:
- Add a detailed description of what you're changing and why.
- Add necessary unit tests that cover your changes.
- Don't increase the version of the workflow in your changes.
Here are some ideas for Pull Requests:
- Make search faster
- Search commits in a repository
- Search projects in an organization
- Improve icon graphics
This project is published under the MIT License.