Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 36,988
    • Issues 36,988
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,442
    • Merge requests 1,442
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #8128

Closed
Open
Created Oct 11, 2018 by James Ramsay (ex-GitLab)@jramsay-gitlab🔴Contributor

Automatically merge when ready (pipelines succeed and approved)

When I create a merge request I want it to merge as soon as the pipelines succeed and the merge request is approved.

This feature essentially extends the Merge when pipeline succeeds to support approvals too.

Proposal

When creating/editing a merge request, if the user has merge permissions:

  • show a checkbox to Merge when pipeline succeeds (Core) or Merge when pipeline succeeds and approved
    • when a pipeline succeeds and the option is enabled, check if approval have been met, and merge
    • when an approval is added, check if approval requirements have been met and pipeline has succeeded, and merge

When viewing a merge request, if the user has merge permissions:

  • show a button to Merge when pipeline succeeds (Core) or Merge when pipeline succeeds and approved
    • when a pipeline succeeds and the option is enabled, check if approval have been met, and merge
    • when an approval is added, check if approval requirements have been met and pipeline has succeeded, and merge

Links / references

https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html

Edited Nov 19, 2018 by James Ramsay (ex-GitLab)
Assignee
Assign to
Backlog
Milestone
Backlog
Assign milestone
Time tracking