GitHub Pull Requests for Visual Studio Code
Перейти к файлу
Ladislau Szomoru 82bd32d362
Use npm to install dependencies
2023-10-27 14:55:48 +02:00
.github/ISSUE_TEMPLATE Update bug report template with additional fields (#5376) 2023-10-20 07:25:13 -07:00
.husky
.readme
.vscode
build Support setting project when viewing a PR (#5341) 2023-10-16 10:41:02 +02:00
common Add title and cancellation token to sparkle action (#5362) 2023-10-18 13:05:32 +02:00
documentation
resources/icons Polish sparkle action (#5366) 2023-10-19 15:05:03 +02:00
scripts
src Fix compareHasUpstream async issue (#5408) 2023-10-27 11:00:34 +02:00
webviews Project sign in link does not have hover feedback (#5407) 2023-10-27 11:00:13 +02:00
.eslintignore
.eslintrc.base.json
.eslintrc.browser.json
.eslintrc.json
.eslintrc.node.json
.eslintrc.webviews.json
.gitignore
.gitignore-revs
.prettierignore
.prettierrc
.vscodeignore
.yarnrc
CHANGELOG.md 0.74.1 (#5373) (#5387) 2023-10-24 17:30:32 +02:00
LICENSE
README.md
SECURITY.md
ThirdPartyNotices.txt
azure-pipeline.nightly.yml Try clearing custom npm registry (#5358) 2023-10-17 16:56:20 +02:00
azure-pipeline.pr.yml
azure-pipeline.release.yml Use npm to install dependencies 2023-10-27 14:55:48 +02:00
package.json Add caching for pull request template location (#5404) 2023-10-26 13:58:53 +02:00
package.nls.json Add caching for pull request template location (#5404) 2023-10-26 13:58:53 +02:00
tsconfig.base.json
tsconfig.browser.json
tsconfig.eslint.json
tsconfig.json
tsconfig.test.json
tsconfig.webviews.json
tsfmt.json
webpack.config.js
yarn.lock

README.md

Build Status

Review and manage your GitHub pull requests and issues directly in VS Code

This extension allows you to review and manage GitHub pull requests and issues in Visual Studio Code. The support includes:

  • Authenticating and connecting VS Code to GitHub and GitHub Enterprise.
  • Listing and browsing PRs from within VS Code.
  • Reviewing PRs from within VS Code with in-editor commenting.
  • Validating PRs from within VS Code with easy checkouts.
  • Terminal integration that enables UI and CLIs to co-exist.
  • Listing and browsing issues from within VS Code.
  • Hover cards for "@" mentioned users and for issues.
  • Completion suggestions for users and issues.
  • A "Start working on issue" action which can create a branch for you.
  • Code actions to create issues from "todo" comments.

PR Demo

Issue Demo

Getting Started

It's easy to get started with GitHub Pull Requests for Visual Studio Code. Simply follow these steps to get started.

  1. Install the extension from within VS Code or download it from the marketplace.
  2. Open your desired GitHub repository in VS Code.
  3. A new viewlet will appear on the activity bar which shows a list of pull requests and issues.
  4. Use the button on the viewlet to sign in to GitHub.
  5. You may need to configure the githubPullRequests.remotes setting, by default the extension will look for PRs for origin and upstream. If you have different remotes, add them to the remotes list.
  6. You should be good to go!

Check out https://www.youtube.com/watch?v=LdSwWxVzUpo for additional getting started tips!

Configuring the extension

There are several settings that can be used to configure the extension.

As mentioned above, githubPullRequests.remotes is used to specify what remotes the extension should try to fetch pull requests from.

To customize the pull request tree, you can use the githubPullRequests.queries setting. This setting is a list of labels and search queries which populate the categories of the tree. By default, these queries are "Waiting For My Review", "Assigned To Me", and "Created By Me". An example of adding a "Mentioned Me" category is to change the setting to the following:

"githubPullRequests.queries": [
	{
		"label": "Waiting For My Review",
		"query": "is:open review-requested:${user}"
	},
	{
		"label": "Assigned To Me",
		"query": "is:open assignee:${user}"
	},
	{
		"label": "Created By Me",
		"query": "is:open author:${user}"
	},
	{
		"label": "Mentioned Me",
		"query": "is:open mentions:${user}"
	}
]

Similarly, there is a setting to configure your issues queries: githubIssues.queries.

Queries use GitHub search syntax.

To view additional settings for the extension, you can open VS Code settings and search for "github pull requests".

Issues

This extension is still in development, so please refer to our issue tracker for known issues, and please contribute with additional information if you encounter an issue yourself.

Questions? Authentication? GitHub Enterprise?

See our wiki for our FAQ.

Contributing

If you're interested in contributing, or want to explore the source code of this extension yourself, see our contributing guide, which includes: