diff --git a/bot/internal/review/review.go b/bot/internal/review/review.go index 0cd16f6a..c8f51066 100644 --- a/bot/internal/review/review.go +++ b/bot/internal/review/review.go @@ -44,10 +44,17 @@ const ( // RenovateBotPublic is the name of the app that runs the Renovate action in // public repos(teleport). RenovateBotPublic = "public-renovate-gha[bot]" + // PostReleaseBot is the name of the bot user that creates post-release PRs + // such as AMI and docs version updates. + PostReleaseBot = "teleport-post-release-automation[bot]" ) func isAllowedRobot(author string) bool { - return author == Dependabot || author == DependabotBatcher || author == RenovateBotPrivate || author == RenovateBotPublic + switch author { + case Dependabot, DependabotBatcher, RenovateBotPrivate, RenovateBotPublic, PostReleaseBot: + return true + } + return false } // Reviewer is a code reviewer. diff --git a/bot/internal/review/review_test.go b/bot/internal/review/review_test.go index 475f262a..00f79f16 100644 --- a/bot/internal/review/review_test.go +++ b/bot/internal/review/review_test.go @@ -149,6 +149,14 @@ func TestIsInternal(t *testing.T) { author: RenovateBotPrivate, expect: true, }, + { + desc: "post-release bot is internal", + assignments: &Assignments{ + c: &Config{}, + }, + author: PostReleaseBot, + expect: true, + }, } for _, test := range tests { t.Run(test.desc, func(t *testing.T) {