-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(gitlab_client): prevent duplicate pipelines in gitlab merge requests #2745
Conversation
@michelmzs were you able to build this and test this out in your setup? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a fan of merging provided that this has been tested in the author's gitlab environment.
Yes, please take a look @nitrocode:
|
Great thank you @michelmzs ! cc: @jamengual please review one last time |
Thanks you @michelmzs |
…sts (runatlantis#2745) * fix(gitlab_client): change CommitStatus update logic to prevent duplicated pipelines in MRs * chore: refactor refTarget logic * chore: fix tests * chore: fix lint * chore: remove nested if
What
Add instructions to
SetCommitStatus
to avoid duplicate pipelines in GitLab Merge Requests.Why
GitLab pipeline can have multiple sources, the common usage for Atlantis are:
merge_request_event
sourceWhen a
gitlab-ci.yaml
rule enforces its creationexternal
sourceWhen no job is defined in gitlab-ci.yaml.
References
closes #2743