File tree 7 files changed +524
-476
lines changed
7 files changed +524
-476
lines changed Original file line number Diff line number Diff line change 1
1
arrowParens : " avoid"
2
2
bracketSpacing : false
3
- jsxBracketSameLine : false
4
3
semi : true
5
4
singleQuote : true
6
5
tabWidth : 2
Original file line number Diff line number Diff line change @@ -38,13 +38,15 @@ deploy:
38
38
on :
39
39
branch : master
40
40
node_js : " lts/*"
41
+
41
42
- provider : script
42
43
skip_cleanup : true
43
44
script :
44
45
- npx semantic-release
45
46
on :
46
47
branch : master
47
48
node_js : " lts/*"
49
+
48
50
- provider : releases
49
51
skip-cleanup : true
50
52
file :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ #
3
+ # Runs commitlint in the provided subdirectory
4
+ #
5
+
6
+ set -e
7
+
8
+ basedir=$1
9
+ if [[ -z " $basedir " ]]; then
10
+ basedir=.
11
+ fi
12
+
13
+ if [[ ! -d " $basedir " ]]; then
14
+ echo " Error: not a directory: $basedir "
15
+ exit 1
16
+ fi
17
+
18
+ if [[ ! -f " $basedir " /commitlint.config.js ]]; then
19
+ echo " Error: No commitlint configuration found"
20
+ exit 1
21
+ fi
22
+
23
+ if [[ -z $COMMIT_RANGE ]]; then
24
+ echo " Error: COMMIT_RANGE not defined"
25
+ exit 1
26
+ fi
27
+
28
+ cd " $basedir "
29
+ echo " Checking commits in COMMIT_RANGE: $COMMIT_RANGE "
30
+ while IFS= read -r line; do
31
+ echo " $line " | npx commitlint
32
+ done < <( git log " $COMMIT_RANGE " --format=%s -- .)
You can’t perform that action at this time.
0 commit comments