Skip to content

Card excludes slot children while accessing children #1679

Card excludes slot children while accessing children

Card excludes slot children while accessing children #1679

Workflow file for this run

name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]
jobs:
claude:
# Skip workflow if the comment does not tag claude or the author is not a
# maintainer. Having this check here ensures that this scenario does not
# even start a runner.
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association))
runs-on: ubuntu-latest
permissions:
# Required by actions/checkout
contents: read
# Required by anthropics/claude-code-action to generate a short-lived
# app token (contents/pull_requests/issues: write) that is revoked at the
# end of the run. Thus, there should be no need to grant additional write
# permissions to the workflow itself.
id-token: write
# Required by github_ci MCP server, which uses the workflow token instead
# of the short-lived app token
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 1
persist-credentials: false
- name: Setup JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install TestBench license
if: env.TB_LICENSE != ''
env:
TB_LICENSE: ${{ secrets.TB_LICENSE }}
run: |
mkdir -p ~/.vaadin
user="${TB_LICENSE%%/*}"
key="${TB_LICENSE#*/}"
echo "{\"username\":\"${user}\",\"proKey\":\"${key}\"}" > ~/.vaadin/proKey
- name: Run Claude Code
uses: vaadin/github-actions/claude-code@main
with:
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
reference-repos: |
vaadin/flow | the Vaadin Flow framework (Java). Consult it to understand base component classes, the `Element` API, and framework internals this repository builds on.
vaadin/web-components | the Vaadin web components (JavaScript/Lit). Consult it to understand the client-side properties, events, and DOM behavior of the components that the Flow components here wrap.
extra-allowed-tools: |
Bash(mvn:*)
Bash(npm install)
Bash(npm ci)
Bash(node scripts/wtr.js:*)
Bash(node scripts/computeModules.js:*)
Bash(scripts/checkstyle.sh:*)
Bash(./scripts/checkstyle.sh:*)
upload-execution-log: ${{ vars.CLAUDE_DEBUG }}