fix: add PR merge conflict check to dev agent workflow #233

Merged
shoko merged 2 commits from fix/issue-229-pr-conflict-check into main 2026-04-08 04:56:02 +02:00
Owner

Dev agent should check if PR has merge conflicts before asking for review. This prevents approving a PR that has conflicts.

Changes:

  • Add conflict check step in workflow for both with/without user message cases
  • Use mergeable field from PR API to detect conflicts
  • Instructions to rebase and resolve conflicts if mergeable: false
Dev agent should check if PR has merge conflicts before asking for review. This prevents approving a PR that has conflicts. Changes: - Add conflict check step in workflow for both with/without user message cases - Use mergeable field from PR API to detect conflicts - Instructions to rebase and resolve conflicts if mergeable: false
shoko added 1 commit 2026-04-08 04:16:35 +02:00
Dev agent should check if PR has merge conflicts before asking for review.
This prevents approving a PR that has conflicts, which could introduce
new errors after rebase.

Changes:
- Add conflict check step in workflow for both with/without user message cases
- Use mergeable field from PR API to detect conflicts
- Instructions to rebase and resolve conflicts if mergeable: false
First-time contributor

why do we have to write two exactly same lines on different lines? can't we unify the prompt to avoid code duplication? I think the only different is this about the user delegation, can't we somehow make it fillable if message is provided? and just skip it if there is no message? what do you think?

why do we have to write two exactly same lines on different lines? can't we unify the prompt to avoid code duplication? I think the only different is this about the user delegation, can't we somehow make it fillable if message is provided? and just skip it if there is no message? what do you think?
shoko force-pushed fix/issue-229-pr-conflict-check from 3a0983c28a to 663e44a82a 2026-04-08 04:28:09 +02:00 Compare
shoko added 1 commit 2026-04-08 04:35:38 +02:00
- Extract conflict_check and delegator_section as conditional variables
- Single heredoc instead of duplicate blocks
- Resolve code duplication raised in PR comment
han approved these changes 2026-04-08 04:55:12 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit efb1e34a7b into main 2026-04-08 04:56:02 +02:00
Sign in to join this conversation.