diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py index 04698cacbff92..e2b84aeca3ad7 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: