Skip to content

Add Claude Code GitHub Workflow#1

Merged
terisuke merged 2 commits intomainfrom
add-claude-github-actions-1764429616683
Nov 29, 2025
Merged

Add Claude Code GitHub Workflow#1
terisuke merged 2 commits intomainfrom
add-claude-github-actions-1764429616683

Conversation

@terisuke
Copy link
Copy Markdown
Owner

@terisuke terisuke commented Nov 29, 2025

🤖 Installing Claude Code GitHub App

This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.

What is Claude Code?

Claude Code is an AI coding agent that can help with:

  • Bug fixes and improvements
  • Documentation updates
  • Implementing new features
  • Code reviews and suggestions
  • Writing tests
  • And more!

How it works

Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.

Important Notes

  • This workflow won't take effect until this PR is merged
  • @claude mentions won't work until after the merge is complete
  • The workflow runs automatically whenever Claude is mentioned in PR or issue comments
  • Claude gets access to the entire PR or issue context including files, diffs, and previous comments

Security

  • Our Anthropic API key is securely stored as a GitHub Actions secret
  • Only users with write access to the repository can trigger the workflow
  • All Claude runs are stored in the GitHub Actions run history
  • Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits.
  • We can add more allowed tools by adding them to the workflow file like:
allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)

There's more information in the Claude Code action repo.

After merging this PR, let's try mentioning @claude in a comment on any PR to get started!

Summary by CodeRabbit

  • Chores
    • 自動コードレビュープロセスを導入しました。プルリクエスト作成時に、コード品質、パフォーマンス、セキュリティが自動的に評価されます。
    • コメント経由でのコード分析機能を統合しました。

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Nov 29, 2025

Caution

Review failed

The pull request is closed.

概要

GitHub Actionsワークフロー2つが新規追加されます。1つはプルリクエストの自動コード審査を実行し、もう1つはコメントやissueで@claudeが言及された場合にClaudeコード解析を実行します。両ワークフローは認証トークンを使用してClaudeアクションを実行するよう構成されています。

変更内容

コホート / ファイル(群) 変更の概要
GitHub Actions ワークフロー構成
​.github/workflows/claude-code-review.yml, ​.github/workflows/claude.yml
2つの新規ワークフローファイルを追加。claude-code-review.ymlはプルリクエスト開封時に自動実行され、コード品質、バグ、パフォーマンス、セキュリティ、テストカバレッジを評価し、フィードバックをPRコメントとして投稿。claude.ymlはissueコメントやPRレビューコメントでClaudeへの言及に反応して実行し、リポジトリをチェックアウトしてClaudeコード解析アクションを実行

推定コードレビュー時間

🎯 2 (Simple) | ⏱️ ~10 分

  • 新規ワークフロー構成ファイルの検証(トークン、パーミッション、トリガーイベント)
  • Claude.md スタイルガイドの参照設定と git コマンド許可設定の確認
  • オプション設定(パスフィルター、作成者フィルター)の有効性確認

🐰 ✨ Claude の目が光り輝く
コードのチェック、自動で行く
バグを見つけ、品質を高め
フィードバック、優しく囁く
ワークフロー完成、ウサギ も喜ぶ! 🚀

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-claude-github-actions-1764429616683

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a8581af and eabcfb4.

📒 Files selected for processing (2)
  • .github/workflows/claude-code-review.yml (1 hunks)
  • .github/workflows/claude.yml (1 hunks)

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@terisuke terisuke merged commit 4e6ea41 into main Nov 29, 2025
2 of 3 checks passed
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