File tree Expand file tree Collapse file tree 3 files changed +51
-3
lines changed Expand file tree Collapse file tree 3 files changed +51
-3
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
9
9
steps :
10
+ - uses : actions/checkout@v3
10
11
- uses : actions/setup-node@v3
11
12
with :
12
13
node-version : 18
14
+ cache : npm
13
15
14
- - run : npm install -g commitlint @commitlint/config-conventional
15
- - run : ' echo "${PR_TITLE}" | commitlint -x @commitlint/config-conventional '
16
+ - run : npm install -g @ commitlint/cli @commitlint/config-conventional
17
+ - run : ' echo "${PR_TITLE}" | commitlint'
16
18
env :
17
19
PR_TITLE : ${{ github.event.pull_request.title }}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ node_modules
2
2
* .js
3
3
! web-test-runner.config.js
4
4
! css-to-ts.js
5
+ ! commitlint.config.js
5
6
* .css
6
7
* .css.ts
7
8
* .map
@@ -25,4 +26,4 @@ catalog/site/about/images
25
26
catalog /* .tsbuildinfo
26
27
catalog /stories /* /
27
28
! catalog /stories /components /
28
- ! catalog /src /types /** /* .d.ts
29
+ ! catalog /src /types /** /* .d.ts
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ export default {
8
+ extends : [ '@commitlint/config-conventional' ] ,
9
+ rules : {
10
+ 'scope-enum' : [
11
+ 2 ,
12
+ 'always' ,
13
+ [
14
+ // Use "/" for multiple scopes: `fix(button/checkbox): subject"`
15
+ // Omit scope for broad "all" changes.
16
+ 'button' ,
17
+ 'catalog' ,
18
+ 'checkbox' ,
19
+ 'chips' ,
20
+ 'color' ,
21
+ 'dialog' ,
22
+ 'divider' ,
23
+ 'elevation' ,
24
+ 'fab' ,
25
+ 'field' ,
26
+ 'focus' ,
27
+ 'icon' ,
28
+ 'iconbutton' ,
29
+ 'labs' ,
30
+ 'list' ,
31
+ 'menu' ,
32
+ 'progress' ,
33
+ 'radio' ,
34
+ 'ripple' ,
35
+ 'select' ,
36
+ 'slider' ,
37
+ 'switch' ,
38
+ 'tabs' ,
39
+ 'textfield' ,
40
+ 'tokens' ,
41
+ 'typography' ,
42
+ ] ,
43
+ ] ,
44
+ } ,
45
+ } ;
You can’t perform that action at this time.
0 commit comments