Skip to content

ci: restore the Claude Code workflow, lost in the v2 tree swap - #1851

Open
cliffhall wants to merge 1 commit into
mainfrom
ci/restore-claude-workflow
Open

ci: restore the Claude Code workflow, lost in the v2 tree swap#1851
cliffhall wants to merge 1 commit into
mainfrom
ci/restore-claude-workflow

Conversation

@cliffhall

Copy link
Copy Markdown
Member

Closes #1850.

Same regression class as #1843 (SECURITY.md): the v2 tree swap replaced the default branch's tree, and .github/workflows/claude.yml did not exist in the v2 tree, so it was silently dropped from main.

Impact

issue_comment / pull_request_review_comment / issues events always run workflows from the default branch, so losing this on main disabled @claude repo-wide — including on PRs targeting v2/main.

Found the hard way: two @claude review comments on #1847 (19:08 and 19:10 UTC) produced no bot reply and no workflow run.

Evidence

Check Result
actions/workflows/173749385 state deleted
Last 3 runs (issue_comment, latest 03:10 UTC today) all skipped
.github/workflows/ on main only main.yml
ac3c1a12 (last commit carrying the file) not an ancestor of current main

The change

Restored byte-for-byte from ac3c1a12sha256 1c44f2d9d51c936adb40c9acefd4b44628fe7810360e2f8196034347f9d2602d, 3592 bytes, verified against the version fetched from the API. No content changes: the @claude trigger remains gated to OWNER / MEMBER / COLLABORATOR author associations, which is the behavior we want under the issues-only contribution model (#1820).

Verifying after merge

@claude cannot work until this is on main — a workflow on a topic branch is not consulted for issue_comment events. After merge, comment @claude review on any open PR; claude[bot] should reply within ~20s (it took 19s on #1825).

Note

SECURITY.md and this file are two instances of one pattern, and neither was caught by CI. A sweep for anything else the swap dropped from main is probably worth doing separately.

Same regression class as #1843 (SECURITY.md): the v2 tree swap replaced the
default branch's tree, and `.github/workflows/claude.yml` did not exist in the
v2 tree, so it was silently dropped from `main`.

Because `issue_comment` / `pull_request_review_comment` / `issues` events always
run workflows from the DEFAULT branch, losing it on `main` disabled `@claude`
repo-wide — including on PRs targeting `v2/main`. The workflow's API state reads
`deleted` and its last runs are all `skipped`.

Restored byte-for-byte (sha256 1c44f2d9…) from `ac3c1a12`, the last commit that
carried it, which is no longer an ancestor of `main`. No content changes: the
`@claude` trigger stays gated to OWNER / MEMBER / COLLABORATOR, which is what we
want under the issues-only contribution model (#1820).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UkhhCHryVp5H3dqEnhwZ7t
@cliffhall cliffhall added the v2 Issues and PRs for v2 label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Issues and PRs for v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude Code workflow (.github/workflows/claude.yml) lost in the v2 tree swap — @claude no longer triggers

1 participant