From fd15616d0ae49a304fdfc79cc3bf81cfd4836af3 Mon Sep 17 00:00:00 2001 From: Eduardo Garcia Date: Wed, 7 Oct 2026 21:07:12 -0300 Subject: [PATCH] ci: add the mention workflow --- .github/workflows/claude.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/claude.yml diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml new file mode 100644 index 0000000..bfe082f --- /dev/null +++ b/.github/workflows/claude.yml @@ -0,0 +1,31 @@ +name: Claude Code +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] +jobs: + claude: + if: contains(github.event.comment.body, '@claude') + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: write + pull-requests: write + issues: write + id-token: write + actions: read + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 1 + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ secrets.VANDAME_APP_ID }} + private-key: ${{ secrets.VANDAME_APP_PRIVATE_KEY }} + - uses: anthropics/claude-code-action@v1 + with: + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + github_token: ${{ steps.app-token.outputs.token }} + claude_args: "--max-turns 10"