Skip to content

Commit 90ca828

Browse files
Denis-GHsubatoinguyenalex836
authored
Clarify the method of selecting several lines for commenting in PR. (#33001)
Co-authored-by: Ben Ahmady <[email protected]> Co-authored-by: Alex Nguyen <[email protected]>
1 parent 84e0158 commit 90ca828

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ To reply to an existing line {% ifversion pull-request-comment-on-file %}or file
4747
1. In the list of pull requests, click the pull request where you'd like to leave line comments.
4848
{% data reusables.repositories.changed-files %}
4949
{% data reusables.repositories.start-line-comment %}
50+
{% data reusables.repositories.multiple-lines-comment %}
5051
{% data reusables.repositories.type-line-comment %}
5152
{% data reusables.repositories.suggest-changes %}
5253
{% ifversion pull-request-comment-on-file %}

content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ You can change the format of the diff view in this tab by clicking {% octicon "g
3737
1. Optionally, if you have access to {% data variables.product.prodname_copilot_enterprise %}, you can ask {% data variables.product.prodname_copilot_short %} about the changes in a file in a pull request by clicking {% octicon "kebab-horizontal" aria-label="Show options" %} at the top right of the file, clicking **Ask {% data variables.product.prodname_copilot_short %} about this diff**, then typing a request such as "Explain these changes." For more information, see "[AUTOTITLE](/enterprise-cloud@latest/copilot/github-copilot-enterprise/copilot-chat-in-github/using-github-copilot-chat-in-githubcom#finding-out-about-the-changes-in-a-pull-request)."
3838
{%- endif %}
3939
{% data reusables.repositories.start-line-comment %}
40+
{% data reusables.repositories.multiple-lines-comment %}
4041
{% data reusables.repositories.type-line-comment %}
4142
{% data reusables.repositories.suggest-changes %}
4243
{% ifversion pull-request-comment-on-file %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1. Optionally, you can add a comment on multiple lines. You can click the line number of the first line you want to comment on and drag down to select a range of lines, then click the blue comment icon on the last line you want to comment on. Alternatively, you can click the blue comment icon next to the first line you want to comment on, then drag down to the last line you want to comment on.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
1. Hover over the line of code where you'd like to add a comment, and click the blue comment icon. To add a comment on multiple lines, click and drag to select the range of lines, then click the blue comment icon.
1+
1. Hover over the line of code where you'd like to add a comment, and click the blue comment icon.
22

33
![Screenshot of a diff in a pull request. Next to a line number, a blue plus icon is highlighted with an orange outline.](/assets/images/help/commits/hover-comment-icon.png)

0 commit comments

Comments
 (0)