Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,63 @@ Please report abusive, harassing, or unacceptable behavior to [gardener-tsc@list

### Developer Certificate of Origin

Contributors must accept a Developer Certificate of Origin (DCO) before submitting their first pull request. This happens in an automated fashion during the submission process. We use [the standard DCO text of the Linux Foundation](https://developercertificate.org/).
Contributors sign off that they adhere to the [Developer Certificate of Origin (DCO)](https://developercertificate.org/) when making contributions to the project.
This happens by adding a `Signed-off-by` line to commit messages.

<details>
<summary>Signing off on commits</summary>

A signed-off commit message looks like this:
```text
This is my commit message

Signed-off-by: Random J Developer <random@developer.example.org>
```

Make sure to configure your identity in the Git config:

```shell
git config --global user.name "Random J Developer"
git config --global user.email "random@developer.example.org"
```

In your `~/.gitconfig` this looks like this:

```text
[user]
name = Random J Developer
email = random@developer.example.org
```

You can sign off on commits by adding `-s` to the `git commit` command:

```shell
git commit -s -m 'This is my commit message'
```

If you want to sign off on every commit by default, you could add a `prepare-commit-msg` Git hook:

1. If not already present create a folder for your Git hooks. You can choose any path, e.g. `mkdir ~/git-hooks`
2. Configure the hooks path in your `~/.gitconfig`
```text
[core]
hooksPath = ~/git-hooks
```
3. Create the file `~/git-hooks/prepare-commit-msg` and add:
```shell
#!/bin/sh
SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
git interpret-trailers --in-place --trailer "$SOB" "$1"
```

</details>

### License

Your contributions to Gardener must be licensed properly:

* Code contributions must be licensed under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0)
* Documentation contributions must be licensed under the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/legalcode)
* You need to sign the Contributor License Agreement. We are using *[CLA assistant](https://cla-assistant.io/)*, which provides a click-through workflow for accepting the CLA. For company contributors, the company also needs to sign a corporate license agreement.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still require the second part of this bullet?

For company contributors, the company also needs to sign a corporate license agreement.


## Contributing

Expand Down
Loading