Skip to content

feat: add Claude Code GitHub workflow#47

Merged
ovitrif merged 2 commits intomainfrom
add-claude-github-actions-1771254764785
Feb 17, 2026
Merged

feat: add Claude Code GitHub workflow#47
ovitrif merged 2 commits intomainfrom
add-claude-github-actions-1771254764785

Conversation

@ovitrif
Copy link
Collaborator

@ovitrif ovitrif commented Feb 16, 2026

Summary

Add two GitHub Actions workflows for Claude Code integration, hardened with security gates and production-ready settings adapted from bitkit-android.

claude.yml — PR Assistant

  • Triggered by @claude mentions in issues, PR comments, and reviews
  • Security: gated to OWNER / MEMBER / COLLABORATOR via author_association
  • Permissions: contents: write, pull-requests: write, issues: write (needed for Claude to push commits and respond)
  • fetch-depth: 0 for full git history access
  • use_api_for_commits: true for better audit trail
  • Removed template boilerplate comments for a clean, production-ready file

claude-code-review.yml — Automated Code Review

  • Triggered on PR open/sync/reopen/ready-for-review events
  • Concurrency group per PR to cancel stale review runs
  • Minimize old Claude comments step marks previous bot comments as OUTDATED via GraphQL
  • allowed_bots: 'claude[bot]' so Claude-pushed commits trigger review
  • claude_args: '--allowed-tools Bash(gh:*) WebFetch' restricts tool access
  • pull-requests: write, issues: write for posting review comments
  • Removed template boilerplate (path filters, PR author filters, docs links)

Authentication

  • CLAUDE_CODE_OAUTH_TOKEN configured via Claude GitHub App (/install-github-app)

🤖 Generated with Claude Code

Add two GitHub Actions workflows for Claude Code integration:

- claude.yml: PR assistant triggered by @claude mentions, gated to
  OWNER/MEMBER/COLLABORATOR with write permissions and full git history
- claude-code-review.yml: Automated code review on PR events with
  concurrency control, old comment minimization, and restricted tools

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ovitrif ovitrif force-pushed the add-claude-github-actions-1771254764785 branch from cb72069 to 44df5bd Compare February 16, 2026 16:17
@ovitrif ovitrif marked this pull request as ready for review February 16, 2026 16:28
@ovitrif ovitrif marked this pull request as draft February 16, 2026 16:33
- Update description to be agent-agnostic (Cursor/Claude Code/Codex/WARP)
- Add rules to maintain symlink pattern (CLAUDE.md, GEMINI.md, WARP.md)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ovitrif ovitrif marked this pull request as ready for review February 16, 2026 23:14
@ovitrif ovitrif merged commit d93a4bd into main Feb 17, 2026
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