Skip to content

CI: flag PRs that conflict with main - #2238

Merged
peterdrier merged 3 commits into
mainfrom
claude/project-thread-96gmlx
Nov 2, 2026
Merged

peterdrier merged 3 commits into
mainfrom
claude/project-thread-96gmlx

Conversation

@peterdrier

Copy link
Copy Markdown
Owner

Requested by Peter · project thread

What

New workflow merge-conflict-label.yml. On every push to main it checks all open PRs (and on a PR's own pushes, just that PR). A conflicted PR gets a merge-conflict label, loses ready-to-merge, and gets one comment asking to merge main in. The label comes off once the PR merges cleanly. No re-comment while the label stays on.

Why

GitHub sends no event when a PR becomes conflicted, so watching sessions never notice. The comment wakes the session subscribed to the PR. No AI, no tokens.

Existing surface checked

Modelled on label-db.yml (same github-script pattern). No app code touched.

Checklist

  • Review tier stated: tier:lightweight (CI-only, one new workflow).
  • Migrations, NOT NULL, NuGet, nav, NodaTime, localization: n/a, no app code.
  • Targeting main on peterdrier/Humans, branched off origin/main.
  • YAML parses. Build/tests not run: workflow-only change.

Verify after merge: Actions → "Flag PRs with merge conflicts" → Run workflow labels any currently conflicted PR.


Generated by Claude Code

Re-checks every open PR on each push to main (and a PR's own pushes), adds a
merge-conflict label plus one comment so the session watching the PR wakes
and merges main in, drops ready-to-merge, and removes the label once clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0186neA427NKUHL8tCv9hvog
@peterdrier peterdrier self-assigned this Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Reviewed commit f19772a. 1 inline finding(s) posted.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

PR Surface Report

Compared 8cdcfb85...b772b992. Scored with reforge 0.32.0.

Summary: 1 changed file(s) | EF migrations: 0 added file(s), max 0/1 per context

Reforge Surface Score

metric base head delta
total 61548 61548 0
surface 14451 14451 0

Section Deltas

No section score changes.

Section Size & Complexity Deltas

No section size/complexity changes.

Rule Deltas

No rule score changes.

Published Write Surface

17 of 51 sections publish write capability, 51 interfaces (0).

Interface Surface

No new interfaces or interface members.

Diff Size

bucket added deleted
other 79 0

New Files

  • .github/workflows/merge-conflict-label.yml

@peterdrier

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T19:41:14.454128Z fad9e34 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fad9e3446b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Drop ready-to-merge on every conflicted run, comment before labelling so a
failed comment is retried, and treat a 404 label removal as done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0186neA427NKUHL8tCv9hvog
@peterdrier
peterdrier merged commit 1b3a819 into main Nov 2, 2026
6 checks passed
@peterdrier
peterdrier deleted the claude/project-thread-96gmlx branch November 2, 2026 09:17
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.

2 participants