Skip to content

Commit

Permalink
Patch: commit changes when the second patch fail
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 2, 2024
1 parent 1d2c456 commit cc3048c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions github_app_geo_project/module/standard/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ async def process(
if proc.returncode != 0:
message.title = f"Failed to apply the diff {artifact.name}"
_LOGGER.warning(message)
return module.ProcessOutput(
success=False,
output={
"summary": "Failed to apply the diff, you should probably rebase your branch"
},
)
if not should_push:
return module.ProcessOutput(
success=False,
output={
"summary": "Failed to apply the diff, you should probably rebase your branch"
},
)
message.title = f"Applied the diff {artifact.name}"
_LOGGER.info(message)

Expand Down

0 comments on commit cc3048c

Please sign in to comment.