Pre-merge checks
Pre-merge checks are rules your team writes in plain words. PullOwl checks every pull request against them on each push.
Add checks
In the dashboard, open a repository and fill in Pre-merge checks, one per line:
Changelog updated | If code under src/ changed, CHANGELOG.md must change too | required
No debug logging | No console.log or print() left in changed code
Or in .pullowl.yaml:
checks:
- name: Changelog updated
mode: error # error = required; warning is the default
instructions: "If code under src/ changed, CHANGELOG.md must change too."
- name: No debug logging
instructions: "No console.log or print() left in changed code."
Up to 10 checks per repository; each rule can be up to 1,000 characters.
Results
Each check comes back as Pass, Fail (with the evidence), or Unknown when the pull request doesn't show enough to decide. A check that doesn't apply to a pull request passes. Results appear in the summary comment and in a separate status check called PullOwl Checks:
| Outcome | PullOwl Checks status |
|---|---|
A required (mode: error) check failed | Failure |
| Only warnings failed, or a check was unknown | Neutral |
| Everything passed | Success |
Block merging
In GitHub, go to the repository's Settings → Branches (or Rules), edit the rule for your main branch, turn on Require status checks to pass and add PullOwl Checks. Pull requests that fail a required check can then not be merged until they're fixed.