From abb815e9c3eb7e3c45f2eab6bc85d060af8f7d03 Mon Sep 17 00:00:00 2001 From: "Michel Z. Santello" Date: Wed, 2 Nov 2022 11:46:01 -0300 Subject: [PATCH] fix: prevent commit status in incorrect MR - closes https://github.com/runatlantis/atlantis/issues/2484 --- server/events/vcs/gitlab_client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/events/vcs/gitlab_client.go b/server/events/vcs/gitlab_client.go index feeacc3573..26eb93f223 100644 --- a/server/events/vcs/gitlab_client.go +++ b/server/events/vcs/gitlab_client.go @@ -249,6 +249,7 @@ func (g *GitlabClient) UpdateStatus(repo models.Repo, pull models.PullRequest, s Context: gitlab.String(src), Description: gitlab.String(description), TargetURL: &url, + Ref: gitlab.String(pull.HeadBranch), }) return err }