Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/postil-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.