Skip to content

Commit

Permalink
Revert "Check that PR base is default branch in trymerge.py"
Browse files Browse the repository at this point in the history
This reverts commit dc38326.

Reverted pytorch#73715 on behalf of https://github.com/malfet
  • Loading branch information
pytorchmergebot committed Mar 9, 2022
1 parent 69cdcd2 commit 63a1e7b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/scripts/trymerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,6 @@ def merge_ghstack_into(self, repo: GitRepo) -> None:
repo.amend_commit_message(msg)

def merge_into(self, repo: GitRepo, dry_run: bool = False) -> None:
if self.base_ref() != self.default_branch():
raise RuntimeError("Not a pull request into default branch.")
# Raises exception if matching rule is not found
find_matching_merge_rule(self, repo)
if repo.current_branch() != self.default_branch():
Expand Down

0 comments on commit 63a1e7b

Please sign in to comment.