~samwhited/blogsync

ref: 5083f77d6a5a04a6c2e8f065c87351f48870505b blogsync/.builds/dco.yml -rw-r--r-- 753 bytes
5083f77dSam Whited .builds: verify DCO 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
image: alpine/edge
packages:
  - git
sources:
  - https://git.sr.ht/~samwhited/blogsync
tasks:
  - dco: |
      git version
      cd blogsync/
      function on_err {
        cat <<EOF
      Failed to sign the Developer Certificate of Origin (DCO)!
      Please read the file "DCO" and then, if you agree, sign each of your commits
      using:

          git commit -s

      Or quickly sign the previous commit with:

          git commit --amend -s --no-edit
      EOF
      }
      trap on_err ERR

      # Check that all commits that aren't in master are signed off by the same
      # committer (taken from the HEAD commit).
      [[ ! "$(git log --invert-grep --grep="Signed-off-by: $(git show -s --pretty="%cn <%ce>" HEAD)" origin/master..)" ]]