What problem does it solve?
Detects which organizational convention and default branch apply to the current Git repository by examining the git remote URL and the working directory path, enabling consistent branch, commit, and PR rules to be applied.
Core Features & Use Cases
- Match remote URL patterns and directory path patterns to return a convention identifier such as shellicar-config, shellicar-oss, shellicar, eagers, hopeventures, or flightrac.
- Resolve the repository default branch via origin/HEAD and provide a protected-branches listing (or none) to guide automation.
- Use Case: At the start of work on a repository, automatically determine and load convention-specific rules so commits and pull requests follow organizational standards.
Quick Start
Run the detect-convention script in the repository to receive the convention name, default branch, and protected branches as JSON.