Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIgnoredPaths ¶
GetIgnoredPaths returns the path patterns that don't require any checks for the given repo: the repo's own IgnoredPaths if set, otherwise the global ones.
func GetKnownTrigger ¶
GetKnownTrigger returns the PR comment trigger for the given check run name, or an empty string if none is configured.
Check names are matched exactly first. Checks with a dynamic suffix (e.g. the per-provider "App E2E Test Suites - capa" checks added from a repo's apptest config) are then matched against the longest configured name that is a prefix of them, with the suffix substituted into any `{{suffix}}` placeholder in the trigger.
func IsReleaseBranch ¶ added in v0.2.0
IsReleaseBranch returns true if the branch was created to open a release PR, e.g. `main#release#patch` or `release-v1.2.x#release#v1.2.3`. Release PRs always require their checks, even if they only change ignored paths.
func OnlyIgnoredFiles ¶
OnlyIgnoredFiles returns true if there is at least one file and every file matches at least one of the patterns.
Patterns are relative to the repo root, a leading `./` is ignored. Patterns ending in `/**` match everything below that directory, any other pattern is matched against the full path using path.Match (so `README.md` only matches the root README and `*` doesn't cross directories).
Types ¶
type Conf ¶
type Conf struct {
KnownTriggers KnownTriggers `json:"knownTriggers"`
IgnoredPaths []string `json:"ignoredPaths"`
Repos Repos `json:"repos"`
}