From 1ba1dab35d429d94e3de37d05bf6f32375a98763 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 30 Jun 2023 18:59:25 +0300 Subject: [PATCH] Add README Signed-off-by: Alex Vanin --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..65daa99 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# 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 + +```yaml +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. \ No newline at end of file