Contributing to UltraHooks
First off, thank you for considering contributing to UltraHooks! It’s people like you who make the open-source community such an incredible place to learn, inspire, and create.
This document serves as a guideline for contributing efficiently.
1. Setup Your Development Environment
UltraHooks is written purely in Go.
Prerequisites:
- Go 1.21+ installed.
- Git installed.
Steps to Compile Locally:
- Fork the repository on GitHub.
- Clone your fork locally:bash
git clone https://github.com/YOUR_USERNAME/ultrahooks.git cd ultrahooks - Install Dependencies (we use very few external packages):bash
go mod download - Compile the binary:bash
go build -o ultrahooks
You can now use ./ultrahooks locally to test your changes.
2. Making Changes
- Before writing massive new features, please open an Issue on GitHub to discuss the architectural approach. UltraHooks aims to be extremely lightweight, and we try to avoid adding bloated features unless strongly justified.
- Create a new branch for your feature/bugfix:bash
git checkout -b feat/my-new-feature - Write clear, concise Go code following standard
gofmtparadigms.
3. Submitting a Pull Request
When submitting a PR, ensure that:
- You have run
go fmt ./...on your codebase to format correctly. - You have executed
go test ./...and no regressions exist. - Your commit messages clearly explain the "Why" and "What" of your changes. Include issue numbers (e.g.,
fixes #12).
4. Code of Conduct
All contributors are expected to abide by our Code of Conduct:
- Be respectful and constructive during PR reviews.
- Focus on the technical merit of the code, not the person authoring it.
- Harassment of any kind is strictly prohibited.
