File tree 5 files changed +64
-9
lines changed
5 files changed +64
-9
lines changed Original file line number Diff line number Diff line change 4
4
directory : " /"
5
5
schedule :
6
6
interval : " weekly"
7
+ commit-message :
8
+ prefix : chore(deps)
9
+ prefix-development : chore(dev-deps)
Original file line number Diff line number Diff line change
1
+ {
2
+ "LABEL" : {
3
+ "name" : " invalid-title" ,
4
+ "color" : " B60205"
5
+ },
6
+ "CHECKS" : {
7
+ "prefixes" : [
8
+ " feat: " ,
9
+ " feature: " ,
10
+ " fix: " ,
11
+ " bugfix: " ,
12
+ " perf: " ,
13
+ " refactor: " ,
14
+ " test: " ,
15
+ " tests: " ,
16
+ " build: " ,
17
+ " ci: " ,
18
+ " doc: " ,
19
+ " docs: " ,
20
+ " style: " ,
21
+ " chore: " ,
22
+ " other: "
23
+ ],
24
+ "regexp" : " ^\\ w+(\\ ([a-z_-]+\\ ))?: " ,
25
+ "regexpFlags" : " " ,
26
+ "ignoreLabels" : [
27
+ " skip-title-check"
28
+ ]
29
+ },
30
+ "MESSAGES" : {
31
+ "success" : " PR title is valid" ,
32
+ "failure" : " PR title is invalid" ,
33
+ "notice" : " "
34
+ }
35
+ }
Original file line number Diff line number Diff line change 1
1
## Checklist
2
2
3
3
_ check the box if it is not applicable to your changes_
4
- - [ ] The title of my PR follows the [ conventional commits] ( https://www.conventionalcommits.org/en/v1.0.0/ ) convention
5
4
- [ ] I have updated the README with the necessary documentation
6
5
- [ ] I have added unit tests
7
6
- [ ] I have added [ end-to-end tests] ( test/test_skim.py )
Original file line number Diff line number Diff line change
1
+ name : " PR validation"
2
+ on :
3
+ pull_request_target :
4
+ types :
5
+ - opened
6
+ - edited
7
+ - synchronize
8
+ - labeled
9
+ - unlabeled
10
+
11
+ jobs :
12
+ check :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ pull-requests : write
16
+ steps :
17
+ -
uses :
thehanimo/[email protected]
18
+ with :
19
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
+ pass_on_octokit_error : false
21
+ configuration_path : .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change 8
8
- master
9
9
10
10
jobs :
11
- test :
12
- name : test
11
+ e2e :
13
12
runs-on : ${{matrix.os}}
14
13
strategy :
15
14
matrix :
@@ -54,18 +53,17 @@ jobs:
54
53
toolchain : ${{ matrix.rust }}
55
54
target : ${{ matrix.target }}
56
55
override : true
56
+ - name : Cache
57
+ uses : Swatinem/rust-cache@v2
57
58
- name : Build
58
59
run : cargo build --release
59
60
- name : Run Tests
60
61
run : tmux new-session -d && python3 test/test_skim.py --verbose
61
62
env :
62
63
LC_ALL : en_US.UTF-8
63
64
TERM : xterm-256color
64
- - name : Cache
65
- uses : Swatinem/rust-cache@v1
66
65
67
66
clippy :
68
- name : clippy
69
67
runs-on : ${{matrix.os}}
70
68
strategy :
71
69
matrix :
@@ -111,13 +109,12 @@ jobs:
111
109
target : ${{ matrix.target }}
112
110
override : true
113
111
components : clippy
112
+ - name : Cache
113
+ uses : Swatinem/rust-cache@v2
114
114
- name : Clippy
115
115
run : cargo clippy
116
- - name : Cache
117
- uses : Swatinem/rust-cache@v1
118
116
119
117
rustfmt :
120
- name : rustfmt
121
118
runs-on : ubuntu-latest
122
119
steps :
123
120
- name : Checkout repository
You can’t perform that action at this time.
0 commit comments