Skip to content

Commit

Permalink
After build show the git diff only of you enable -a or -m
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardkaindl committed Oct 16, 2024
1 parent 2ce29be commit 0f0bc6b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build_pr_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,9 +1195,10 @@ def build_and_act_on_results(args, installed, specs_to_check):
if failed and args.approve:
return create_change_request(args, build_results)

ret = check_diff_and_commit(args)
if ret:
return ret
if args.approve or args.merge:
ret = check_diff_and_commit(args)
if ret:
return ret

if failed or not passed + installed:
print(build_results)
Expand Down

0 comments on commit 0f0bc6b

Please sign in to comment.