Welcome to validatorgo repository!! We appreciate your interest in contributing to this open source library and for helping our community grow.
In general, we follow the "fork-and-pull" Git workflow.
- Fork the repository on GitHub
- Clone the forked project to your local machine
git clone https://github.com/<your-username>/<repo-name>.git
cd <repo-name>
-
Work on your fork
-
Make your changes and additions
- Most of your changes should be focused on root directory, the sanitizer package and the README.md.
-
Change or add tests if needed
- Add or update tests in the relevant
*_test.go
files.
- Add or update tests in the relevant
-
Run tests and make sure they pass
go test ./...
- Update documentation if necessary
- Update README.md and other go doc comments to reflect your changes.
-
-
Commit changes to your own branch
- Create a new branch for your work:
git checkout -b <feature-or-fix-name>
- Stage and commit your changes
git add . git commit -m "Describe your changes"
- Merge the latest from "upstream" and resolve conflicts if any
- Add the upstream repository
git remote add upstream https://github.com/<original-repo-owner>/<repo-name>.git
- Fetch and merge the latest changes
git fetch upstream git merge upstream/main
- Repeat step 3
- Re-test your changes after merging upstream updates to ensure everything still works as intended.
- Push your work back up to your fork
git push origin <branch-name>
- Submit a Pull Request (PR)
- Go to the original repository on GitHub and navigate to the Pull Requests tab.
- Click on "New Pull Request" and select the
dev
branch. - Add a meaningful title and description for your changes.
- Submit the Pull Request for review.