[llvm] workflows/commit-access-review: Exclude users who have recently requested access (PR #119102)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 7 16:28:39 PST 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 18af3fc1bf8855e1e166e64a9210ed07d610aa54...2d232348c18edbc83b9c8ac63670274e7e653d7e .github/workflows/commit-access-review.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- commit-access-review.py 2024-12-08 00:22:00.000000 +0000
+++ commit-access-review.py 2024-12-08 00:28:08.813330 +0000
@@ -89,11 +89,11 @@
}
}
"""
formatted_start_date = start_date.strftime("%Y-%m-%dT%H:%M:%S")
variables = {
- "query": f"type:issue created:>{formatted_start_date} org:llvm repo:llvm-project label:infra:commit-access,infra:commit-access-request"
+ "query": f"type:issue created:>{formatted_start_date} org:llvm repo:llvm-project label:infra:commit-access,infra:commit-access-request"
}
has_next_page = True
users = []
while has_next_page:
@@ -101,12 +101,12 @@
query=query, variables=variables
)
data = res_data["data"]
for issue in data["search"]["nodes"]:
users.extend([user[1:] for user in re.findall("@[^ ,\n]+", issue["body"])])
- if issue['author']:
- users.append(issue['author']['login'])
+ if issue["author"]:
+ users.append(issue["author"]["login"])
has_next_page = data["search"]["pageInfo"]["hasNextPage"]
if has_next_page:
variables["after"] = data["search"]["pageInfo"]["endCursor"]
return users
``````````
</details>
https://github.com/llvm/llvm-project/pull/119102
More information about the llvm-commits
mailing list