Skip to content

feat(gitlab/mergerequest): configure additional fields during mr creation #5094

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

Merged
merged 10 commits into from
May 13, 2025

Conversation

alikhil
Copy link
Contributor

@alikhil alikhil commented May 9, 2025

This PR add support of setting additional Gitlab MR options during it's creation:

  • labels
  • reviewers
  • assignees
  • squash
  • removeSourceBranch

Additional Information

All interaction with Gitlab in gitlab/mergerequest action have been rewritten using gitlab-api-client-go libarary

@olblak
Copy link
Member

olblak commented May 12, 2025

It looks good to me, I am wondering why the test is failing as it doesn't look like the usual flaky e2e tests

@olblak olblak added enhancement New feature or request action-gitlab labels May 12, 2025
@olblak
Copy link
Member

olblak commented May 13, 2025

I had a quick look to the drone/go-scm library and there, they always return the response, which is useful to get additional information https://github.com/drone/go-scm/blob/a515870a3931d01562ab61723891462134a3277f/scm/driver/gitlab/pr.go#L80

Especially when the request fails for situation like authentication issues that are not catch by the err handling

Copy link
Member

@olblak olblak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pullrequest.

While I tested it, I didn't try to open a mergerequest

@olblak olblak merged commit 3ad7a99 into updatecli:main May 13, 2025
6 checks passed
@alikhil alikhil deleted the gitlab-improvements branch May 13, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action-gitlab enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants