forked from TrueCloudLab/dco-go
Forgejo action that verifies commits in pull-request all include Developer Certificate of Origin (DCO) information and proper header.
Evgenii Stratonikov
2f1de6fc41
Set it to target branch and check only the commits we are interested in. If the commit is already in the branch, we just get an old behaviour. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com> |
||
---|---|---|
action.yaml | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md |
dco-go
A Forgejo action that verifies commits in pull-request all include Developer Certificate of Origin (DCO) information and proper header.
Usage
Add .forgejo/workflows/dco.yml with the following
on: [pull_request]
jobs:
dco:
name: DCO
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Run commit format checker
uses: https://git.frostfs.info/TrueCloudLab/dco-go@v1
with:
from: 406c2324
Action checks through whole repository history. Specify last commit to check bound with from
parameter.