Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't attempt to create redundant PR to start tracking obsolete … #755

Merged
merged 1 commit into from
Sep 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion autosynth/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ def synthesize_loop(
if not has_changes:
if not toolbox.metadata_contains_generated_files(
toolbox.branch
) and toolbox.metadata_contains_generated_files(toolbox.sub_branch(youngest)):
) and toolbox.metadata_contains_generated_files(
toolbox.sub_branch(youngest)
) and not change_pusher.check_if_pr_already_exists(toolbox.branch):
# Special case: the repo owner turned on obsolete file tracking.
# Generate a one-time PR containing only metadata changes.
executor.check_call(["git", "checkout", toolbox.branch])
Expand Down