Skip to content

RuleContext

Shared context provided to rules when they run on an entity.

locator: RepositoryLocator

Repository location on GitHub.


octokit: LocatedOctokit

Octokit instance that can send GitHub API calls. Its owner and repo parameters default to RuleContext.locator.


options: RuleOptions

Options the rule is running with, resolved from rule and user settings.


report: RuleReporter

Registers a new violation.