Skip to content

Commit

Permalink
Only merge approved PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Release Manager committed Feb 19, 2023
1 parent 4786131 commit a246c86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git_sage/cmdline/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@ def merge_cmd(self, pr_numbers: List[int], limit: int) -> None:
self.sage.merge_pr(spr.pr)
if not pr_numbers:
for spr in self.github.pull_requests(limit):
if not spr.is_positive_review:
continue
print(f'Merging {spr.pr}')
self.sage.merge_pr(spr.pr)

0 comments on commit a246c86

Please sign in to comment.