1

refs/merge-requests/*/head

return all list of merge request (merged & opened)

is it possible to get id's of opened requests only? without gitlab cli

all merge requests: 1, 2, 3, 4, 5 closed: 1, 2, 3

git terminal command return only: 4, 5

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445

1 Answers1

1

I would recommend using the glab CLI from GitLab instead of relying on Git refspecs alone.

glab mr list should be close to what you are looking for:

It does not show the status (see issues 1283), but it show MR closed only, or merged only.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250