Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating pull requests in gitlab

I have a GitLab installation running, and I have a repository that I want to share with my friends. I can't understand the flow of sending pull requests in GitLab.

A user can't fork my repository or access my project (unless he is my on team). A merge request can be from one branch to another in my repository.

How do pull requests work in GitLab?

like image 474
Yosi Avatar asked Mar 13 '13 21:03

Yosi


People also ask

Does GitLab have pull request?

Gitlab pulls request is defined as an event that enables a user who acts as a contributor to the code to seek a request from the maintainer of a repository in a Gitlab so that the maintainer can review the code and then save the path for merging the code into the project.

Is GitLab merge request same as pull request?

A Git pull request is essentially the same as a Git merge request. Both requests achieve the same result: merging a developer's branch with the project's master or main branch. Their difference lies in which site they are used; GitHub uses the Git pull request, and GitLab uses the Git merge request.


3 Answers

GitLab.com co-founder here. Forking should work fine in recent versions of GitLab (6.x). You can fork a repo belonging to someone else and then create a merge request (the properly named version of the GitHub pull request).

like image 83
Sytse Sijbrandij Avatar answered Oct 20 '22 12:10

Sytse Sijbrandij


GitLab will have forking as of version 5.2. Cross repo pull requests will soon follow.

Fork pull request: https://github.com/gitlabhq/gitlabhq/pull/3597

like image 23
Angustus Avatar answered Oct 20 '22 11:10

Angustus


As mentioned in "Development" and in this thread

There is no forking in GitLab (at least until GitLab 5.2, May 2013 as mentioned by, and thanks to Angustus)
because it's not meant to have that kind of functionality like GitHub.
If you're using GitLab, presumably you're going to either own the repo or someone on your team, in which you would have access and can create a branch to work on a feature / whatever.

If you create a branch, then you can submit a merge request where it can be reviewed by other people in the project (or whatever your workflow dictates), and accept the merge.

Accepting merge request has been implementing in Issue 618:

accept merge request

like image 14
VonC Avatar answered Oct 20 '22 12:10

VonC