In this hands-on lab you will learn how to collaborate on code using pull-requests. The exercise consists of the following parts:
- Read the issue 🪲 Highly Recommended section should be without exclamation mark ! and try to find the code in your code space to change this text to "Highly Recommended"(without the exclamation mark).
💡 : Use CTRL+SHIFT+F to quickly search for this text
Invite your co-worker and give them write permissions to your repo
Solution
- Go to Collaborators and click
Add people
. Search for your partner and add them to your repo.
- Your partner will receive a notification - but you can also copy the link for the invitation and send it directly.
- Your partner has to accept the invitation.
- Create a branch called
textchange
and commit your change. In the commit message add a reference to the Issue using the#
sign and the issue number. If you add the message
This commit fixes #<issuenumber>
the issue will be automaticall closed.
- Push your changes
Now create a pull request.
Go to the pull request tab and click Compare and pull request
:
Note that the title and body of the commit are automatically added to the PR. Add your colleague as a reviewer
Create the PR.