We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
Participation in this project comes under the Contributor Covenant Code of Conduct
While working on tests, the best way to run the plugin is via go run . debug --service=<your-service>. Ensure your local config file is set up correctly beforehand.
You may also pull the code locally and run the local Dockerfile:
- Pull the repo
- Modify
example-config.ymlto use your values, and rename it toconfig.yml - Build the Docker Image:
make docker-build - Run the Docker Image:
make docker-run - Review the output in the directory you've specified in your config file
Thank you for considering submitting code to Privateer!
- We follow the GitHub Pull Request Model for all contributions.
- All submissions, including submissions by project members, will require review before being merged.
- Please write a good Git Commit message
- Please follow the code formatting instructions below
If you come from another language, such as Python, imports behave a bit differently in Go projects than you may be familiar with.
Please review this guide for suggestions on how to successfully develop on a forked branch.
One key to remember: only use go get once! The rest of the time you should use two remotes: one to pull code from the primary repo, and another to push code to your fork.
When submitting pull requests, make sure to do the following:
- Format all Go code with
gofmt. Many people usegoimportswhich fixes import statements and formats code in the same style ofgofmt. - Remove trailing whitespace. Many editors will do this automatically.
- Ensure any new files have a trailing newline
Privateer uses Github Actions for all CI tasks. You may review the existing workflows in .github/workflows. Results of checks will automatically be pushed to PRs and may block merging if checks fail.
