Install
No framework information available.
README
RepoConventions
RepoConventions is a .NET tool that runs convention scripts configured for a repository, committing any resulting changes and optionally opening a GitHub pull request.
This is an inherently dangerous tool. It runs PowerShell scripts from arbitrary GitHub repositories, potentially with full access to local files and production secrets, with the capability of automatically merging pull requests. Only apply conventions from trusted sources. Make sure that conventions from trusted sources don't reference conventions from untrusted sources. Convention paths that are not pinned to a specific SHA are subject to supply chain attacks, so make sure convention repositories are secure and that contributions are carefully reviewed.
Quick Start
Before running RepoConventions, make sure the following tools are installed:
dotnet: .NET 10 SDK or laterpwsh: PowerShell 7 or latergit: Git CLI, configured and authenticatedgh: GitHub CLI, configured and authenticated (for opening PRs)
Individual conventions may require additional tools.
Run the tool with dnx:
dnx repo-conventions --help
Alternatively, e.g. to run in a repository configured for .NET 8, which doesn't suppport dnx, install the tool globally:
dotnet tool install -g repo-conventions
repo-conventions --help
To add a convention to the current repository:
dnx repo-conventions add Faithlife/CodingGuidelines/conventions/gitattributes-lf
That command creates .github/conventions.yml if it does not already exist:
conventions:
- path: Faithlife/CodingGuidelines/conventions/gitattributes-lf
Commit the configuration file, then apply the convention:
dnx repo-conventions apply
Features
- Repository Configuration β Configure
.github/conventions.yml, declare local and remote conventions, pass settings, and configure pull request metadata. - CLI Reference β Run the
add,validate, andapplycommands, with path options, pull request options, and clean-repository requirements. - Convention Configuration β Learn the shared YAML model for convention references, settings, commit settings, and pull request settings.
- Convention Authoring β Create idempotent convention directories with
convention.yml, scripts, local documentation, tests, and child settings expressions.
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.