You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/steps/1-open-a-pull-request.md
+34-11Lines changed: 34 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,41 @@
2
2
3
3
_Welcome to "Review pull requests"! :wave:_
4
4
5
-
Let's get started by opening a pull request.
5
+
Let's get started by opening a pull request on some changes that were recently added to the the `update-game` branch.
6
6
7
-
**What is a pull request?**: Collaboration happens on a pull request. The pull request shows the changes in your branch to other people. This pull request is going to keep the changes you just made on your branch and propose applying them to the `main` branch.
7
+
### What is a pull request?
8
+
9
+
A **pull request** is a collaboration area where work in one branch is reviewed before merging it into another branch. It has 4 tabs to manage the conversation and easily review changes.
10
+
11
+
-**Conversation** - A general log of the pull request activity. It also provides open space fellow collaborators and the community to provide ideas, suggestions, and general feedback.
12
+
-**Committs** - A list of only the commits unique to the proposed branch.
13
+
-**Checks** - The results of any automations applied to the pull request using [GitHub Actions](https://github.com/features/actions). That's for another lesson though. 😎
14
+
-**Files Changed** - A [Diff](https://docs.github.com/en/get-started/quickstart/github-glossary#diff) view that easily shows the proposed changes in a before/after view. It also options to add comments and reviews in context.
15
+
16
+
> [!TIP]
17
+
> You can [create a draft pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) for unfinished work. This can help avoid accidental merges or premature reviews.
8
18
9
19
### :keyboard: Activity: Create a pull request
10
20
11
-
1. Click on the **Pull requests** tab in your repository.
12
-
2. Click **New pull request**.
13
-
3. In the **base:** dropdown, make sure **main** is selected.
14
-
4. Select the **compare:** dropdown, and click `update-game`.
15
-
5. Click **Create pull request**.
16
-
6. Enter a title for your pull request: `Update the game over message`.
17
-
7. Enter a description for your pull request: `Update the game over message so people know how to play again!`
18
-
8. Click **Create pull request**.
19
-
9. With the pull request created, Mona will check your progress then prepare and share the next steps.
21
+
1. In the top navigation, select the **Pull requests** tab.
22
+
23
+
1. On the right, click the **New pull request** button.
24
+
25
+
1. Under the **Compare changes** area, select the following options and click the **Create pull request** button.
26
+
27
+
-**base:**`main`
28
+
-**compare:**`update-game`
29
+
30
+
1. Set the **title** and **description** to the following.
31
+
32
+
```md
33
+
Update the game over message
34
+
```
35
+
36
+
```md
37
+
Update the game over message so people know how to play again!
38
+
```
39
+
40
+
1. Click **Create pull request**.
41
+
42
+
1. With the pull request created, Mona will check your progress and share the next steps.
Copy file name to clipboardExpand all lines: .github/steps/2-assign-yourself.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
3
3
_Great job opening that pull request! :wave:_
4
4
5
-
**What is a _pull request review_?**: Reviewing a pull request is an opportunity to examine another contributor's changes and give them feedback. It's an awesome opportunity to learn more about how the project works and how others solve problems.
5
+
#### What is an assignee?
6
6
7
-
The best way to get a review is to ask for one. On GitHub, you can ask someone to review a pull request by assigning them as a reviewer or assignee. If you are not ready for review, consider [creating a draft pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) instead.
7
+
A **pull request assignee** is the person (or persons) most familiar with the the proposed changes.
8
+
It's a simple mechanism for keeping track of who to contact for questions.
8
9
9
10
### :keyboard: Activity: Assign yourself
10
11
11
-
1. Open the pull request you just created.
12
-
1. Under **Assignees** on the right side of the screen, add yourself.
12
+
1. If not on the created pull request, navigate back to it.
13
13
14
-
Because you created the pull request, you can't assign yourself as a reviewer, but feel free to assign a friend as a reviewer instead to see how it works :smile:
14
+
1. On the right side, under **Assignees**, click the **assign yourself** text.
15
15
16
-
1.With the pull request assigned, Mona will check your progress then prepare and share the next steps.
16
+
1.After assigning yourself, Mona will check your progress and share the next steps.
Copy file name to clipboardExpand all lines: .github/steps/3-leave-a-review.md
+37-14Lines changed: 37 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,29 @@
2
2
3
3
_You assigned yourself! :tada:_
4
4
5
-
Pull request reviews ensure quality and maintain momentum of changes to your project.
5
+
#### What is a pull request review?
6
6
7
-
#### When reviewing a pull request:
7
+
A **pull request review** is feedback from other collaborators or community members on the proposed changes. It helps ensure quality and project momentum. Even more importantly, it's an awesome opportunity to learn more about the project and grow as a developer by seeing how others approach the problem.
8
8
9
-
1. Review the _title_ and _body_ of the pull request, and possibly any associated issue, to understand the intended change.
10
-
1. Review the [diff](https://docs.github.com/en/get-started/quickstart/github-glossary#diff), the comparison of the proposed code, in the context of the whole project.
11
-
1. For most things, try out the proposed change. Check if the actual change matches the intention. Find the repository's [contributing guide](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/setting-guidelines-for-repository-contributors) to find out how to review the changes.
9
+
Naturally, the best way to get a review is to ask for one. By assigning a reviewer they get 3 options for providing feedback:
12
10
13
-
#### In your review comments:
11
+
-**Comment** - General feedback without approval or rejection.
12
+
-**Approve** - Allows merging if [rulesets](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets), [code owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners), or other policies are enforced.
13
+
-**Request Changes** - The proposed changes need continued work and review should be re-requested.
14
+
15
+
The **Files changed** tab is the primary place for collecting feedback. It allows for adding comments directly to lines before submitting a review.
16
+
17
+
### What does a review typically loook like?
18
+
19
+
1. Reviewing the **title** and **description** are clear and concise. It should easily convey the intended changes and any associated issues.
20
+
21
+
1. Reviewing the **Files changed** tab to ensure all proposed code matches the description.
22
+
23
+
1. For most things, try out the proposed change to verify the they matche the intention.
24
+
25
+
1. Use the repository's [contributing guide](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/setting-guidelines-for-repository-contributors) for any guidance on review requirements, testing, quality verification, etc.
26
+
27
+
#### Review ideas
14
28
15
29
- Identify potential issues, risks, and limitations.
16
30
- Suggest changes and improvements.
@@ -21,13 +35,22 @@ Pull request reviews ensure quality and maintain momentum of changes to your pro
21
35
- Be concise _and_ provide meaningful detail.
22
36
- Treat the pull request author with kindness and empathy.
23
37
24
-
When an approval or request for changes is not yet needed, consider using **comments**. An **approval** lets the author know you believe the pull request is safe to merge. **Requesting changes** lets the author know you believe the pull request is not ready to merge.
25
-
26
38
### :keyboard: Activity: Leave a review
27
39
28
-
1. On the pull request, click **Files changed**.
29
-
1. Click **Review changes**.
30
-
1. Add a comment with your initial thoughts on the pull request.
31
-
1. Select _comment_. You won't be able to _approve_ or _request changes_ to your own pull request.
32
-
1. Click **Submit review**.
33
-
1. With the review submitted, Mona will check your progress then prepare and share the next steps.
40
+
1. On the pull request, click the **Files changed** tab.
41
+
42
+
1. Take a moment to review the change.
43
+
44
+
- Notice the change is a simple wording adjustment.
45
+
46
+
1. Above the comparison view, click the **Review changes** button.
47
+
48
+
1. Enter the following comment and click the **Submit review** button.
49
+
50
+
```md
51
+
Looks good to me. I think this is more intuitive. Nice work!
52
+
```
53
+
54
+
> 🪧 **Note:** You can't choose **Approve** or **Request changes** because your created the pull request.
55
+
56
+
1. With your review submitted, Mona will check your progress and share the next steps.
Copy file name to clipboardExpand all lines: .github/steps/4-suggest-changes.md
+31-9Lines changed: 31 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,40 @@
2
2
3
3
_Nice work reviewing that pull request :sparkles:_
4
4
5
-
Now that you have explored the different ways you can review a pull request it is time to learn how to use _suggest changes_.
5
+
While reviewing, it is very common to find simple changes that are easier to implement than to describe. For example typos or rewording sentences. These are perfect situations for the **Add a suggestion** feature.
6
6
7
-
**What is _suggest changes_?**: This feature enables you to recommend a change to a pull request that the author can commit with the push of a button.
7
+
### How do I suggest a change?
8
+
9
+
The **Add a suggestion** feature is a button in the comment text editor. It inserts a specially formatted code block. Instead of only showing a comment, GitHub will also provide a **Commit changes** button. This allows the author to accept the suggestion and commit it with the push of a button. No need to open a code editor! Nice!
8
10
9
11
### :keyboard: Activity: Suggest changes
10
12
11
13
1. On the pull request, click **Files changed**.
12
-
1. Find the `index.html` changes.
14
+
15
+
1. Find the comparison view for the `index.html` file and find the modified line.
16
+
13
17
1. Hover your cursor next to the line numbers on the left side of the page.
14
-
1. Click the blue plus icon.
15
-
1. After the comment form appears, click the **Add a suggestion** button. <br>
0 commit comments