The code does what the pull request says and nothing beyond it. No unrelated behavior rides along.
External contribution gate
Safe first.
Then merged.
gh-safe-merge accepts a pull request nobody on your side owns, typically an outside contribution. It checks that the change is safe and does what it says, then drives it through CI to a merge. It is not a code review.
before anything runs
CI to green
superficially
completion
told not to
Not a review
No nits. No gatekeeping.
Style, structure, naming, and taste are ignored. It never requests changes, never submits a review, and never leaves review-style comments. If the code is safe, works, and does what the pull request says, it is accepted. Acceptance is the default.
It finishes a pull request rather than rewriting it. The only changes it makes are superficial: resolving merge conflicts, formatting, auto-fixable linter passes, a changelog entry, and README or docs updates the change plainly requires. Anything more substantive goes back to the author.
Add a retry to the upload step
first-time contributor · checks passed
Unsafe until cleared
The safety check gates everything.
Running untrusted code is the risk itself, so nothing from the pull request is built, tested, installed, or run until the check passes. CI is never unblocked before it. The check reads the description, the full diff, and every commit for:
No new injection, exfiltration, privilege, or unsafe-default surface.
No hidden functionality, covert network calls, credential harvesting, obfuscated payloads, or unexplained binary blobs.
New dependencies are legitimate, spelled correctly, and pinned. Install scripts, build hooks, and CI workflow changes get extra scrutiny, above all anything that reads secrets or widens permissions.
No code or asset under an incompatible license, and no unattributed copied code presented as original.
The contribution is what it claims to be, not spam, vandalism, or nonsense dressed up as a change.
If the author pushes new commits mid-run, the check runs again on them before anything else happens.
Three outcomes
Merged, handed back, or closed.
Behavior that contradicts the description, a substantive problem, or tests failing on the pull request’s own code goes back to the author. Closing is reserved for bad faith.
A do-not-merge label, hold wording in the thread, or and do not merge stops it short of the merge, with one comment saying it cleared the check and CI and naming the hold.
A draft that clears the safety check is marked ready for review and carried on to the merge. One that fails the check stays a draft.
Install separately
Say yes to contributors without saying yes to everything.
skills.sh
Install for your selected agents in one command.
npx --yes skills add lsegal/glorp@gh-safe-merge --global --agent codex --agent claude-code --agent gemini-cli --agent opencode --agent cline --agent universal -yGitHub CLI
Install the bundled skill directly for your agent.
gh skill install lsegal/glorp gh-safe-merge --allow-hidden-dirs --agent codex --agent claude-code --scope userRun it/gh-safe-merge owner/repo#123