Thank you for your interest in contributing to Encina. This is a public repository — anyone can open issues, submit pull requests (via fork) for issues assigned to them, and participate in discussions. This guide covers all ways to get involved. Before your first pull request, read the contributor onboarding guide: machine setup, repository map, how the pieces relate, the path from an idea to main, and the rules that will otherwise bite.
This project follows the Contributor Covenant Code of Conduct. By participating, you agree to uphold its standards. Please report unacceptable behavior through the channels described there.
Before filing a bug report, search existing issues to avoid duplicates.
If you find a new bug, open an issue using the Bug Report template. A good bug report includes:
- A clear, descriptive title with the
[BUG]prefix - Steps to reproduce the behavior
- Expected vs. actual behavior
- .NET version, OS, and relevant package versions
- A minimal reproduction project or code snippet (when possible)
Do not report security vulnerabilities through public GitHub issues.
Use GitHub Private Vulnerability Reporting instead. See SECURITY.md for full details on our responsible disclosure process and what to include.
For new features or enhancements, open an issue using the Feature Request template. The template includes sections for:
- Motivation and use cases
- Proposed API design
- Provider implementation matrix (for database/caching/transport features)
- Cross-cutting integration evaluation (12 transversal functions)
For substantial features, consider opening a discussion or a [SPIKE] issue first to align on the design before investing in implementation.
We have specialized templates for different types of contributions:
| Template | Prefix | When to Use |
|---|---|---|
| Bug Report | [BUG] |
Something is broken or behaves unexpectedly |
| Feature Request | [FEATURE] |
New functionality or enhancement |
| Technical Debt | [DEBT] |
Code quality, optimization, missing implementations |
| Test Implementation | [TEST] |
New tests, coverage gaps, benchmarks |
| Architecture Spike | [SPIKE] |
Technical investigations and evaluations |
| Refactoring | [REFACTOR] |
Code restructuring without behavior change |
| Infrastructure | [INFRA] |
CI/CD, Docker, build system, tooling |
For questions, ideas, or general discussion, use GitHub Discussions. Issues should be reserved for actionable work items.
Good discussion topics:
- Design questions before starting a feature
- Architecture feedback or alternative approaches
- Integration patterns and best practices
- Sharing how you use Encina in your projects
Look for issues labeled good first issue or help wanted if you're looking for a place to start. Claim the issue first, as described in Before You Start.
- Check for existing work — search open PRs and issues to avoid duplication.
- Claim the issue and wait for the assignment — if you are an external contributor, comment on the issue to claim it, then wait until the maintainer assigns it to you. Open the pull request only after that, and link the issue in its description (
Fixes #N). A pull request for an issue that is not assigned to its author, or without a linked issue, is closed without review. Work the maintainer owns is exempt from this rule. If no issue exists yet, open one with the matching template and claim it the same way. - Design first for large changes — open a
[SPIKE]issue or Discussion before investing significant effort in new features or architectural changes.
Before opening a PR, make sure:
- Code formatting passes:
dotnet format Encina.slnx --verify-no-changes - All tests pass:
dotnet test Encina.slnx --configuration Release - Zero build warnings (
TreatWarningsAsErrorsis active) - New/changed behavior has tests
Cloud emulator tests and licences. Running the Azure Service Bus emulator tests (collection
Cloud-ServiceBusEmulator) accepts the Microsoft Azure Service Bus Emulator Software License Terms (development and testing only), and the SQL Server container it needs runs as Developer edition (free for non-production use only). Azurite is MIT licensed. Encina's cloud features are tested only against local emulators, never the real cloud. The terms, pinned image tags and a known limitation are in Integration Testing with Docker.
- Follow Conventional Commits in the PR title:
type(scope?): subject - Keep the Railway Oriented Programming contract: errors travel as
Either<EncinaError, T>, not exceptions - If adding pipeline behaviors, return
ValueTask<Either<EncinaError, T>>— avoidthrowexcept for cancellations - Cross-cutting integration: if you add a new feature, evaluate it against the 12 transversal functions (Caching, OpenTelemetry, Logging, Health Checks, Validation, Resilience, Distributed Locks, Transactions, Idempotency, Multi-Tenancy, Module Isolation, Audit Trail)
- Update documentation and badges when your changes affect capabilities, coverage, or quality
- The linked issue is assigned to me (external contributors)
- Formatting and analyzers pass locally
- Tests pass in Release configuration
- Coverage does not drop below the CI threshold (90% lines)
- If your change touches a folder with mutation data on the mutations dashboard, check whether your tests would kill the relevant mutants. See
docs/en/guides/MUTATION_TESTING.mdfor the catalog of common mutation types and the killing patterns. - Pipeline behaviors follow the functional rail — no operational exceptions
- Cross-cutting integration evaluated (see above)
- Documentation updated if applicable
Your PR will be validated by:
| Workflow | What It Checks |
|---|---|
ci.yml |
Formatting, analyzers (-warnaserror), tests with coverage, 90% gate |
conventional-commits.yml |
PR title follows Conventional Commits |
codeql.yml |
Security analysis |
sbom.yml |
Supply chain verification |
benchmarks.yml |
Performance regression detection |
GitHub Actions workflows of pull requests from forks run only after the maintainer approves them (the repository requires approval for all external contributors), so your checks may stay pending until then.
All checks must pass before merge.
- Use
ValueTaskin the critical path to minimize allocations - Prefer
EncinaError/Eitherover exceptions for expected flows - Document error codes and maintain consistency with
EncinaErrorCodes - Use file-scoped namespaces and guard clauses
- Add XML doc comments on all public APIs
- When adding tests, follow the conventions in the existing test projects (AAA pattern, descriptive names, one assertion per test)
We value every contribution. Contributors who have had work merged into Encina are eligible to be featured in the From Our Contributors section of the project README, where we showcase up to 2 of their independent projects. It's our way of giving back visibility to the people who help make Encina better.
If you'd like to be featured after your contribution is merged, just let us know which projects you'd like to highlight.
By contributing to Encina, you agree that your contributions will be licensed under the MIT License.