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: content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request.md
You can review changes in a pull request one file at a time. While reviewing the files in a pull request, you can leave individual comments on specific changes. After you finish reviewing each file, you can mark the file as viewed. This collapses the file, helping you identify the files you still need to review. A progress bar in the pull request header shows the number of files you've viewed. After reviewing as many files as you want, you can approve the pull request or request additional changes by submitting your review with a summary comment.
19
+
It's best to review changes in a pull request one file at a time:
20
+
21
+
***Examine** each individual file changed in the pull request.
22
+
***Leave comments** on specific changes.
23
+
* After reviewing a file, mark it as **Viewed** to collapse it and track your progress.
24
+
* The **progress bar** in the pull request header shows how many files you've viewed.
25
+
* When you've finished, you can **approve** the pull request or **request changes** by submitting your review with a summary comment.
20
26
21
27
{% ifversion copilot %}
22
28
23
29
If the pull request was raised by {% data variables.product.prodname_copilot %} then, when you submit your comments, {% data variables.product.prodname_copilot_short %} will carry out more work to respond to your comments and will push a new commit to the pull request with further changes. See [AUTOTITLE](/copilot/concepts/about-copilot-coding-agent).
24
30
25
31
{% endif %}
26
32
27
-
{% data reusables.search.requested_reviews_search_tip %}
28
-
29
33
{% webui %}
30
34
35
+
## Understanding the purpose of the pull request
36
+
37
+
Gaining a clear understanding of the motivation behind a pull request helps inform your review, so you can keep it targeted and meaningful, and provide feedback that is aligned with the pull request author’s intent and the project's goals.
38
+
39
+
There are several options available to you to better understand the context and rationale for proposed changes.
40
+
41
+
### Using the pull request sidebar for context
42
+
43
+
In the pull request sidebar, you can find valuable context including:
44
+
45
+
* Linked **issues** or **discussions**: Review these to understand the problems or goals that the pull request aims to address, or to gather information on, for example, any background, design decisions, or current debates.
46
+
* Linked **projects** or **milestones**: Review how this pull request fits within larger projects or upcoming releases.
47
+
48
+
Use this information to frame your review and check if the goals of the pull request align with the original intent.
49
+
50
+
{% ifversion copilot %}
51
+
52
+
### Using {% data variables.copilot.copilot_chat_short %} to understand the rationale
53
+
54
+
You can ask {% data variables.copilot.copilot_chat_short %} for help understanding the pull request’s intent or for clarification on any part of the change.
55
+
56
+
1. At the top right of the pull request page, click the **{% octicon "copilot" aria-label="Copilot icon" %}** button next to the search bar.
57
+
58
+
The full-page, immersive, mode of {% data variables.copilot.copilot_chat_short %} is displayed, with the pull request attached as context to the prompt window.
59
+
60
+
1. In the prompt box, type a question and press <kbd>Enter</kbd>. For example, you could enter:
61
+
62
+
*`What problem does this pull request solve?`
63
+
*`Why were these changes needed?`
64
+
*`Summarize the goals of this PR based on the linked issue.`
65
+
*`How does this PR relate to issue ISSUE-URL?`
66
+
67
+
{% data variables.copilot.copilot_chat_short %} can help you clarify the bigger picture before diving into line-level review.
0 commit comments