- Click the Branch button on the top middle of the window.
- Choose the name of your branch.
- Hit enter.
- The branch will only be local for now. It will be remote once you do the first push.
- Hover the PULL REQUEST tag to the left.
- Click on the + symbol that just appeared.
- Choose the From Repo (in this case MaxTibs/snqc).
- Choose the branch. It's the one you were working on.
- If you are unable to select your branch from here, close the panel on creating a pull request, click the 3 dots symbol that are on you branch and select Start a pull request to origin/ from origin/branch-name. This will do it.
- Choose the To repo. Always the same as the From Repo
- Choose the branch. Usually you'll want to pick master.
- Add a title and maybe a little description.
- If you know you will review your code, add him as the reviewer.
- You can also choose to add a label to your PR.
- You can finally create your PULL REQUEST.
- Click on the 3 dots and click on View pull request on github.com of the Pull Request you want to review. It will redirect you to the website of Github (obviously).
- ALSO, click on the checkout option to test the branch changes. Really important!
- See Github steps for the rest of the process.
- Hit
Ctrl+Shift+Pand write branch in the opened input. - Select the command git: create a branch
- Choose the name of your branch.
- Hit enter.
- The branch will only be local for now. It will be remote once you do the first push.
- To be able to do this in VS code, you'll need this extension.
- Then, you're supposed to see the extension at the bottom of SCM view - Contrôle de code source - located in the left panel.
- NOTE: You will only be able to see it if there's at least one Pull request created ad first.
- You'll be requiered to sign in to Github to be able to continue.
- After all that, you will be able to see the extension.
- Hover the Github Pull Requests tab in the SCM view and click the + icon.
- You will then need to choose the target branch (Typically master) the origin branch will be the current checkout one.
- Click on the Pull Request and then on the description.
- From there, you'll have the possibility to approve the PR, request changes or merge the pull request.
- You're done!
- Go to the home page of the project on github.
- Click on the Branch dropdown.
- Enter the name of the branch you want to create and hit enter.
- Click the new pull request button located on the home page of the project.
- Change de right branch to be the one you want to create a pull request on.
- Add title and description and click the green button Create pull request.
- First, go the the Pull requests tab at the top of the project's page.
- Select the Pull request you want to review.
- Click either on Add your review or the Files changed tab to start your review process.
- There you can add your comments to all files you wish to.
- Once you are done, still in the Files changed tab, click on the Review changes green button to the top right.
- You'll be shown 3 options :
- One to leave comments without approval.
- One to approve the PR.
- One to leave a feedback that must absolutely be taken into account before merging.
- Once you approve, you will be redirected to the Conversation tab. There you will now be able to merge the Pull Request. Make sure the first option of the merge type is selected (Create a merge commit). This leaves the commits of the branch untouched, so it is easy to revert a commit if ever needed instead of reverting the whole Pull Request merge.
- You can then confirm the merge. No need to deleted the branch as it can be helpful to retrace so changes in the future if we need to.
- That's it!