Comments
Every issue and merge request has a discussion thread where anyone who can read the repository can leave a comment.
Leaving a comment
Open an issue (…/issues/1) or a merge request (…/merge-requests/1) and scroll
to the Comments (issues) or Discussion (merge requests) section. Type into
the box and press Comment. You must be logged in; visitors see a Log in to
comment note instead of the form.
Comments are plain text and appear in the order they were posted, each showing the author's avatar, username, and a relative post time (just now, 10min ago, 6h ago, or a date for anything older than a day); hover the time to see the exact timestamp.
Any authenticated user who can read the repository may comment — you do not need to be the owner or a collaborator. On a private repository, only users who can read it can see or add comments.
Deleting a comment
A comment can be removed by:
- its author, or
- the repository owner or a collaborator.
Use the trash icon next to the comment. Deletion is immediate and cannot be undone.
Discussion vs. per-line review comments
A merge request has two kinds of comment:
- Discussion — the general thread described here, not tied to any code.
- Per-line review comments — anchored to a specific line of the diff. See the merge request line comments in the feature list; those are added from the diff itself by hovering a changed line.
Issues only have the general discussion thread.
# Comments
Every issue and merge request has a **discussion thread** where anyone who can
read the repository can leave a comment.
## Leaving a comment
Open an issue (`…/issues/1`) or a merge request (`…/merge-requests/1`) and scroll
to the **Comments** (issues) or **Discussion** (merge requests) section. Type into
the box and press **Comment**. You must be logged in; visitors see a *Log in to
comment* note instead of the form.
Comments are plain text and appear in the order they were posted, each showing the
author's avatar, username, and a relative post time (*just now*, *10min ago*,
*6h ago*, or a date for anything older than a day); hover the time to see the exact
timestamp.
Any authenticated user who can read the repository may comment — you do not need to
be the owner or a collaborator. On a private repository, only users who can read it
can see or add comments.
## Deleting a comment
A comment can be removed by:
- its **author**, or
- the repository **owner** or a **collaborator**.
Use the trash icon next to the comment. Deletion is immediate and cannot be undone.
## Discussion vs. per-line review comments
A merge request has two kinds of comment:
- **Discussion** — the general thread described here, not tied to any code.
- **Per-line review comments** — anchored to a specific line of the diff. See the
[merge request line comments](../../README.md#features) in the feature list;
those are added from the diff itself by hovering a changed line.
Issues only have the general discussion thread.