[llvm] workflows: Add some automation for commit access requests (PR #123113)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 17:23:38 PST 2025


================
@@ -241,6 +250,58 @@ def run(self) -> bool:
         return True
 
 
+class CommitRequestGreeter:
+    def __init__(self, token: str, repo: str, issue_number: int):
+        self.repo = github.Github(token).get_repo(repo)
+        self.issue = self.repo.get_issue(issue_number)
+
+    def run(self) -> bool:
+        # Post greeter comment:
+        comment = f"""
+            @{self.issue.user.login} thank you for apply for commit access.  Please  review the project's [code review policy](https://llvm.org/docs/CodeReview.html).
+        """
+        self.issue.create_comment(textwrap.dedent(comment))
----------------
tstellar wrote:

Ok, I think I this is fixed now.

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


More information about the llvm-commits mailing list