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

fix: Atlantis Triggers AutoPlans on Non-Code Change GitLab Merge Event Webhooks #3567

Merged
merged 13 commits into from
Jul 6, 2023

Conversation

X-Guardian
Copy link
Contributor

@X-Guardian X-Guardian commented Jul 2, 2023

what

Updates the ParseGitlabMergeRequestUpdateEvent function to return models.OtherPullEvent if ObjectAttributes.OldRev doesn't exist.

Also updated the GitLab 'update target branch' test, as this doesn't have a code change so shouldn't return models.UpdatedPullEvent.

why

tests

Tested locally

@X-Guardian X-Guardian requested a review from a team as a code owner July 2, 2023 14:57
@github-actions github-actions bot added go Pull requests that update Go code provider/gitlab labels Jul 2, 2023
@X-Guardian
Copy link
Contributor Author

Maintainers, this PR is ready for review.

@jamengual jamengual merged commit fce28eb into runatlantis:main Jul 6, 2023
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
…t Webhooks (runatlantis#3567)

* Gitlab merge event fix

* Update events controller tests

* Update eventrsController formatting

* Update events controller test formatting

* Revert gitlab_request_parser_validator

* Update event_parser

* Update tests

* Add new testdata

* Add testdata EOF LF

* Update gitlab-merge-request-event-update-reviewer.json

* Update gitlab-merge-request-event-update-milestone.json
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
…t Webhooks (runatlantis#3567)

* Gitlab merge event fix

* Update events controller tests

* Update eventrsController formatting

* Update events controller test formatting

* Revert gitlab_request_parser_validator

* Update event_parser

* Update tests

* Add new testdata

* Add testdata EOF LF

* Update gitlab-merge-request-event-update-reviewer.json

* Update gitlab-merge-request-event-update-milestone.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Atlantis Triggers AutoPlans on Non-Code Change GitLab Merge Event Webhooks
2 participants