Skip to content

feat: wire claude-code-action for issue-driven PR drafting#494

Merged
kronosapiens merged 2 commits intomainfrom
kronosapiens/claude-code-action
Apr 21, 2026
Merged

feat: wire claude-code-action for issue-driven PR drafting#494
kronosapiens merged 2 commits intomainfrom
kronosapiens/claude-code-action

Conversation

@kronosapiens
Copy link
Copy Markdown
Collaborator

@kronosapiens kronosapiens commented Apr 21, 2026

Summary

Two related changes bundled into one PR:

  1. 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 (claude label, @claude mention, 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 the claude label to defrag-generated issues like defrag: cross-page analysis findings #489 to get a starter PR.

  2. Add a minimal build gate (.github/workflows/build.yaml): runs pnpm install --frozen-lockfile && pnpm run build on every PR and every push to main. The defrag workflow already builds inside its own context, but regular contributor PRs had no gate.

  3. 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 old ci.yaml is restored more cleanly by (2).

Before (1) works

  1. Install the Claude GitHub App on dojoengine/book (via /install-github-app or the manual app install flow).
  2. Confirm ANTHROPIC_API_KEY is set as a repo secret — already present from the defrag workflow.

Test plan

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.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
book Ready Ready Preview Apr 21, 2026 4:38pm

Request Review

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).
@kronosapiens kronosapiens merged commit 3db9380 into main Apr 21, 2026
2 checks passed
@kronosapiens kronosapiens deleted the kronosapiens/claude-code-action branch April 21, 2026 16:46
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