This reusable workflow wraps two lightweight checks that are commonly used on feature branches:
- a LoC delta check against the closest configured base branch
- a branch-ticket check that fails when the ticket from the branch name still appears in the repository
The base branch resolution is implemented inside the check-loc action itself, so the action can also be used standalone after a normal checkout step.
The defaults are intentionally conservative so most repos only need to set the ticket prefix, and optionally the runner label.
runs-on: defaults todefault-k8s-runnerbase-branches: defaults tomainloc-limit: defaults to800ticket-prefixes: optional, but recommended to avoid overly broad matchingloc-ignore-patterns: optional extra git pathspec excludes for repo-specific generated files
- Swiss Cannabis style setup:
base-branches: "main,zuerich"ticket-prefixes: "SCC" - Mindnet style setup:
runs-on: "self-hosted"ticket-prefixes: "MNET" - FDS Copilot style setup:
loc-limit: 1200ticket-prefixes: "FDS,SEL"add repo-specific values toloc-ignore-patterns