Skip to content

Conversation

@chrxmvtik
Copy link
Contributor

Fix #7156

Test

To test this pull request, you can run the following commands:

  1. Use automerge parameter on gitlab merge request action
  2. Configure gitlab repository to allow only merging when pipelines succeeded
  3. Pipeline automerges successfully

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

What changed

  • Removed old http client
  • Implemented gitlab client-go client
  • Modified current functions that relied on previous client to utilize gitlab client-go
  • Types directly from client-go
  • Removed unused functions
  • Modified spec for gitlab merge request action - removed MergeWhenPipelineSucceeded (deprecated), kept just AutoMerge - for backward compatible clients merge_when_pipeline_succeeded api request is set as AutoMerge value.

@olblak olblak added the enhancement New feature or request label Dec 12, 2025
olblak
olblak previously approved these changes Dec 12, 2025
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

@olblak olblak enabled auto-merge (squash) December 12, 2025 15:22
@olblak
Copy link
Member

olblak commented Dec 12, 2025

Hi @chrxmvtik,
Apparently the UT are not passing

cd pkg/plugins/resources/gitlab 
go test ./...

Would you have some time to look into this?

@chrxmvtik
Copy link
Contributor Author

Hi @chrxmvtik, Apparently the UT are not passing

cd pkg/plugins/resources/gitlab 
go test ./...

Would you have some time to look into this?

Yes, of course, I will deep dive into it. Seems like it is not happy about Token being an empty string.

I will make sure all tests pass before pushing a new change.

auto-merge was automatically disabled December 12, 2025 16:13

Head branch was pushed to by a user without write access

@chrxmvtik
Copy link
Contributor Author

@olblak tests are passing, now.

I was calling incorrect parameter to obtain project id, it is fixed now.

@olblak olblak enabled auto-merge (squash) December 12, 2025 16:58
@olblak
Copy link
Member

olblak commented Dec 12, 2025

Thank you very much, once merged, I trigger a release

@olblak olblak merged commit 513893b into updatecli:main Dec 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gitlab api client not using retry mechanism

2 participants