Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2cf80d11
Commit
2cf80d11
authored
Dec 12, 2017
by
micael.bergeron
Committed by
Achilleas Pipinellis
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for commit diff discussion in merge requests
parent
d673628d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
0 deletions
+47
-0
doc/user/discussions/img/commit_comment_mr_context.png
doc/user/discussions/img/commit_comment_mr_context.png
+0
-0
doc/user/discussions/img/commit_comment_mr_discussions_tab.png
...ser/discussions/img/commit_comment_mr_discussions_tab.png
+0
-0
doc/user/discussions/img/merge_request_commits_tab.png
doc/user/discussions/img/merge_request_commits_tab.png
+0
-0
doc/user/discussions/index.md
doc/user/discussions/index.md
+47
-0
No files found.
doc/user/discussions/img/commit_comment_mr_context.png
0 → 100644
View file @
2cf80d11
25.2 KB
doc/user/discussions/img/commit_comment_mr_discussions_tab.png
0 → 100644
View file @
2cf80d11
14.8 KB
doc/user/discussions/img/merge_request_commits_tab.png
0 → 100644
View file @
2cf80d11
12.5 KB
doc/user/discussions/index.md
View file @
2cf80d11
...
...
@@ -32,6 +32,43 @@ hide discussions that are no longer relevant.
Comments and discussions can be resolved by anyone with at least Developer
access to the project or the author of the merge request.
### Commit discussions in the context of a merge request
> [Introduced][ce-31847] in GitLab 10.3.
For reviewers with commit-based workflow, it may be useful to add discussions to
specific commit diffs in the context of a merge request. These discussions will
persist through a commit ID change when:
-
force-pushing after a rebase
-
amending a commit
To create a commit diff discussion:
1.
Navigate to the merge request
**Commits**
tab. A list of commits that
constitute the merge request will be shown.
![Merge request commits tab](img/merge_request_commits_tab.png)
1.
Navigate to a specific commit, click on the
**Changes**
tab (where you
will only be presented diffs from the selected commit), and leave a comment.
![Commit diff discussion in merge request context](img/commit_comment_mr_context.png)
1.
Any discussions created this way will be shown in the merge request's
**Discussions**
tab and are resolvable.
![Merge request Discussions tab](img/commit_comment_mr_discussions_tab.png)
Discussions created this way will only appear in the original merge request
and not when navigating to that commit under your project's
**Repository > Commits**
page.
TIP:
**Tip:**
When a link of a commit reference is found in a discussion inside a merge
request, it will be automatically converted to a link in the context of the
current merge request.
### Jumping between unresolved discussions
When a merge request has a large number of comments it can be difficult to track
...
...
@@ -133,6 +170,15 @@ From now on, any discussions on a diff will be resolved by default if a push
makes that diff section outdated. Discussions on lines that don't change and
top-level resolvable discussions are not automatically resolved.
## Commit discussions
You can add comments and discussion threads to a particular commit under your
project's
**Repository > Commits**
.
CAUTION:
**Attention:**
Discussions created this way will be lost if the commit ID changes after a
force push.
## Threaded discussions
> [Introduced][ce-7527] in GitLab 9.1.
...
...
@@ -229,6 +275,7 @@ edit existing comments. Non-team members are restricted from adding or editing c
[
ce-14053
]:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14053
[
ce-14061
]:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14061
[
ce-14531
]:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14531
[
ce-31847
]:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31847
[
resolve-discussion-button
]:
img/resolve_discussion_button.png
[
resolve-comment-button
]:
img/resolve_comment_button.png
[
discussion-view
]:
img/discussion_view.png
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment