Skip to content

doc: add full node operator guide #916

doc: add full node operator guide

doc: add full node operator guide #916

Workflow file for this run

name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
jobs:
interactive:
if: |
(github.event_name == 'issue_comment' &&
contains(github.event.comment.body, '@claude') &&
(github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association == 'OWNER')) ||
(github.event_name == 'pull_request_review_comment' &&
contains(github.event.comment.body, '@claude') &&
(github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association == 'OWNER')) ||
(github.event_name == 'pull_request_review' &&
contains(github.event.review.body, '@claude') &&
(github.event.review.author_association == 'MEMBER' ||
github.event.review.author_association == 'COLLABORATOR' ||
github.event.review.author_association == 'OWNER'))
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: ./.github/actions/claude-interactive
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
allowed_bots: "mega-putin"
pr-review:
concurrency:
group: claude-pr-review-${{ github.event.pull_request.number }}
cancel-in-progress: false
if: |
github.event_name == 'pull_request' &&
(github.event.action == 'opened' ||
github.event.action == 'synchronize' ||
github.event.action == 'ready_for_review' ||
github.event.action == 'reopened') &&
(github.event.pull_request.user.type != 'Bot' ||
github.event.pull_request.user.login == 'mega-putin[bot]')
runs-on: ubuntu-24.04
# 35 rather than 25: the pre-mortem track (on by default) adds two rounds of
# sub-agent work on top of the standard review.
timeout-minutes: 35
permissions:
contents: read
pull-requests: write
id-token: write
actions: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Detect claude workflow changes
id: workflow-change
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
if gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files \
--paginate \
--jq '.[] | select(.filename == ".github/workflows/claude.yml") | .filename' \
| grep -q .; then
echo "skip=true" >> "$GITHUB_OUTPUT"
echo "Skipping pr-review because this PR modifies .github/workflows/claude.yml."
else
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- uses: ./.github/actions/claude-pr-review
if: steps.workflow-change.outputs.skip != 'true'
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
allowed_bots: "mega-putin"