GitHub Pull Requests for Visual Studio Code
Перейти к файлу
Alex Ross 2205b45241
PR Actions Are Not Shown When Title Is Long (#6225)
Fixes #6222
2024-09-11 11:26:21 -07:00
.github/ISSUE_TEMPLATE Update bug report template with additional fields (#5376) 2023-10-20 07:25:13 -07:00
.husky Change file mode for execute husky hooks on MacOS (#4695) 2023-04-14 14:11:01 +00:00
.readme Update demo gif (#5533) 2023-12-12 09:56:06 +01:00
.vscode Remove prettier (#5520) 2023-12-12 11:49:11 +01:00
build Add patch tests (#5843) 2024-03-18 11:40:45 -07:00
common Polish revert PR feature with feedback (#6103) 2024-07-22 07:03:13 -07:00
documentation 0.96.0 release notes (#6207) 2024-09-02 14:18:49 -07:00
resources/icons Use new github-project icon (#5758) 2024-02-20 11:04:20 +01:00
scripts Add patch tests (#5843) 2024-03-18 11:40:45 -07:00
src PR Actions Are Not Shown When Title Is Long (#6225) 2024-09-11 11:26:21 -07:00
webviews Can't approve/reject PRs when in draft mode (#6208) 2024-09-10 12:41:31 -07:00
.eslintignore Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
.eslintrc.base.json Fix eslint configuration 2023-12-18 12:47:56 +01:00
.eslintrc.browser.json Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
.eslintrc.json Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
.eslintrc.node.json Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
.eslintrc.webviews.json Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
.gitignore Get extension tests running in the browser (#2850) 2021-07-20 15:28:10 +02:00
.gitignore-revs Excludes prettier/import sort commits from blame 2021-02-24 18:52:02 -05:00
.vscodeignore Ignore more files from the vsix (#4530) 2023-02-16 10:48:43 +00:00
.yarnrc Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
CHANGELOG.md 0.96.0 release notes (#6207) 2024-09-02 14:18:49 -07:00
LICENSE undo changes 2022-02-10 14:33:12 +00:00
README.md remove badge (#4393) 2023-01-12 18:47:00 +01:00
SECURITY.md Adding Microsoft SECURITY.MD (#3560) 2022-06-14 14:29:19 +02:00
azure-pipeline.nightly.yml Disable creating a release (#5932) 2024-04-18 12:44:00 +02:00
azure-pipeline.pr.yml Update pr vmImage (#3915) 2022-09-02 14:44:48 +02:00
azure-pipeline.release.yml Disable creating a release (#5932) 2024-04-18 12:44:00 +02:00
package.json Don't show "make suggestion" when there's already a suggestion in the editor (#6202) 2024-09-06 13:47:11 -07:00
package.nls.json Specify that a reload is required for already added comments in comment expand state (#6213) 2024-09-10 12:43:15 -07:00
tsconfig.base.json Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
tsconfig.browser.json Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
tsconfig.eslint.json Reworks the build/bundling (#2518) 2021-02-22 15:23:22 -08:00
tsconfig.json Enable strict null check 2021-06-11 14:15:47 +02:00
tsconfig.test.json Prettiers 2021-02-24 18:48:16 -05:00
tsconfig.webviews.json Prettiers 2021-02-24 18:48:16 -05:00
tsfmt.json Add precommit hook similar to microsoft/vscode (#3706) 2022-07-08 09:48:27 -04:00
webpack.config.js Remove old create view (#5162) 2023-08-08 14:45:41 -07:00
yarn.lock Bump micromatch from 4.0.2 to 4.0.8 (#6182) 2024-08-28 16:11:06 +02:00

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: