Thank you for your interest in contributing to Insider-Monitor! This document provides guidelines and workflows for contributing to this project.
main
: Production-ready code- Feature branches:
feature/your-feature-name
- Bug fix branches:
fix/bug-description
- Hotfix branches:
hotfix/urgent-fix
- Fork the repository
- Create a new branch from
main
:git checkout -b feature/your-feature-name
- Make your changes
- Commit using conventional commit messages:
git commit -m "feat: add new feature" git commit -m "fix: resolve bug" git commit -m "docs: update documentation"
- Push your branch and create a Pull Request
- Ensure all tests pass
- Update documentation if needed
- Request review from maintainers
- Address review comments
- Maintainers will merge after approval
Releases follow semantic versioning (MAJOR.MINOR.PATCH):
- MAJOR: Breaking changes
- MINOR: New features (backwards compatible)
- PATCH: Bug fixes
- Ensure all changes are merged to
main
- Create and push a new tag:
git tag -a v1.0.0 -m "Release v1.0.0" git push origin v1.0.0
- GitHub Actions will automatically:
- Run tests
- Build binaries
- Create a GitHub release
- Upload artifacts
- Follow Go best practices and idioms
- Maintain test coverage
- Use meaningful variable and function names
- Document public APIs
- Run linter before committing