Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,332
    • Merge requests 1,332
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #296673
Closed
Open
Issue created Jan 05, 2021 by James Hartig@jameshartig0 of 6 checklist items completed0/6 checklist items

Add merge_request.draft push option

Release notes

Add merge_request.draft push option

Problem to solve

I'd like to be able to create a merge request on the command-line that's a draft from the start as well as change the draft status via pushing. This is useful if you want to create a MR that you don't want merged or reviewed yet and then once you have solved any issues and push a new commit you can remove the draft status. Without a push option you end up creating a MR and associated notifications without the draft status which can be confusing if you add it later.

Intended users

  • Delaney (Development Team Lead)
  • Sasha (Software Developer)

User experience goal

The user should be able to create a MR via a push option that starts off in Draft form. The user should later be able to unset Draft status upon a new push.

Proposal

A new push option merge_request.draft should be added that can be set to True or False.

Further details

If no value is provided then it should default to True like merge_request.create.

Permissions and Security

The permissions should be the same as the UI button.

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Edited Jan 05, 2021 by James Hartig
Assignee
Assign to
Time tracking