vscode-pull-request-github

microsoftMIT活跃维护

在 VS Code 里直接查看、创建和管理 GitHub Pull Request,还能做代码评审和评论,不用来回切浏览器。

GitHub Pull Requests for Visual Studio Code

v0.176.1发布于 2026-11-05 15:30 UTC2,640star +1 / 7 天817fork同步于 2026-11-10 05:42 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

5 个版本v0.176.1
  1. v0.176.10.176.1最新正式版2026-11-05 · 2026-11-05 15:30 UTC

    0.176.1

    Fixes

  2. v0.176.00.176.02026-11-04 · 2026-11-04 10:28 UTC
    查看更新说明

    0.176.0

    Changes

    • The pull request overview timeline shows more events, including label, milestone, and title changes, review requests and dismissals, draft and ready-for-review changes, force pushes, branch restores, auto-merge changes, and merge queue updates.
    • Pull request description templates support issue variables such as ${issueTitle}, ${issueNumber}, and ${issueNumberLabel}, filled in from the issue associated with the branch by "Start Working on Issue".
    • Add a "Comment and Resolve" button to review comment threads.
    • Queries in the Pull Requests view can refresh automatically. Set "githubPullRequests.autoRefreshQueries" to the refresh interval in seconds.
    • SAML error dialogs include a "Reauthenticate" button.
    • When you stack pull requests, you're prompted to disable auto-merge on any pull request in the stack that has it enabled.
    • Local pull request discovery reads Git config once instead of once per branch.

    Fixes

    Thank You

  3. v0.174.00.174.02026-11-04 · 2026-11-04 10:27 UTC
    查看更新说明

    0.174.0

    Changes

    • The "Update stack" action now uses the GitHub API to update a stacked pull request when possible, so you no longer need to have a pull request from the stack checked out.
    • The pull request overview shows a banner offering to create a stack when the pull request's branches line up with other open pull requests that aren't stacked yet. PR can be stacked
    • Polished the "Unstack", "Hide", and "Update stack" buttons in the pull request overview.
    • The changes editor opened from the pull request overview now uses the same title as the overview tab.
    • Hide redundant tools and skills in the Agents window.

    Fixes

  4. v0.172.00.172.02026-10-21 · 2026-10-21 16:36 UTC
    查看更新说明

    0.172.0

    Changes

    • The "Update stack" action now handles merge conflicts in stacked pull requests. When a rebase hits a conflict, you're guided to resolve it in the Source Control view, then continue or abort the rebase.

    Fixes

  5. v0.170.00.170.02026-10-16 · 2026-10-16 14:44 UTC
    查看更新说明

    0.170.0

    Changes

    • Add an "Update stack" action to the pull request overview, which rebases the branches in a stacked pull request onto their updated bases and pushes them. Requires that one of the PRs in the stack be checked out, and is still limited only to stacks that don't contain merge conflicts.

    Fixes

    Thank You

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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.

    GitHub Enterprise

    VS Code 1.141 or later is required. If you use Insiders, keep it updated to the latest build.

    Configure GHE.com and GitHub Enterprise Server instances using the built-in GitHub Authentication setting:

    {
    	"github-enterprise.uris": [
    		"https://company.ghe.com",
    		"https://github.example.com"
    	]
    }
    

    The list order does not select a default instance. An explicitly configured list takes precedence over the deprecated github-enterprise.uri setting, including an empty list ([]), which disables Enterprise instances. If the list is not configured, the legacy setting still applies. Workspace and folder instance settings only apply in trusted workspaces.

    GitHub Pull Requests uses one selected Enterprise account at a time, alongside a separate GitHub.com account. When another instance is needed or no account is selected, use Select Account in the Pull Requests or Login view. This opens account preferences for this extension and GitHub Enterprise directly, or starts sign-in if you have no Enterprise accounts yet. You can also run GitHub Pull Requests: Select GitHub Enterprise Account... or use Accounts > Manage Extension Account Preferences.... To add another instance, edit github-enterprise.uris in Settings; ordinary sign-in does not replace your existing list.

    Removing an instance from the list does not delete its saved sign-ins. GitHub.com accounts do not need either Enterprise setting.

    Remotes and queries

    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: