Skip to content

Commit 7de60a2

Browse files
committed
add dco rules
Signed-off-by: Sheldon <[email protected]>
1 parent 60bd03e commit 7de60a2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/mergify.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,15 @@ pull_request_rules:
66
actions:
77
label:
88
toggle:
9-
- ci-passed
9+
- ci-passed
10+
- name: "Ensure commits follow DCO"
11+
conditions:
12+
- "#commits > 0"
13+
- "body~Signed-off-by:"
14+
actions:
15+
comment:
16+
message: |
17+
⚠️ Your PR is missing a `Signed-off-by:` line in at least one commit.
18+
Please use `git commit -s` to sign your commits.
19+
dismiss_reviews:
20+
message: "DCO check failed. Please sign your commits."

0 commit comments

Comments
 (0)