diff --git a/workflow-templates/claude-code-review.properties.json b/workflow-templates/claude-code-review.properties.json new file mode 100644 index 0000000..b50a931 --- /dev/null +++ b/workflow-templates/claude-code-review.properties.json @@ -0,0 +1,9 @@ +{ + "name": "Claude Code Review", + "description": "AI-powered code reviews for your pull requests using Claude", + "iconName": "octicon code-review", + "categories": [ + "code-review" + ], + "filePatterns": [] +} diff --git a/workflow-templates/claude-code-review.yml b/workflow-templates/claude-code-review.yml new file mode 100644 index 0000000..552a8a0 --- /dev/null +++ b/workflow-templates/claude-code-review.yml @@ -0,0 +1,41 @@ +## Getting Started +# +# Follow this guide to get the workflow: https://docs.github.com/en/actions/how-tos/write-workflows/use-workflow-templates +# +## Prerequisites +# +# The Claude GitHub App must be installed on your repository: https://github.com/apps/claude +# +## How does Claude Code Review work? +# +# Claude automatically reviews your pull requests when they are: +# - Opened +# - Updated (new commits pushed) +# - Marked as ready for review +# - Reopened +# +# Draft PRs and Renovate branches are skipped. +# +## Customizing the Review +# +# You can pass a custom `review_prompt` input to append additional instructions. +# +## Feedback? +# +# Let us know what you think in Slack: #team-butterfly +# +name: Claude Code Review + +on: + pull_request: + types: [opened, synchronize, ready_for_review, reopened] + +concurrency: + group: claude-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + claude-review: + uses: leanix/shared-github-workflows/.github/workflows/claude-code-review.yml@main + secrets: + INJECTED_SECRET_STORE_CREDENTIALS: ${{ secrets.INJECTED_SECRET_STORE_CREDENTIALS }} diff --git a/workflow-templates/claude.properties.json b/workflow-templates/claude.properties.json new file mode 100644 index 0000000..eab3ab5 --- /dev/null +++ b/workflow-templates/claude.properties.json @@ -0,0 +1,9 @@ +{ + "name": "Claude Code", + "description": "AI assistant that responds to @claude mentions in issues and pull requests", + "iconName": "octicon dependabot", + "categories": [ + "automation" + ], + "filePatterns": [] +} diff --git a/workflow-templates/claude.yml b/workflow-templates/claude.yml new file mode 100644 index 0000000..5406b93 --- /dev/null +++ b/workflow-templates/claude.yml @@ -0,0 +1,39 @@ +## Getting Started +# +# Follow this guide to get the workflow: https://docs.github.com/en/actions/how-tos/write-workflows/use-workflow-templates +# +## Prerequisites +# +# The Claude GitHub App must be installed on your repository: https://github.com/apps/claude +# +## How to Use Claude? +# +# Mention @claude in: +# - Issue comments +# - PR comments +# - PR review comments +# - Issue titles or bodies +# +# Claude will respond to your request and can help with code changes, explanations, and more. +# +## Feedback? +# +# Let us know what you think in Slack: #team-butterfly +# +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: + uses: leanix/shared-github-workflows/.github/workflows/claude.yml@main + secrets: + INJECTED_SECRET_STORE_CREDENTIALS: ${{ secrets.INJECTED_SECRET_STORE_CREDENTIALS }}