Skip to content

Add merge conflict detection for pull requests#12

Merged
irskep merged 1 commit intomainfrom
catch-conflicts
Jul 18, 2025
Merged

Add merge conflict detection for pull requests#12
irskep merged 1 commit intomainfrom
catch-conflicts

Conversation

@irskep
Copy link
Owner

@irskep irskep commented Jul 18, 2025

Fixes the UX issue where cimonitor doesn't report when PRs have merge conflicts vs the main branch, which prevents workflows from running.

The implementation uses GitHub's API to check the mergeable and mergeable_state fields to detect when PRs have conflicts or other blocking conditions, and displays clear messages explaining why workflows aren't running.

🤖 Generated with Claude Code

When a PR has merge conflicts, GitHub doesn't run workflows, but cimonitor previously didn't report this. Now cimonitor detects and reports merge conflicts using the GitHub API's mergeable state.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@irskep irskep merged commit a85d442 into main Jul 18, 2025
6 checks passed
@irskep irskep deleted the catch-conflicts branch July 18, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant