Thank you for your interest in contributing to triceped! We welcome contributions from the community to help improve and enhance this project. This document provides guidelines and information to help you get started.
- Getting Started
- Contributing Code
- Contributing Issues
- Coding Guidelines
- Code Review Process
- Community Guidelines
- License
Before you begin, ensure you have the following installed:
- Go: triceped is written in Go. Install Go 1.23+.
- Git: Version control system for cloning and contributing to the repository.
- Make (optional): For using the provided
Makefile
to simplify build tasks.
-
Clone the Repository
git clone https://github.com/ru84/triceped.git cd triceped
-
Install Dependencies
triceped uses Go modules. Dependencies are managed automatically.
go mod tidy
-
Build the Project
Using Makefile:
make build
Or directly with Go:
go build -o bin/triceped cmd/triceped/main.go
-
Run Tests
make test
Or directly with Go:
go test ./...
We appreciate code contributions! Please follow these steps to contribute:
Click the "Fork" button on the triceped repository page to create a copy under your GitHub account.
Create a new branch for your work:
git checkout -b feature/your-feature-name
Implement your feature or bug fix, adhering to the Coding Guidelines.
-
Use clear and descriptive commit messages.
-
Follow the format:
<type>(<scope>): <subject>
Example:
git commit -m "feat(converter): add support for resource groups"
Types:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, etc.)
- refactor: A code change that neither fixes a bug nor adds a feature
- test: Adding missing tests or correcting existing tests
- chore: Changes to the build process or auxiliary tools and libraries
Push your branch to your forked repository:
git push origin feature/your-feature-name
- Navigate to the original repository's Pull Requests page.
- Click "New pull request".
- Select your branch and create the pull request.
- Fill out the template with details about your changes.
If you encounter a bug, please open an issue and include:
- Description: A clear and concise description of the problem.
- Steps to Reproduce: Instructions to reproduce the issue.
- Expected Behavior: What you expected to happen.
- Actual Behavior: What actually happened.
- Environment Details: OS, Go version, triceped version.
We welcome ideas for new features! When submitting a feature request, please include:
- Problem Statement: What problem does this feature solve?
- Proposal: Describe the solution you'd like.
- Alternatives: Any alternative solutions or features you've considered.
- Style: Follow Go's standard formatting conventions. Use
go fmt
before committing. - Linting: Ensure your code passes lint checks. Use tools like
golint
andgo vet
. - Testing: Write unit tests for new functionality and ensure all tests pass.
- Documentation: Update or add comments for public functions and exported types.
All submissions are reviewed before being merged. Here's what to expect:
- Review: Project maintainers will review your pull request for correctness and compliance with guidelines.
- Feedback: You may receive comments requesting changes.
- Approval: Once approved, your changes will be merged into the main branch.
- Release: Your contribution will be included in the next release.
We are committed to fostering a welcoming and inclusive environment. By participating, you agree to abide by our Code of Conduct.
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for contributing to triceped! Your efforts help make this project better for everyone.