Learning center

How can we add production risk checks to GitHub pull requests?

Add a check that evaluates the proposed commit for a named release target and reports its result on the pull request. Use a branch ruleset if the team wants that check to be required before merge.

Give the check a decision it can make#

Start with one property, such as whether a migration can run against the database engine version used by the target. Have the check identify the migration, target, engine version, and source time. Return an explicit incomplete result when it cannot obtain a required input. Configure the status reported to GitHub so that missing input cannot silently satisfy the requirement.

Try a compatible migration, an incompatible one, and a change with the version record unavailable. Inspect the actual merge decision in each case. If deployment happens later or goes to several targets, recheck the release-specific requirements at delivery. GitHub ruleset requirements · Configure deployment protection

Evaluate a review against its target environment.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading