Install
No framework information available.
README
RepoConventions
Applies shared repository conventions.
RepoConventions applies shared repository conventions from a .github/conventions.yml file.
Quick Start
Install the tool globally, or run it ad hoc with dnx.
dotnet tool install --global repo-conventions
# or
dnx repo-conventions --help
Create .github/conventions.yml in the repository you want to manage.
For example, to add a convention that installs a workflow that opens a PR nightly when convention changes are needed:
repo-conventions add Faithlife/CodingGuidelines/conventions/repo-conventions-workflow
This is the .github/conventions.yml that should have been created:
conventions:
- path: Faithlife/CodingGuidelines/conventions/repo-conventions-workflow
Commit .github/conventions.yml, then run repo-conventions apply from the repository root, which creates and commits the workflow.
Configuration
RepoConventions reads .github/conventions.yml.
conventionsis required and lists convention references in the order they are applied.- Each convention entry must have
pathand may havesettings. - Use
pull-requestto control the settings of any PR opened byrepo-conventions apply --open-pr.
Regarding convention paths:
- Remote paths use
owner/repo/path@ref. Ifpathis omitted, the repository root is used. If@refis omitted, the remote default branch is used. - Local relative paths start with
./or../and are resolved relative to the configuration file, or start with/and are resolved from the repository root.
CLI
repo-conventions add <path> adds a convention reference to .github/conventions.yml, creating the file if needed.
repo-conventions apply applies configured conventions and creates commits as needed.
repo-conventions apply --open-pr applies conventions, creates commits, and opens or updates a PR for any created commits.
When applying conventions, run from the repository root, and start with a clean working tree. With --open-pr, there should also be no unpushed local commits.
More Documentation
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.