Commit Graph

3 Commits

Author SHA1 Message Date
Otto
aab33c4e14 fix: make overlap check informational only (always green)
- Add continue-on-error: true to workflow
- Remove sys.exit(1) on conflicts
- Check is meant to inform contributors, not block merging
2026-02-13 13:07:45 +00:00
Otto
db77f6ef77 refactor: reorganize script functions top-down
- main() and high-level workflow functions at the top
- Comment formatting functions
- Overlap analysis functions
- Merge conflict testing functions
- Diff parsing functions
- GitHub API functions
- Utility functions
- Data classes and constants at the bottom

This makes the code read top-to-bottom, from high-level logic to implementation details.
2026-02-13 13:05:23 +00:00
Otto
6647c6615b ci: add PR overlap detection workflow
Automatically detects potential merge conflicts between open PRs:

- Triggered on PR open/push to dev or master
- Compares changed files and line ranges across open PRs
- Tests actual merge conflicts by attempting merges
- Posts a comment on the PR with:
  - 🔴 Confirmed merge conflicts (with file paths and conflict sizes)
  - 🟠 High risk overlaps (>20 lines overlap)
  - 🟡 Medium risk overlaps
  - 🟢 Low risk (file overlap only)
- Shows conflict types (content, added, deleted, etc.)
- Includes last-updated timestamps for each PR

This helps contributors coordinate and resolve conflicts proactively.
2026-02-13 12:51:18 +00:00