diff --git a/.github/workflows/postil-review.yml b/.github/workflows/postil-review.yml index a449da8..43626db 100644 --- a/.github/workflows/postil-review.yml +++ b/.github/workflows/postil-review.yml @@ -8,14 +8,26 @@ jobs: review: name: Postil Review runs-on: ubuntu-latest + # This fixture has no LLM key configured by default: skip quietly rather + # than fail every PR check red until a maintainer adds one, matching the + # gating pattern the main postil repo uses for its own deploy workflow. + if: ${{ vars.POSTIL_SANDBOX_ENABLED == 'true' }} permissions: contents: read pull-requests: write + checks: write steps: - name: Checkout uses: actions/checkout@v4 - name: Run postil reviewer - uses: postil-dev/postil@main + # postil-action requires a full 40-hex commit SHA of postil-dev/postil-cli + # (cli-ref), not a tag or branch; pin to postil-action's own main too so + # a fixture failure can't silently start exercising a different action + # version than intended. Bump both when postil-cli/postil-action cut a + # new release this fixture should track. + uses: postil-dev/postil-action@54c768dec78d43d8e79499213a01242457a0e401 # main with: - github_token: ${{ secrets.GITHUB_TOKEN }} + cli-ref: 87f4bf08b63712d3600030a7c458f0b790cfc0d5 # postil-cli v0.1.1 + cli-release: v0.1.1 + api-key: ${{ secrets.OPENROUTER_API_KEY }} diff --git a/README.md b/README.md index 825a2cb..d4a9c0b 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ This repository intentionally includes realistic but harmless bugs so that every ## CI -`.github/workflows/postil-review.yml` runs the postil action on every pull request. +`.github/workflows/postil-review.yml` runs [postil-action](https://github.com/postil-dev/postil-action) on every pull request. It only runs when the repo variable `POSTIL_SANDBOX_ENABLED` is set to `true`, and needs an `OPENROUTER_API_KEY` repo secret to actually call a model; without both, the workflow skips instead of failing every PR check.