Skip to content

Commit 4d3343d

Browse files
author
玖宇
committed
chore: add dco check
1 parent f2df0a0 commit 4d3343d

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ fixes #XXXX
2323
- [ ] Format your code `make fmt`.
2424
- [ ] Add unit tests or integration tests.
2525
- [ ] Update the documentation related to the change.
26+
- [ ] All commits are signed with DCO (`git commit -s`). See [Developer Certificate of Origin (DCO)](CONTRIBUTING.md#developer-certificate-of-origin-dco).

.github/workflows/dco-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: DCO Check
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
7+
# Declare default permissions as read only.
8+
permissions: read-all
9+
10+
jobs:
11+
dco-check:
12+
runs-on: ubuntu-latest
13+
name: DCO Check
14+
steps:
15+
- name: Get PR Commits
16+
id: get-pr-commits
17+
uses: tim-actions/get-pr-commits@master
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: DCO Check
22+
uses: tim-actions/dco@master
23+
with:
24+
commits: ${{ steps.get-pr-commits.outputs.commits }}

0 commit comments

Comments
 (0)