Skip to content

Add Claude Code GitHub Workflow #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025

Conversation

TechNickAI
Copy link
Owner

@TechNickAI TechNickAI commented May 28, 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 documentation.

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


Important

Adds a GitHub Actions workflow to integrate Claude Code, triggered by '@claude' mentions in comments and issues.

  • Workflow Addition:
    • Adds claude.yml to .github/workflows/ to integrate Claude Code via GitHub Actions.
    • Triggers on issue_comment, pull_request_review_comment, issues, and pull_request_review when '@claude' is mentioned.
  • Security:
    • Uses ANTHROPIC_API_KEY stored as a GitHub Actions secret.
    • Only users with write access can trigger the workflow.
    • Claude's actions are logged in GitHub Actions run history.
  • Permissions:
    • Grants read permissions for contents, pull-requests, and issues.
    • Grants write permission for id-token.

This description was created by Ellipsis for da091ad. You can customize this summary. It will automatically update as commits are pushed.

@TechNickAI TechNickAI merged commit 9330ec2 into main May 28, 2025
2 of 4 checks passed
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to da091ad in 48 seconds. Click for details.
  • Reviewed 43 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .github/workflows/claude.yml:15
  • Draft comment:
    Consider adding inline comments to clarify the complex 'if' condition (lines 15-19) for easier future maintenance.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. .github/workflows/claude.yml:30
  • Draft comment:
    If full repository context is needed for analysis, consider setting fetch-depth to 0 instead of 1.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. .github/workflows/claude.yml:25
  • Draft comment:
    Review if the 'id-token: write' permission is necessary, and restrict permissions further if possible.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
4. .github/workflows/claude.yml:34
  • Draft comment:
    Consider pinning to a stable release of 'claude-code-action' instead of using the beta version if stability is a concern.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_b8PtaWJ9eTNmUYFN

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

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