Skip to content

Add a new `/create_branch` quick action

EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3629

Originally opened at https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10384 by @nurmuhammadsirat.


What does this MR do?

Allows to create a branch using a quick action. The default branch name can be overriden.

Are there points in the code the reviewer needs to double check?

I've changed how the JS handles quick actions because that was silly and since this action is quite different from the other ones (it doesn't act on the noteable directly).

Why was this MR needed?

Screenshots

Create a branch using the default name

create-branch-default-name-success

Create a branch using the default name + other actions

create-branch-default-name-success-multiple

Create a branch using the default name + other actions + comment

create-branch-default-name-success-multiple-with-comment

Create a branch using a custom name

create-branch-custom-name-success

Create a branch using a custom name that is invalid

create-branch-custom-name-failure

Create a branch using a custom name that is invalid + other actions

create-branch-custom-name-failure-multiple

Create a branch using a custom name that is invalid + comment

Step Screenshot
Step 1 Screen_Shot_2017-12-15_at_00.38.48
Step 2 Screen_Shot_2017-12-15_at_00.38.56
Step 3 Screen_Shot_2017-12-15_at_00.39.28
Step 4 Screen_Shot_2017-12-15_at_00.39.38

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #27801 (moved)

Edited by Rémy Coutable

Merge request reports