feat: wire claude-code-action for issue-driven PR drafting#494
Merged
kronosapiens merged 2 commits intomainfrom Apr 21, 2026
Merged
feat: wire claude-code-action for issue-driven PR drafting#494kronosapiens merged 2 commits intomainfrom
kronosapiens merged 2 commits intomainfrom
Conversation
Replaces the orphaned OpenHands setup with anthropics/claude-code-action, scoped to draft PRs in response to defrag-generated issues (e.g., the monthly "defrag: cross-page analysis findings" issues). - Add .github/workflows/claude.yaml: fires on issue labels, assignments, comments, and PR review activity. Uses the action's defaults (label `claude`, @claude mentions, assignee triggers). - Prompt scopes Claude to the repo's conventions (CLAUDE.md, spec/) and explicitly tells it to apply mechanical fixes (terminology, verified cross-refs, heading alignment) while flagging structural changes in the PR description for human curation — the draft is a jumping-off point, not an autonomous resolution. - Remove .github/actions/{ci,openhands,release}.yaml: these were in the wrong directory (GitHub only runs workflows from .github/workflows/) and never fired. OpenHands specifically is superseded by this integration.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Adds a minimal CI workflow that runs `pnpm install --frozen-lockfile` followed by `pnpm run build` on every PR to main and every push to main. The defrag workflow already runs the build inside its own context, but regular contributor PRs had no gate — regressions only surfaced after merge. This restores the build-check intent from the deleted ci.yaml without its dead weight (Node 18, npm, stale v3 actions).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two related changes bundled into one PR:
Wire
anthropics/claude-code-action@v1(.github/workflows/claude.yaml): triggers on issue labels/assignments, issue comments, and PR review activity. Uses the action's defaults (claudelabel,@claudemention, assignment). The prompt scopes Claude to the repo's conventions (CLAUDE.md,spec/) and tells it to apply mechanical fixes while flagging structural changes in the PR description for human review — the draft is a jumping-off point, not an autonomous resolution. Primary use case: apply theclaudelabel to defrag-generated issues like defrag: cross-page analysis findings #489 to get a starter PR.Add a minimal build gate (
.github/workflows/build.yaml): runspnpm install --frozen-lockfile && pnpm run buildon every PR and every push to main. The defrag workflow already builds inside its own context, but regular contributor PRs had no gate.Delete
.github/actions/{ci,openhands,release}.yaml: these sat in the wrong directory (GitHub only runs workflows from.github/workflows/) and never fired. OpenHands is explicitly superseded by (1); the build intent from the oldci.yamlis restored more cleanly by (2).Before (1) works
dojoengine/book(via/install-github-appor the manual app install flow).ANTHROPIC_API_KEYis set as a repo secret — already present from the defrag workflow.Test plan
Buildworkflow passes on this PRclaudeand confirm the Claude workflow runs and opens a draft PR