mirror of
https://github.com/anthropics/claude-code.git
synced 2026-02-19 04:27:33 -08:00
Compare commits
4 Commits
boris/uiyw
...
add-claude
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d0c29fe1a | ||
|
|
51fecc9881 | ||
|
|
8fdc766a16 | ||
|
|
26e9a5d6d3 |
37
.github/workflows/claude.yml
vendored
Normal file
37
.github/workflows/claude.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Claude Code
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
pull_request_review_comment:
|
||||
types: [created]
|
||||
issues:
|
||||
types: [opened, assigned]
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
|
||||
jobs:
|
||||
claude:
|
||||
if: |
|
||||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
||||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
issues: read
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run Claude Code
|
||||
id: claude
|
||||
uses: anthropics/claude-code-action@beta
|
||||
with:
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
|
||||
@@ -13,7 +13,7 @@ Some of its key capabilities include:
|
||||
- Execute and fix tests, lint, and other commands
|
||||
- Search through git history, resolve merge conflicts, and create commits and PRs
|
||||
|
||||
**Learn more in the [official documentation](https://docs.anthropic.com/en/docs/agents/claude-code/introduction)**.
|
||||
**Learn more in the [official documentation](https://docs.anthropic.com/en/docs/claude-code/overview)**.
|
||||
|
||||
## Get started
|
||||
|
||||
@@ -29,9 +29,9 @@ Some of its key capabilities include:
|
||||
npm install -g @anthropic-ai/claude-code
|
||||
```
|
||||
|
||||
3. Navigate to your project directory and run <code>claude</code>.
|
||||
3. Navigate to your project directory and run `claude`.
|
||||
|
||||
4. Complete the one-time OAuth process with your Anthropic Console account.
|
||||
4. Complete the one-time OAuth process with your Claude Max or Anthropic Console account.
|
||||
|
||||
### Reporting Bugs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user