Skip to content

Latest commit

 

History

History
64 lines (36 loc) · 2.68 KB

3-Collaborate_on_code.md

File metadata and controls

64 lines (36 loc) · 2.68 KB

🔨 Hands-on: Collaborate on code

In this hands-on lab you will learn how to collaborate on code using pull-requests. The exercise consists of the following parts:

Setting everything up

Review the issue to fix

  1. 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

Invite your co-worker and give them write permissions to your repo

Solution
  1. Go to Collaborators and click Add people. Search for your partner and add them to your repo.
image
  1. Your partner will receive a notification - but you can also copy the link for the invitation and send it directly.
image
  1. Your partner has to accept the invitation.
image

Create branch and commit changes to the file

  1. 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.

  1. Push your changes

Creating a pull request

Now create a pull request.

Go to the pull request tab and click Compare and pull request: image

Note that the title and body of the commit are automatically added to the PR. Add your colleague as a reviewer

image

Create the PR.