Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab FOSS
GitLab FOSS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #43263

Closed
Open
Opened Feb 14, 2018 by Stan Hu@stanhuOwner

Add Git push option to create a merge request

Right now I find it a bit cumbersome to push and have to create a merge request with the UI. I think it would more useful to create a merge request automatically using git push options.

Further details

This is a necessary step to Push and Merge When Pipeline Succeeds https://gitlab.com/gitlab-org/gitlab-ce/issues/53198

Proposal

Working on a feature branch, I will be able to push and create a new merge request be specifying a merge target

git push -u origin -o merge.target=master

GitLab will create a new merge request with the first line of my commit message as the merge request title, and body of my commit message as the description. If the merge request contains multiple commits, use the first commit message in the branch. Amended to: GitLab will create a new merge request using the existing logic used for the Web UI in regards to title and description https://gitlab.com/gitlab-org/gitlab-ce/issues/43263#note_158256194.

Links / references

Edited Apr 08, 2019 by Luke Duncalfe
Assignee
Assign to
11.10
Milestone
11.10 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab-foss#43263