before and after commit SHAs. Holocron compares those states, reviews pages whose referenced sources changed, and opens one pull request when it finds updates.1234567891011121314151617181920212223name: Maintain documentation on: push: branches: [main] permissions: contents: write pull-requests: write id-token: write jobs: maintain: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false - run: npx -y "@holocron.so/cli" maintain --pull-request env: GITHUB_TOKEN: ${{ github.token }}
fetch-depth: 0 so Git can inspect every source change in a multi-commit push.123456789101112131415161718192021222324name: Maintain pull request documentation on: pull_request: types: [opened, synchronize, reopened] permissions: contents: write pull-requests: write id-token: write jobs: maintain: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 persist-credentials: false - run: npx -y "@holocron.so/cli" maintain --pull-request env: GITHUB_TOKEN: ${{ github.token }}
12345678910111213141516171819202122232425262728name: Weekly documentation review on: schedule: - cron: "0 9 * * 1" workflow_dispatch: permissions: contents: write pull-requests: write id-token: write jobs: maintain: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false - run: | npx -y "@holocron.so/cli" maintain \ --all \ --prompt-file .holocron/prompts/weekly-review.md \ --pull-request env: GITHUB_TOKEN: ${{ github.token }}
cancel-in-progress: true for push maintenance. A later push compares only its own before and after states, so cancelling the preceding run can leave its source changes unreviewed.