Skip to content

Update blacklens integration #35

Update blacklens integration

Update blacklens integration #35

name: Claude Mention (PR)
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
jobs:
respond:
concurrency:
group: claude-mention-pr-${{ github.event.issue.number }}-${{ github.event.comment.id }}
runs-on: ubuntu-latest
if: |
contains(github.event.comment.body, '@claude') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) &&
contains(fromJSON('["strawgate","AlexanderWert","perk","graphaelli","cmacknz","axw","theletterf","jlind23","nimarezainia","pierrehilbert","bturquet"]'), github.actor) &&
((github.event_name == 'issue_comment' && github.event.issue.pull_request != null) ||
github.event_name == 'pull_request_review_comment')
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: .go-version
- name: Install elastic-package
run: |
go install github.com/elastic/elastic-package@latest
- name: Run Claude Mention Handler
uses: elastic/ai-github-actions/workflows/mention-in-pr/rwxp@v0
with:
claude-oauth-token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
additional-instructions: |
Environment setup:
- Go is configured (version from .go-version)
- elastic-package tool is installed and available