A proportion of our workflow failures are related to PR creation where there's been intervening updates, causing merge conflicts.
When there are no merge conflicts we just proceed and merge (which seems fine), but if there are merge conflicts we fail:
:twisted_rightwards_arrows: Patch Apply Failed: The patch could not be applied to the current state of the repository. This is typically caused by a merge conflict between the agent's changes and recent commits on the target branch.
Failed Operations:
create_pull_request: Failed to apply patch
I'm guessing the problem is we're trying to create a PR against the head commit of the target branch - applying the patch direct to head branch - when we should be creating one against an earlier commit and accept the merge conflicts will show as soon as the PR is created.
A proportion of our workflow failures are related to PR creation where there's been intervening updates, causing merge conflicts.
When there are no merge conflicts we just proceed and merge (which seems fine), but if there are merge conflicts we fail:
I'm guessing the problem is we're trying to create a PR against the head commit of the target branch - applying the patch direct to head branch - when we should be creating one against an earlier commit and accept the merge conflicts will show as soon as the PR is created.