Skip to content

Commit b4bcf73

Browse files
style: format the organization caller approval
1 parent 788425a commit b4bcf73

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

‎scripts/test_pr_review_workflow.py‎

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
MAX_WORKFLOW_BYTES = 65536
1414
# Upgrade trusted approvals in three stages: expand, migrate, then contract.
1515
# Both bootstrap and trusted validation must pass each stage before merging.
16-
APPROVED_REVIEWER_SHAS = ("3e8534e0dd621c62879238cc01d56f7e58e9d096", "4edcf46d02011c2aa1e305aff69d4d7100aae0ca")
16+
APPROVED_REVIEWER_SHAS = (
17+
"3e8534e0dd621c62879238cc01d56f7e58e9d096",
18+
"4edcf46d02011c2aa1e305aff69d4d7100aae0ca",
19+
)
1720
EXPECTED_CALLERS = (
1821
"""name: AI PR Review
1922
@@ -59,16 +62,20 @@
5962
"pipelab-org/pipelock/.github/workflows/pr-review-reusable.yaml@",
6063
)
6164
if "author_association == 'OWNER'" in _ORG_CALLER:
62-
_ORG_CALLER = _ORG_CALLER.replace(
63-
"github.actor == 'luckyPipewrench' &&",
64-
"github.actor == 'luckyPipewrench' &&\n"
65-
" github.actor_id == '142104046' &&\n"
66-
" github.run_attempt == '1' &&",
67-
).replace(
68-
"github.event.comment.user.login == 'luckyPipewrench' &&",
69-
"github.event.comment.user.login == 'luckyPipewrench' &&\n"
70-
" github.event.comment.user.id == 142104046 &&",
71-
).replace("author_association == 'OWNER'", "author_association == 'MEMBER'")
65+
_ORG_CALLER = (
66+
_ORG_CALLER.replace(
67+
"github.actor == 'luckyPipewrench' &&",
68+
"github.actor == 'luckyPipewrench' &&\n"
69+
" github.actor_id == '142104046' &&\n"
70+
" github.run_attempt == '1' &&",
71+
)
72+
.replace(
73+
"github.event.comment.user.login == 'luckyPipewrench' &&",
74+
"github.event.comment.user.login == 'luckyPipewrench' &&\n"
75+
" github.event.comment.user.id == 142104046 &&",
76+
)
77+
.replace("author_association == 'OWNER'", "author_association == 'MEMBER'")
78+
)
7279
EXPECTED_CALLERS += (_ORG_CALLER,)
7380
EXPECTED_CONTRACTS = (
7481
r"""name: Review caller contract

0 commit comments

Comments
 (0)