Free Preflight Review in CI: Cut Paid Minutes with a Simple Gate
Short answer: a free preflight review step before your paid CI jobs can catch trivial failures—debug prints, missing tests, migration hazards—in seconds, so you spend metered container minutes only on changes that actually need them. This article gives you a runnable shell script, a GitHub Actions hook, and a triage table for adding that step without making a probabilistic model a merge blocker.…
A preflight review step before paid CI jobs can catch trivial failures like debug prints, missing tests, and migration hazards, allowing teams to spend metered container minutes only on necessary changes. This article provides a runnable shell script, a GitHub Actions hook, and a triage table for adding the preflight step without making it a merge blocker.
The free model access and free server option must be configured in the account settings. The script uses jq to build and parse JSON, and the GitHub Actions workflow uses standard syntax. The preflight reviewer returns a JSON object with risk level, reasons, and files to recheck. The risk field is used for automation, while reasons and files_to_recheck are for human review and targeted test selection.
A sample script is provided, which can be adapted to fit specific needs. The script does not execute model output and defaults to medium risk if the output is invalid. The script should be set as an informational GitHub Actions job, not a required status.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.