Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab: commenting on full file rather than on diff?

Tags:

git

gitlab

My understanding is that gitlab allows to comment on code only in the context of:

  • merge requests
  • when looking at commits In both case we can only comment on diffs between two commits.

Things are developed here.

This makes total sense in the context of continuous integration. Yet, on some occasion I would find extremely useful to comment on the full code of one commit, independently to its diffs with other commit. My understanding is this is not possible on gitlab, but I may be wrong ?

ps: I have enterprise edition, in case that changes anything.

like image 893
Vince Avatar asked Sep 09 '15 15:09

Vince


2 Answers

If I understand you correctly, you want to comment on a commit, not a particular file or diff line. This is a feature on GitHub and Stash so it totally make sense. Luckily, there is this feature also on GitLab.

For example, open this commit's page from gitlab-ce repository. If you are logged in, you'll see comment box at the bottom of the page. Also you'll see comment icons when you hover the code lines in the diff boxes.

like image 151
Gökay Gürcan Avatar answered Nov 15 '22 10:11

Gökay Gürcan


Sadly, this currently isn't possible.

The desired functionality is tracked in Code review on any line on any file in a merge request.

The issue dates back to Oct 8, 2018.

like image 29
Tom Hale Avatar answered Nov 15 '22 11:11

Tom Hale