Skip to content

chore(deps): bump next from 16.1.0 to 16.2.3 in /examples/with-ffmpeg #1

chore(deps): bump next from 16.1.0 to 16.2.3 in /examples/with-ffmpeg

chore(deps): bump next from 16.1.0 to 16.2.3 in /examples/with-ffmpeg #1

Workflow file for this run

name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
concurrency:
group: claude-code-${{ github.event.issue.number || github.event.pull_request.number }}
cancel-in-progress: true
jobs:
check-permissions:
# Only run if @claude is mentioned (bot filtering handled by claude-code-action)
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 == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 2
permissions:
contents: read
outputs:
can-run: ${{ steps.check.outputs.result }}
steps:
- name: Check user has write access
id: check
uses: actions/github-script@v8
with:
script: |
try {
const { data } = await github.rest.repos.getCollaboratorPermissionLevel({
owner: context.repo.owner,
repo: context.repo.repo,
username: context.actor
});
const hasWrite = ['admin', 'write', 'maintain'].includes(data.permission);
if (!hasWrite) {
core.notice(`Skipped: @claude can only be used by repository collaborators with write access. User ${context.actor} has ${data.permission} access.`);
}
return hasWrite;
} catch (error) {
core.setFailed(`Failed to verify permissions for ${context.actor}: ${error.message}`);
throw error;
}
claude:
needs: check-permissions
if: needs.check-permissions.outputs.can-run == 'true'
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 60
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# This is an optional setting that allows Claude to read CI results on PRs
additional_permissions: |
actions: read
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
# prompt: 'Update the pull request description to include a summary of changes.'
# Optional: Add claude_args to customize behavior and configuration
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
# claude_args: '--allowed-tools Bash(gh pr:*)'