Skip to content

Commit

Permalink
Respect admin merge flag (#27)
Browse files Browse the repository at this point in the history
---
fel-pr: 27
fel-branch: fel/zabot/27
  • Loading branch information
Zabot committed Jun 3, 2021
1 parent 99cfdb0 commit d9638f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fel/land.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def land(repo, commit, gh_repo, upstream, branch_prefix, admin_merge=False, wait
if wait and wait_for_merge:
mergeable, status = wait_for_checks(gh_repo, pr, upstream.name)

if not mergeable:
if not mergeable and not admin_merge:
logging.error("Merge is blocked, run with --admin to force merge: %s", status)
raise SystemExit()

Expand Down

0 comments on commit d9638f5

Please sign in to comment.