[GHF] Fix force merge handling

Pass `force` argument into `GitHub.merge_into`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/74886

Approved by: https://github.com/seemethere
This commit is contained in:
Nikita Shulga
2022-03-28 20:40:34 -07:00
committed by PyTorch MergeBot
parent 00f2962e06
commit ddf8ffa15b

View File

@ -691,7 +691,7 @@ def main() -> None:
return
try:
pr.merge_into(repo, dry_run=args.dry_run)
pr.merge_into(repo, dry_run=args.dry_run, force=args.force)
except Exception as e:
msg = f"Merge failed due to {e}"
run_url = os.getenv("GH_RUN_URL")