Skip to main content

Block Merges with Accessibility Gates

The pull requests are blocked only when the repository’s branch protection rules or rulesets require the A11yInspect check to pass before merging.

To ensure accessibility requirements are consistently enforced, configure GitHub branch protection or repository rulesets.

Configure a Required Status Check​

Proceed with the following steps:

  1. Open the GitHub repository.
  2. Go to settings then select rules and then Rulesets.
  3. Create or update your ruleset for your primary branch.
  4. Enable Require status check to pass before merging.
  5. Select the A11yInspect Status Check.

Benefits​

Accessibility gates help teams:

  • Prevent accessibility regressions
  • Enforce quality standards
  • Ensure consistent review practices
  • Maintain accessibility compliance across releases
  • When accessibility violations remain unresolved, pull requests can be prevented from merging until issues are addressed.

Advance Configurations​

Following are the available enhancements:

Advancement FeaturesDescription
Weekly AuditsScheduled accessibility reviews
Configuration FileCentralize settings in a11yinspect.config.json
JSON ReportsExport machine-readable results
JUnit ReportsIntegrate with CI reporting tools
Jira IntegrationCreate and update tickets automatically
Slack & Teams NotificationsSend scan results to collaboration platforms