Yosi
Yosi

Reputation: 2966

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?

Upvotes: 42

Views: 104933

Answers (4)

Leonardo Merino
Leonardo Merino

Reputation: 31

In gitlab "pull requests" are named "merge requests". Learn more about them here

For what I can see, you basically:

  • look for the merge request list option, inside your gitlab repo and click it
  • inside select create new merge request
  • select the source branch and the target branch
  • click continue and you are done

Upvotes: 0

Sytse Sijbrandij
Sytse Sijbrandij

Reputation: 1905

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).

Upvotes: 40

VonC
VonC

Reputation: 1325966

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

Upvotes: 14

Angustus
Angustus

Reputation: 306

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

Upvotes: 19

Related Questions