mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[GHF] Bot should reopen PR after revert (#112614)
Fixes https://github.com/pytorch/test-infra/issues/4692 Test plan, see https://github.com/malfet/deleteme/pull/58#issuecomment-1789365259 / https://github.com/malfet/deleteme/actions/runs/6723011476 Pull Request resolved: https://github.com/pytorch/pytorch/pull/112614 Approved by: https://github.com/seemethere, https://github.com/ezyang ghstack dependencies: #112613
This commit is contained in:
committed by
PyTorch MergeBot
parent
4a2242e479
commit
54c7d0d99d
2
.github/scripts/trymerge.py
vendored
2
.github/scripts/trymerge.py
vendored
@ -30,6 +30,7 @@ from github_utils import (
|
||||
gh_fetch_url,
|
||||
gh_post_commit_comment,
|
||||
gh_post_pr_comment,
|
||||
gh_update_pr_state,
|
||||
GitHubComment,
|
||||
)
|
||||
|
||||
@ -1803,6 +1804,7 @@ def try_revert(
|
||||
if not dry_run:
|
||||
pr.add_numbered_label("reverted")
|
||||
gh_post_commit_comment(pr.org, pr.project, commit_sha, revert_msg)
|
||||
gh_update_pr_state(pr.org, pr.project, pr.pr_num)
|
||||
|
||||
|
||||
def prefix_with_github_url(suffix_str: str) -> str:
|
||||
|
Reference in New Issue
Block a user