Skip to content

Commit

Permalink
Patch: Propose to rebase on failing to patch
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 11, 2024
1 parent 6c69eb7 commit 102e556
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion github_app_geo_project/module/standard/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ async def process(
if proc.returncode != 0:
message.title = f"Failed to apply the diff {artifact.name}"
_LOGGER.warning(message)
raise PatchException("Failed to apply the diff")
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 102e556

Please sign in to comment.