This vscode extension integrates with GitHub.
Current it is possible to do the following:
- Checkout one of the open pull requests
- Open github page for the current project in your default browser
- Browse one of the open pull requests in your default browser
- Browse the pull requests of your current branch
- Display pull request and current status (e.g. mergeable, travis build done, ...) in the StatusBar
- Create a new pull request based on the current branch and the last commit The current branch will be requested to merge into master and the pull request title is the commit message summary, or a custom message if configured that way.
- Create a pull request in forked repositories
- Allow to select a branch to create a pull request for
- Merge current pull request with either of 'merge', 'squash' or 'rebase' method.
- Configure default branch, merge method and refresh interval.
- Allow to manage assignees for pull requests
- Allow to create and cancel pull request reviews
- Support for GitHub Enterprise (on-premise installations)
- Browse open issues
- Browse the current open file (including current cursor position)
- Configure the statusbar behaviour by setting the
github.statusBarCommand
configuration value.
To use this extension one needs to create a new GitHub Personal Access Token and registers it in the extension. The 'GitHub: Set Personal Access Token' should be executed for that.
- Create a new local branch from the commit you wanted to start developing with
- Do you code changes
- Commit your changes
- Push your changes to your remote
- Then execute
Create pull request from current branch in current repository (quick)
- In the status bar you can then see the status of your created pull request and if you'd like to open it
- Fork a repository and clone it afterwards
- Create a new local branch from the commit you wanted to start developing with
- Do you code changes
- Commit your changes
- Push your changes to your remote
- Then execute
Create pull request...
- Select the upstream repository you want to create the pull requets for
Note: The status bar will not reflect the pull request status in this case
- Execute
Checkout open pull request...
- Select a pull request from the list
- The pull request is checked out and your working copy switches to that branch
- Execute
Browse open pull request...
- Select a pull request from the list
- Your default browser opens the pull request on github
- Execute
Merge pull request (current branch)...
- Select your merge strategy from the shown list (merge, squash, rebase)
- The pull request associated with your current branch is then merged
This extension collects telemetry data to track and improve usage. The collection of data could be disabled as described here https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.