Forgejo action that verifies commits in pull-request all include Developer Certificate of Origin (DCO) information and proper header.
Find a file
Ekaterina Lebedeva 34fc16edb6
Some checks reported warnings
/ DCO (pull_request) Has been cancelled
Bad commit
2024-07-02 18:19:33 +03:00
.forgejo/workflows [#9] Add workflow file for actions 2024-07-02 18:16:27 +03:00
action.yaml Initial commit 2023-06-30 18:54:50 +03:00
anothernewfile Bad commit 2024-07-02 18:19:33 +03:00
go.mod [#2] Write tests for the regex 2024-01-25 19:17:12 +03:00
go.sum Initial commit 2023-06-30 18:54:50 +03:00
main.go [#7] Check empty line after commit's header 2024-06-26 22:27:10 +03:00
main_test.go [#2] Write tests for the regex 2024-01-25 19:17:12 +03:00
newfile [#123] Good commit 2024-07-02 18:18:31 +03:00
README.md Add README 2023-06-30 18:59:25 +03:00

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.