Skip to content

Commit ef108a9

Browse files
Remove updating the policy check run (#717)
We no longer need it with the new workflow check run combining the plan and validate steps together.
1 parent f17c2eb commit ef108a9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

server/legacy/events/vcs/github_client.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"encoding/base64"
1919
"fmt"
2020
"net/http"
21-
"regexp"
2221
"strconv"
2322
"strings"
2423
"time"
@@ -96,8 +95,6 @@ func (e ChecksConclusion) String() string {
9695
return ""
9796
}
9897

99-
var policyCheckRunRegex = regexp.MustCompile("atlantis/policy_check.*")
100-
10198
// github checks status
10299
type CheckStatus int
103100

@@ -507,9 +504,7 @@ func (g *GithubClient) UpdateStatus(ctx context.Context, request types.UpdateSta
507504
return "", errors.Wrap(err, "unable to allocate legacy deprecation feature flag")
508505
}
509506
// if legacy deprecation is enabled, don't mutate check runs in legacy workflow
510-
// exception: we always want to mutate atlantis/policy_check since new PR workflow has no knowledge of it
511-
// eventually we will get rid of it entirely
512-
if shouldAllocate && !policyCheckRunRegex.MatchString(request.StatusName) {
507+
if shouldAllocate {
513508
g.logger.InfoContext(ctx, "legacy deprecation feature flag enabled, not updating check runs")
514509
return "", nil
515510
}

0 commit comments

Comments
 (0)