[llvm] workflows/commit-access-review: Use get_collaborators() function (PR #108313)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 17:49:45 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 33c1325a73c4bf6bacdb865c2550038afe4377d2...579ca1fc3d1b12575674072bc9a44b7d460e4243 .github/workflows/commit-access-review.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- commit-access-review.py 2024-09-12 00:22:32.000000 +0000
+++ commit-access-review.py 2024-09-12 00:49:20.259772 +0000
@@ -358,11 +358,11 @@
gh = github.Github(login_or_token=token)
org = gh.get_organization("llvm")
repo = org.get_repo("llvm-project")
one_year_ago = datetime.datetime.now() - datetime.timedelta(days=365)
triage_list = {}
- for collaborator in repo.get_collaborators(permission='push'):
+ for collaborator in repo.get_collaborators(permission="push"):
triage_list[collaborator.login] = User(collaborator.login, triage_list)
print("Start:", len(triage_list), "triagers")
# Step 0 Check if users have requested commit access in the last year.
for user in check_manual_requests(one_year_ago, token):
``````````
</details>
https://github.com/llvm/llvm-project/pull/108313
More information about the llvm-commits
mailing list