Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 206cd11

Browse files
feat: Allow PRs from sentry-autofix[bot] without seat (#1143)
1 parent 0aa256d commit 206cd11

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

services/decoration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
BOT_USER_EMAILS = [
2020
"dependabot[bot]@users.noreply.github.com",
2121
"29139614+renovate[bot]@users.noreply.github.com",
22+
"157164994+sentry-autofix[bot]@users.noreply.github.com",
2223
]
23-
BOT_USER_IDS = ["29139614"] # renovate[bot] github
24+
BOT_USER_IDS = ["29139614", "157164994"] # renovate[bot] github, sentry-autofix[bot]
2425
USER_BASIC_LIMIT_UPLOAD = 250
2526

2627

services/tests/test_decoration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,9 @@ def test_get_decoration_type_pr_author_manual_activation_required(
612612
[
613613
(True, "email", "dependabot[bot]@users.noreply.github.com"),
614614
(True, "email", "29139614+renovate[bot]@users.noreply.github.com"),
615+
(True, "email", "157164994+sentry-autofix[bot]@users.noreply.github.com"),
615616
(True, "service_id", "29139614"),
617+
(True, "service_id", "157164994"),
616618
(False, None, None),
617619
],
618620
)

tasks/new_user_activated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def run_impl(self, db_session, org_ownerid, user_ownerid, *args, **kwargs):
7070
)
7171

7272
return {
73-
"notifies_scheduled": bool(len(pulls_notified)),
73+
"notifies_scheduled": bool(pulls_notified),
7474
"pulls_notified": pulls_notified,
7575
"reason": None
76-
if len(pulls_notified)
76+
if pulls_notified
7777
else "no pulls/pull notifications met criteria",
7878
}
7979

0 commit comments

Comments
 (0)