Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Create Merge Request #41

Closed
simanga-dev opened this issue Aug 18, 2023 · 3 comments
Closed

Feat: Create Merge Request #41

simanga-dev opened this issue Aug 18, 2023 · 3 comments
Labels
feature request New feature or request

Comments

@simanga-dev
Copy link

"I've read the README.md document, but it only explains how to work with an already existing merge request. How can I create a new merge request if one doesn't exist?"

@harrisoncramer
Copy link
Owner

This isn't currently supported, but I could add it if there's a lot of interest. It's not high on my list of priorities right now, though, since the Gitlab CLI already supports this really well. For instance:

USAGE
  glab mr create [flags]

ALIASES
  new

FLAGS
      --allow-collaboration    Allow commits from other members
  -a, --assignee usernames     Assign merge request to people by their usernames
      --copy-issue-labels      Copy labels from issue to the merge request. Used with --related-issue
      --create-source-branch   Create source branch if it does not exist
  -d, --description string     Supply a description for merge request
      --draft                  Mark merge request as a draft
  -f, --fill                   Do not prompt for title/description and just use commit info
      --fill-commit-body       Fill description with each commit body when multiple commits. Can only be used with --fill
  -H, --head OWNER/REPO        Select another head repository using the OWNER/REPO or `GROUP/NAMESPACE/REPO` format or the project ID or full URL
  -l, --label strings          Add label by name. Multiple labels should be comma separated
  -m, --milestone string       The global ID or title of a milestone to assign
      --no-editor              Don't open editor to enter description. If set to true, uses prompt. (default false)
      --push                   Push committed changes after creating merge request. Make sure you have committed changes
      --recover                Save the options to a file if the merge request fails to be created. If the file exists, the options will be loaded from the recovery file (EXPERIMENTAL)
  -i, --related-issue string   Create merge request for an issue. The merge request title will be created from the issue if --title is not provided.
      --remove-source-branch   Remove Source Branch on merge
      --reviewer usernames     Request review from users by their usernames
  -s, --source-branch string   The Branch you are creating the merge request. Default is the current branch.
      --squash-before-merge    Squash commits into a single commit when merging
  -b, --target-branch string   The target or base branch into which you want your code merged
  -t, --title string           Supply a title for merge request
  -w, --web                    continue merge request creation on web browser
      --wip                    Mark merge request as a work in progress. Alternative to --draft
  -y, --yes                    Skip submission confirmation prompt, with --fill it skips all optional prompts

@harrisoncramer harrisoncramer added the feature request New feature or request label Aug 18, 2023
@simanga-dev
Copy link
Author

oOh Thanks. I was not previously familiar with the CLI tool. I will explore the CLI and evaluate its user experience.

@harrisoncramer harrisoncramer changed the title "[Question] How can I create a merge request using this plugin?" Feat: Create Merge Request Dec 17, 2023
@harrisoncramer
Copy link
Owner

This has been implemented, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants