~samwhited/clarkns

ref: 7eacd4ea6aa09f772fc349b3cc3562f2ed791d13 clarkns/.builds/dco.yml -rw-r--r-- 742 bytes
7eacd4eaSam Whited Add boilerplate documentation and CI config 1 year, 3 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://github.com/mellium/clarkns
tasks:
  - dco: |
      git version
      cd clarkns/
      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)" master..)" ]]