Skip to content

Commit f967a46

Browse files
docs(contributing): require DCO sign-off on every commit (#160)
Same DCO block landing in axonflow-sdk-rust#1, applied uniformly across all org repos so the org-wide DCO GitHub App check is documented in each repo's CONTRIBUTING.md. Signed-off-by: Saurabh Jain <saurabhjain1592@gmail.com>
1 parent a9751dd commit f967a46

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22

33
Thank you for your interest in contributing! Please open an issue or pull request via the [GitHub repository](https://github.com/getaxonflow/axonflow-sdk-java).
44

5+
## Sign your commits — Developer Certificate of Origin (DCO) is required
6+
7+
All contributions to this repository must be **signed off** under the [Developer Certificate of Origin v1.1](https://developercertificate.org/). The DCO is a per-commit affirmation that you wrote the code (or otherwise have the right to submit it) and are licensing it under the same license as the rest of this repository.
8+
9+
Add the sign-off automatically with `-s` (or `--signoff`) on every commit:
10+
11+
```bash
12+
git commit -s -m "your commit message"
13+
```
14+
15+
This appends a trailer like:
16+
17+
```
18+
Signed-off-by: Your Name <your.email@example.com>
19+
```
20+
21+
The name and email must match `git config user.name` / `git config user.email`.
22+
23+
If you forgot `-s` on an existing commit, fix it with one of:
24+
25+
```bash
26+
# most recent commit
27+
git commit --amend --signoff --no-edit
28+
29+
# every commit on the current branch
30+
git rebase --signoff origin/main
31+
```
32+
33+
A DCO check runs automatically on every PR opened in the `getaxonflow` org. **PRs with any unsigned commit will be blocked from merging until the missing sign-offs are added.** No exceptions, including for maintainers.
34+
535
## Development setup
636

737
```bash

0 commit comments

Comments
 (0)