|
13 | 13 | MAX_WORKFLOW_BYTES = 65536 |
14 | 14 | # Upgrade trusted approvals in three stages: expand, migrate, then contract. |
15 | 15 | # 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 | +) |
17 | 20 | EXPECTED_CALLERS = ( |
18 | 21 | """name: AI PR Review |
19 | 22 |
|
|
59 | 62 | "pipelab-org/pipelock/.github/workflows/pr-review-reusable.yaml@", |
60 | 63 | ) |
61 | 64 | 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 | + ) |
72 | 79 | EXPECTED_CALLERS += (_ORG_CALLER,) |
73 | 80 | EXPECTED_CONTRACTS = ( |
74 | 81 | r"""name: Review caller contract |
|
0 commit comments