Limit a pull request check to matching files
Open the repository's Pre-merge checks, choose or add a check, and set its path filters when only part of the repository needs the rule.
Limit a check to paths#
With paths, a check applies only when the pull request changes, adds, renames or deletes a matching file, compared with its merge base. * stays within one folder and ** crosses folders, so api/** matches every file under api. A change that touches no matching file does not apply: a blocking check is skipped, and an advisory check stays neutral. If GitHub lists only part of a large change and none of the listed files match, the check cannot be decided.