|
15 | 15 | ("actions", "actors", "exclude_actors", "lookback_period", "expected_path"),
|
16 | 16 | [
|
17 | 17 | # Basic single action
|
18 |
| - (["protected_branch.create"], None, None, None, "action:protected_branch.create"), |
| 18 | + ( |
| 19 | + ["protected_branch.create"], |
| 20 | + None, |
| 21 | + None, |
| 22 | + None, |
| 23 | + "action:protected_branch.create", |
| 24 | + ), |
19 | 25 | # Multiple actions
|
20 | 26 | (
|
21 | 27 | ["protected_branch.create", "repo.download_zip", "team.add_member"],
|
|
31 | 37 | # Single exclude actor
|
32 | 38 | (None, None, ["exclude-user"], None, "-actor:exclude-user"),
|
33 | 39 | # Multiple exclude actors
|
34 |
| - (None, None, ["exclude-user1", "exclude-user2"], None, "-actor:exclude-user1 -actor:exclude-user2"), |
| 40 | + ( |
| 41 | + None, |
| 42 | + None, |
| 43 | + ["exclude-user1", "exclude-user2"], |
| 44 | + None, |
| 45 | + "-actor:exclude-user1 -actor:exclude-user2", |
| 46 | + ), |
35 | 47 | # Actions + actors
|
36 |
| - (["org.create", "repo.destroy"], ["octocat"], None, None, "action:org.create action:repo.destroy actor:octocat"), |
| 48 | + ( |
| 49 | + ["org.create", "repo.destroy"], |
| 50 | + ["octocat"], |
| 51 | + None, |
| 52 | + None, |
| 53 | + "action:org.create action:repo.destroy actor:octocat", |
| 54 | + ), |
37 | 55 | # Actions + exclude_actors
|
38 |
| - (["team.add_member"], None, ["bot-user"], None, "action:team.add_member -actor:bot-user"), |
| 56 | + ( |
| 57 | + ["team.add_member"], |
| 58 | + None, |
| 59 | + ["bot-user"], |
| 60 | + None, |
| 61 | + "action:team.add_member -actor:bot-user", |
| 62 | + ), |
39 | 63 | # Actors + exclude_actors
|
40 |
| - (None, ["octocat", "monalisa"], ["bot-user"], None, "actor:octocat actor:monalisa -actor:bot-user"), |
| 64 | + ( |
| 65 | + None, |
| 66 | + ["octocat", "monalisa"], |
| 67 | + ["bot-user"], |
| 68 | + None, |
| 69 | + "actor:octocat actor:monalisa -actor:bot-user", |
| 70 | + ), |
41 | 71 | # All parameters combined
|
42 | 72 | (
|
43 | 73 | ["protected_branch.create", "repo.download_zip"],
|
|
0 commit comments