Skip to content

ci: add Claude workflow to solve assigned issues and open PRs#92

Open
cosminacho wants to merge 1 commit into
mainfrom
ci/claude-issue-solver
Open

ci: add Claude workflow to solve assigned issues and open PRs#92
cosminacho wants to merge 1 commit into
mainfrom
ci/claude-issue-solver

Conversation

@cosminacho

Copy link
Copy Markdown
Collaborator

What changed

Adds .github/workflows/claude.yml, a GitHub Actions workflow built on Anthropic's official claude-code-action@v1.

Behavior

  • Assign an issue to the Claude account → Claude reads the issue (and linked code), implements a fix on a new branch following the repo conventions in .claude/CLAUDE.md, and opens a PR that closes the issue.
  • Mention @claude in an issue comment, PR comment, or PR review → Claude responds / makes the requested change on that thread.

The prompt input is tailored to this monorepo, so the agent applies the versioning rules (version bumps + dependency pin + CHANGELOG entries) and runs the full pre-commit checklist (ruff check && ruff format && pyright && pytest) before opening a PR.

Note: issue #90 (the reference-token bug) is exactly the kind of issue this workflow handles end-to-end.

Required setup (repo admin, one-time)

  1. Install the Claude GitHub App on this repo so there's an assignable bot account — or set assignee_trigger in the workflow to an existing machine-user login.
  2. Add a repository secret ANTHROPIC_API_KEY (Settings → Secrets and variables → Actions). To use a Claude subscription instead, swap it for CLAUDE_CODE_OAUTH_TOKEN (commented alternative is in the file).

Until the secret is added the job is a no-op — it only runs on assignment-to-claude or @claude mentions.

Affected packages

None — CI/workflow only. No source changes, so no version bump (per the repo's versioning rules, which key off src/ and packages/).

Notes / things to confirm

  • assignee_trigger is set to "claude". Adjust it to match whatever login the Claude App / machine user actually uses in this org.
  • claude_args: --max-turns 40 is a starting point; tune per cost/complexity.

🤖 Generated with Claude Code

Add a GitHub Actions workflow using anthropics/claude-code-action@v1.

When an issue is assigned to the Claude account, Claude investigates,
implements a fix on a new branch following the repo conventions in
.claude/CLAUDE.md (versioning, pre-commit checklist), and opens a PR
that closes the issue. Also responds to @claude mentions in issue/PR
comments and reviews.

Requires a repo admin to install the Claude GitHub App and add an
ANTHROPIC_API_KEY secret (or CLAUDE_CODE_OAUTH_TOKEN); documented inline.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

3 participants