We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aead6b commit bfcce18Copy full SHA for bfcce18
.tekton/linter.yaml
@@ -65,12 +65,9 @@ spec:
65
image: jorisroovers/gitlint
66
workingDir: $(workspaces.source.path)
67
script: |
68
- set -x
69
git config --global --add safe.directory /workspace/source
70
- # don't lint merge commit
71
- git log -1 |grep -E -q '^Merge:' && exit 0
+ git log -1 --format=format:%s |grep -E -q '^Merge branch' && exit 0
72
gitlint --commit "$(git log --format=format:%H --no-merges -1)" --ignore "Merge branch"
73
-
74
- name: yamllint
75
generateName: "YAML Linter"
76
runAfter:
0 commit comments