Skip to content
Closed
Show file tree
Hide file tree
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
36 changes: 36 additions & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: DCO Check

on:
push:
branches: ["**"]
pull_request:
branches: ["**"]

jobs:
dco-check:
name: Verify DCO Sign-off
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get latest commit message
id: get_commit
run: |
message=$(git log -1 --pretty=format:"%B")
echo "commit_msg<<EOF" >> $GITHUB_OUTPUT
echo "$message" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Check for Signed-off-by line
run: |
echo " Checking commit message:"
echo "${{ steps.get_commit.outputs.commit_msg }}"
if [[ "${{ steps.get_commit.outputs.commit_msg }}" != *"Signed-off-by:"* ]]; then
echo " DCO sign-off missing!"
exit 1
else
echo " DCO sign-off present."
fi

22 changes: 22 additions & 0 deletions contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Thank you for considering contributing! 🚀
This project follows the **Developer Certificate of Origin (DCO)**, which requires all commits to be signed off.

✅ How to sign off:

If you're using the command line:

```
git commit -s -m "Commit message"
```
This adds:

```
Signed-off-by: Your Name <[email protected]>
```

If you forget, no stress — you can fix it:

```
git commit --amend -s
git push --force
```
Loading