File tree 2 files changed +22
-16
lines changed
2 files changed +22
-16
lines changed Original file line number Diff line number Diff line change 1
1
- hosts : all
2
2
tasks :
3
- - name : chell
4
- shell : git remote -v
5
- args :
6
- chdir : " {{ zuul.project.src_dir }}"
7
-
8
- - name : chell
9
- shell : git log origin/master..HEAD
10
- args :
11
- chdir : " {{ zuul.project.src_dir }}"
12
-
13
3
- name : shell
14
- shell : |
15
- for commit in $(git cherry master | cut -d " " -f2)
16
- do
17
- echo $commit
18
- done
19
- args :
4
+ shell :
5
+ cmd : |
6
+ set -e
7
+ result=0
8
+ for commit in $(git cherry -v origin/{{ zuul.branch }} HEAD | cut -d " " -f2)
9
+ do
10
+ if ! git show -s $commit | grep -q "Signed-off-by:"; then
11
+ echo "Commt $commit does not have a Signed-off-by header"
12
+ git show -s $commit
13
+ result=1
14
+ fi
15
+ done
16
+ exit $result
20
17
chdir : " {{ zuul.project.src_dir }}"
18
+ executable : /bin/bash
19
+ register : _dco
20
+ ignore_errors : True
21
+
22
+ - name : Validate DCO License
23
+ fail :
24
+ msg : Something is wrong
25
+ when : _dci.rc != 0
Original file line number Diff line number Diff line change 1
1
new line
2
+ b
You can’t perform that action at this time.
0 commit comments