Skip to content

Ability to add custom predefined argument switches to the push menu #1684

Closed
@AlexanderArvidsson

Description

@AlexanderArvidsson

There's a few arguments you can pass while pushing:
Image

It would be great if it was possible to add additional custom options here that can be appended to the push command. One example is git push -o merge_request.create where I would like to be able to add an argument switch on keys -m which would add the argument -o merge_request.create to the push command.

The use-case is once I am done with my feature branch and it's time to make an MR, it's easy to do so automatically via the merge_request.create option.
I believe merge_request.create is a GitLab specific option, hence why my suggested solution is the ability to append custom arguments to the push command, so you can tailor it to whatever backend you use. There's probably other useful options that can be passed via -o <option>.

Right now I have not found any alternatives, I push via the CLI every time I want to make an MR at the same time as the push.

I'd be happy to take a stab at this myself and make an MR, if this is something you guys would be OK with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions