Skip to content

Commit

Permalink
fix: check for open PR before attemping single PR fallback with AUTOS…
Browse files Browse the repository at this point in the history
…YNTH_MULTIPLE_PRS (#562)

Fixes #545
  • Loading branch information
chingor13 authored May 15, 2020
1 parent 2aa4a1e commit 7136daa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autosynth/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ def synthesize_loop(
except Exception as e:
logger.error(e)
pass # Fall back to non-forked loop below.

if change_pusher.check_if_pr_already_exists(toolbox.branch):
return 0
synthesize_inner_loop(toolbox, synthesizer)
toolbox.push_changes(change_pusher)
return toolbox.commit_count
Expand Down

0 comments on commit 7136daa

Please sign in to comment.