Skip to content

Commit 9805c05

Browse files
authored
[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.
1 parent 0bf165e commit 9805c05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/utils/git/github-automation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,10 @@ def create_pull_request(self, owner: str, repo_name: str, branch: str) -> bool:
577577

578578
pull.as_issue().edit(milestone=self.issue.milestone)
579579

580+
# Once the pull request has been created, we can close the
581+
# issue that was used to request the cherry-pick
582+
self.issue.edit(state="closed", state_reason="completed")
583+
580584
try:
581585
self.pr_request_review(pull)
582586
except Exception as e:

0 commit comments

Comments
 (0)