Thank you for your interest in contributing to BeyondNet.Factory!
We follow a strict GitFlow branching model to ensure quality and traceability.
| Type | Prefix | Origin | Destination | Purpose |
|---|---|---|---|---|
| Main | - | - | - | Production-ready code |
| Develop | - | - | main | Integration branch for features |
| Feature | feature/ |
develop | develop | New functionality |
| Bugfix | bugfix/ |
develop | develop | Bug fixes |
| Hotfix | hotfix/ |
main | main + develop | Urgent production fixes |
| Release | release/ |
develop | main + develop | Release preparation |
git checkout develop
git pull origin develop
git checkout -b feature/add-new-factory-method
# ... make changes ...
git push -u origin feature/add-new-factory-method
# Create Pull Request to developgit checkout develop
git pull origin develop
git checkout -b release/v1.1.0
# ... final adjustments, bump version ...
git checkout main
git merge --no-ff release/v1.1.0
git tag -a v1.1.0 -m "Release v1.1.0"
git push origin main --tags
git checkout develop
git merge --no-ff release/v1.1.0
git branch -d release/v1.1.0git checkout main
git pull origin main
git checkout -b hotfix/v1.0.1-fix-urgent
# ... fix ...
git checkout main
git merge --no-ff hotfix/v1.0.1-fix-urgent
git tag -a v1.0.1 -m "Hotfix v1.0.1"
git push origin main --tags
git checkout develop
git merge --no-ff hotfix/v1.0.1-fix-urgentWe use conventional commits for clear history:
<type>(<scope>): <description>
feat(factory): add new record-based setup method
fix(creator): correct null handling in Create method
docs(installer): update DI registration guide
test(core): add unit tests for FactorySetupProvider
Types: feat, fix, docs, style, refactor, test, chore
Scopes: factory, installer, creator, builder, tests, workflow
- All PRs require at least 1 reviewer approval
- All CI checks must pass
- Squash commits before merging
- Use meaningful PR titles and descriptions
- Reference issues in PR description
| Branch | Protection Rules |
|---|---|
main |
PR required, 2 reviewers, status checks mandatory |
develop |
PR required, 1 reviewer, status checks mandatory |
feature/*, bugfix/*, hotfix/*, release/* |
PR suggested, no strict restrictions |
- Follow .NET conventions and naming guidelines
- Add XML documentation to public APIs
- Include unit tests for new functionality
- Run
dotnet buildanddotnet testbefore submitting PR - Ensure code analysis passes with no warnings
- All tests must pass on both Windows and Ubuntu
- Maintain or improve code coverage
- Open an issue for bugs or feature requests
- Join discussions in GitHub Discussions
- Review existing issues before creating new ones
By contributing, you agree that your contributions will be licensed under the MIT License.