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

Use actual Merge Request number for GitLab MRs #3060

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Conversation

tobybellwood
Copy link
Member

The current GitLab webhook parser reads the incorrect id for a Merge Request (body.object_attributes.id instead of body.object_attributes.iid), causing the MR branch names in Lagoon to not correlate with the source branches in Gitlab.

This corrects this reference, and modifies the tests to match.

Note, this may cause existing MR branches in Lagoon to detach from their upstream source branches (which may create new Lagoon environments)

Closes #3059

@tobybellwood tobybellwood merged commit aaa276c into main Mar 14, 2022
@tobybellwood tobybellwood deleted the gitlab_mr_webhook branch March 14, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitLab merge requests use the incorrect id to name MR-based branches
1 participant