glab mr create will not create merge requests via CLI

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: glab version 1.40.0 (2024-04-24)
  • Operating system and version: Windows running UBUNTU on WSL
  • Gitlab.com or self-managed instance? _gitlab.com
  • GitLab version (if self-managed) Not self managed
  • I have performed glab auth status to check for authentication issues

Summary

I have built a batch script to build all the MR's for multiple repositories and output them into text so I can share it with reviewers.

I had this working up until today May 16th.

Now my issue is that the create mr command is not creating the mrs anymore.

I am authorizing with a token and it says I am connected when I run glab auth status. I also have developer access to all the repo's allowing me to create merge requests.

This is the command: glab mr create --source-branch "source" --target-branch "target" --title "$source into target" --description "source into $target"

This gives me two different errors.

When I run in the batch I get:

Failed to create a merge request for project "<example/myproject>". Please ensure:

  • You are authenticated with the GitLab CLI.
  • Merge requests are enabled for this project.
  • You have a project role that allows you create merge requests.

When I run it with hardcoded variables I get the below error: accepts 0 arg(s), received 4

Environment

Other:

Steps to reproduce

Run this script once connected to glab with a token

glab mr create

What is the current bug behavior?

It throws this error: Failed to create a merge request for project "my_path/project". Please ensure:

  • You are authenticated with the GitLab CLI.
  • Merge requests are enabled for this project.
  • You have a project role that allows you create merge requests. Failed to create merge request. Created recovery file: mypath/mr.json Run the command again with the '--recover' option to retry

What is the expected correct behavior?

It should create the MR if it doesn't exist already in the repository

Relevant logs and/or screenshots

Possible fixes

Assignee Loading
Time tracking Loading