[llvm] [GitHub] Add workflow to check author's commit access on new PRs (PR #123593)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 03:51:20 PST 2025


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 a16adafd4799665718f54596054bbc816d151f92...61c0baac58fe128db7ee3b95dad190b977bee0bd llvm/utils/git/github-automation.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- github-automation.py	2025-01-20 11:38:10.000000 +0000
+++ github-automation.py	2025-01-20 11:50:50.301396 +0000
@@ -289,12 +289,11 @@
         self.pr.as_issue().create_comment(comment)
         return True
 
 
 class CheckCommitAccess:
-    def __init__(
-        self, token: str, repo: str, pr_number: int, author: str):
+    def __init__(self, token: str, repo: str, pr_number: int, author: str):
         self.repo = github.Github(token).get_repo(repo)
         self.pr = self.repo.get_issue(pr_number).as_pull_request()
         self.author = author
 
     def can_merge(self, user: str) -> bool:

``````````

</details>


https://github.com/llvm/llvm-project/pull/123593


More information about the llvm-commits mailing list