[llvm] 9805c05 - [workflows] Close issues used for backports once the PR has been created (#80394)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 10:59:18 PST 2024


Author: Tom Stellard
Date: 2024-02-05T10:59:14-08:00
New Revision: 9805c051f7d3a09a629c51461b49f8070c01de62

URL: https://github.com/llvm/llvm-project/commit/9805c051f7d3a09a629c51461b49f8070c01de62
DIFF: https://github.com/llvm/llvm-project/commit/9805c051f7d3a09a629c51461b49f8070c01de62.diff

LOG: [workflows] Close issues used for backports once the PR has been created (#80394)

This will allow us to track the state of the backport request in the PR,
rather than in the issue. The state updates for PRs can be automated, so
this will save us some triage work.

Added: 
    

Modified: 
    llvm/utils/git/github-automation.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py
index 04698cacbff929..e2b84aeca3ad7a 100755
--- a/llvm/utils/git/github-automation.py
+++ b/llvm/utils/git/github-automation.py
@@ -577,6 +577,10 @@ def create_pull_request(self, owner: str, repo_name: str, branch: str) -> bool:
 
             pull.as_issue().edit(milestone=self.issue.milestone)
 
+            # Once the pull request has been created, we can close the
+            # issue that was used to request the cherry-pick
+            self.issue.edit(state="closed", state_reason="completed")
+
             try:
                 self.pr_request_review(pull)
             except Exception as e:


        


More information about the llvm-commits mailing list