You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gitlab has a separate identifier and counter for issues (represented by "#") vs merge requests (represented by "!") in comments. This is unlike Github were the issues and pull requests have the same identifier (represented by "#") and counter. Currently in Gitlab if one terraform root directory is locked by a plan and another MR comes in for the same root directory Atlantis response with the lock message but it points to an issue ("#") instead of the actual MR ("!"). As seen by the following screenshot:
You'll need to change the signature of TryLock to also accept a VCSHostType argument, then pass this in from where it gets called and then change the TryLock function to detect if it's GitLab and use a different reference string.
Description
Gitlab has a separate identifier and counter for issues (represented by "#") vs merge requests (represented by "!") in comments. This is unlike Github were the issues and pull requests have the same identifier (represented by "#") and counter. Currently in Gitlab if one terraform root directory is locked by a plan and another MR comes in for the same root directory Atlantis response with the lock message but it points to an issue ("#") instead of the actual MR ("!"). As seen by the following screenshot:
The good new is the MR number is correct but it appears that the string formatting in the error is just assuming
#
: https://github.com/runatlantis/atlantis/blob/master/server/events/project_locker.go#L66Expected Behavior
!199
instead of#199
for GitlabSystem Info
The text was updated successfully, but these errors were encountered: