Questions tagged [merge-request]

114 questions
37
votes
2 answers

What's the difference between "Submit review" and "Add comment now" in GitLab's merge request discussions?

First time GitLab user and I'm a bit confused when reviewing someone's merge request. Whenever I add a comment I get prompted with 2 options [Submit review] and [Add comment now]. What's the difference between the 2? Why is there a need for 2…
Edito
  • 3,030
  • 13
  • 35
  • 67
28
votes
6 answers

Can I still add commit on branch after created merge request?

I have a branch feature/xyz-functionality which I wanted to merge with develop branch. I created 3 days ago and I don't have rights for merging. On the other hand my team lead is busy in other stuff, and in this period I wrote more script which I…
Imran Abbas
  • 755
  • 1
  • 7
  • 24
13
votes
4 answers

How to have a Gitlab CI Pipeline run some jobs always and other jobs only on merge-requests?

TL/DR: My goal is to have a Gitlab (CE-12.4.2) pipeline that executes some jobs only on merge-requests and other jobs always (on merge-requests and on all normal pushes). How must the .gitlab-ci.yml look to do this? My use-case: I have a big…
Gerrit Addiks
  • 393
  • 2
  • 8
12
votes
4 answers

Set default reviewers for merge request in GitLab

How I can set default reviewers in GitLab Premium? In Settings → General I have only Merge request (MR) approvals, not reviewers.
leusrox
  • 1,855
  • 3
  • 10
  • 17
12
votes
2 answers

Gitlab: Is it possible to filter merge requests by multiple authors?

We have monorepo, my team responsible for 3 of 20 packages/folder of repository, but sometimes we need to touch others packages/folders. For reviewing teammates changes every member should add “team_label” for ability to filter by this label or to…
Alex
  • 329
  • 2
  • 17
11
votes
2 answers

In gitlab, how to set "pipelines must succeed" only for specific branches but not others for a merge request to merge?

In the merge checks settings, I have enabled the "pipelines must succeed" option: But the branches without any jobs are stuck at merge by saying "waiting for pipelines status" and you can't merge without a successful pipeline. Can I enable the…
shaik reyan
  • 129
  • 1
  • 8
9
votes
1 answer

How to commit new changes to an open merge request?

I am new to working in branching and git. I developed some test cases and created new branch to push the changes in that branch and opened a merge request in GitLab to be merged in master branch. After PR, my reviewer highlighted some code…
Hamza
  • 165
  • 1
  • 1
  • 11
6
votes
1 answer

Gitlab merge "merge request" with commit

I believe it's stupid question but I don't understand how should I use gitlab merge request push options I have this scenario: I have open merge request from develop to master I make some changes on develop branch and push them to gitlab server…
Daniel Barton
  • 491
  • 5
  • 14
5
votes
2 answers

Are commits preserved by GitLab even after the branch is deleted after MR get merged

In our development using GitLab we usually squash commits from feature branches when they are merged in main branch (we use rebase strategy instead of merge if it matters). But if the commits from feature branch are squashed to a single commit…
uranix
  • 657
  • 1
  • 5
  • 23
5
votes
2 answers

How to restrict team members from merging the changes that they did in there forked repository to base repository?

I have created a base repository and sent request to my friend to become the collaborator of my project. He forked mine repository and did some changes there. And then he created a pull request for me to merge changes that he did. But along with it…
5
votes
2 answers

Should "merge commit" be merged back into the dev branch?

We use Gitlab for our project, and we have two long-lived branches: dev and master, similar to the Git Flow. And We're using the "merge commit" method, which will create a merge commit in the master branch. However, the master branch will always…
Charlie
  • 2,141
  • 3
  • 19
  • 35
4
votes
1 answer

Gitlab merge request default name

When a merge request it's created from an issue, this title it's generated: Draft: Resolve "issue" How can I modify the default behavoiur? Ideally to me should be fine just Draft: Issue
Moia
  • 2,216
  • 1
  • 12
  • 34
4
votes
1 answer

How to create a merge request review from the GitLab api?

I'm trying to replicate the ability to add reviews to GitLab merge requests in my app and I don't see anything in the api documentation related to merge request reviews or merge request draft notes. On the web version of GitLab, when I create a…
brianc
  • 1,547
  • 3
  • 16
  • 30
4
votes
1 answer

82 additional commits have been omitted to prevent performance issues. gitLab

I've release merge request on gitlab which contains almost 200 commits, but I can't load whole list cuz the gitLab shows me something like this below commit list: 82 additional commits have been omitted to prevent performance issues. How can I see…
4
votes
1 answer

GitLab : Can not find "default description template for merge request"

I created a project and the role is Maintainer. When I want to create "default description template for merge request", I can not find text area. enter image description here Does anyone know why this is happening? I do not want to use…
Hsiao-I Yang
  • 65
  • 2
  • 10
1
2 3 4 5 6 7 8