mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
* Initial refactor Signed-off-by: Craig Box <craigb@armosec.io> * Initial refactor. Signed-off-by: Craig Box <craigb@armosec.io> * Now how did that get in there? Signed-off-by: Craig Box <craigb@armosec.io> * small fixes Signed-off-by: Craig Box <craigb@armosec.io> * Use GitHub note and warning syntax Signed-off-by: Craig Box <craigb@armosec.io> * second guessing thing with no docs Signed-off-by: Craig Box <craigb@armosec.io> * Final changes Signed-off-by: Craig Box <craigb@armosec.io> Signed-off-by: Craig Box <craigb@armosec.io>
65 lines
2.6 KiB
Markdown
65 lines
2.6 KiB
Markdown
# Contributing
|
|
|
|
First, it is awesome that you are considering contributing to Kubescape! Contributing is important and fun and we welcome your efforts.
|
|
|
|
When contributing, we categorize contributions into two:
|
|
* Small code changes or fixes, whose scope is limited to a single or two files
|
|
* Complex features and improvements, with potentially unlimited scope
|
|
|
|
If you have a small change, feel free to fire up a Pull Request.
|
|
|
|
When planning a bigger change, please first discuss the change you wish to make via an issue,
|
|
so the maintainers are able to help guide you and let you know if you are going in the right direction.
|
|
|
|
## Code of Conduct
|
|
|
|
Please follow our [code of conduct](CODE_OF_CONDUCT.md) in all of your interactions within the project.
|
|
|
|
## Pull Request Process
|
|
|
|
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
|
|
build.
|
|
2. Update the README.md with details of changes to the interface, this includes new environment
|
|
variables, exposed ports, useful file locations and container parameters.
|
|
3. Open Pull Request to `dev` branch - we test the component before merging into the `master` branch
|
|
4. We will merge the Pull Request once you have the sign-off.
|
|
|
|
## Developer Certificate of Origin
|
|
|
|
All commits to the project must be "signed off", which states that you agree to the terms of the [Developer Certificate of Origin](https://developercertificate.org/). This is done by adding a "Signed-off-by:" line in the commit message, with your name and email address.
|
|
|
|
Commits made through the GitHub web application are automatically signed off.
|
|
|
|
### Configuring Git to sign off commits
|
|
|
|
First, configure your name and email address in Git global settings:
|
|
|
|
```
|
|
$ git config --global user.name "John Doe"
|
|
$ git config --global user.email johndoe@example.com
|
|
```
|
|
|
|
You can now sign off per-commit, or configure Git to always sign off commits per repository.
|
|
|
|
### Sign off per-commit
|
|
|
|
Add [`-s`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt--s) to your Git command line. For example:
|
|
|
|
```git commit -s -m "Fix issue 64738"```
|
|
|
|
This is tedious, and if you forget, you'll have to [amend your commit](#f)
|
|
|
|
### Configure a repository to always include sign off
|
|
|
|
There are many ways to achieve this with Git hooks, but the simplest is to do the following:
|
|
|
|
```
|
|
cd your-repo
|
|
curl -Ls https://gist.githubusercontent.com/dixudx/7d7edea35b4d91e1a2a8fbf41d0954fa/raw/prepare-commit-msg -o .git/hooks/prepare-commit-msg
|
|
chmod +x .git/hooks/prepare-commit-msg
|
|
```
|
|
|
|
## Fixing a commit where the DCO failed
|
|
|
|
Check out [this guide](https://github.com/src-d/guide/blob/master/developer-community/fix-DCO.md).
|