File tree 2 files changed +28
-24
lines changed
2 files changed +28
-24
lines changed Original file line number Diff line number Diff line change 69
69
working-directory : ./template-compose
70
70
run : ./gradlew koverMergedXmlReport
71
71
72
- - name : Set up Ruby
73
- uses : ruby/setup-ruby@v1
74
- with :
75
- ruby-version : ' 2.7'
76
-
77
- - name : Cache gems
78
- uses : actions/cache@v2
79
- with :
80
- path : vendor/bundle
81
- key : ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
82
- restore-keys : |
83
- ${{ runner.os }}-gems-
84
-
85
- - name : Install Bundle and check environment versions
86
- run : |
87
- echo 'Install Bundle'
88
- bundle config path vendor/bundle
89
- bundle install
90
- echo 'Check environment setup versions'
91
- ruby --version
92
- gem --version
93
- bundler --version
94
-
95
72
- name : Run Danger
73
+ uses : danger/kotlin@1.2.0
96
74
env :
97
75
DANGER_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98
- run : bundle exec danger
Original file line number Diff line number Diff line change
1
+ import systems.danger.kotlin.*
2
+
3
+ danger(args) {
4
+ onGitHub {
5
+ // Make it more obvious that a PR is a work in progress and shouldn't be merged yet
6
+ if (pullRequest.title.contains(" WIP" )) {
7
+ warn(" PR is classed as Work in Progress" )
8
+ }
9
+
10
+ // Warn to encourage a PR description
11
+ if (pullRequest.body.isBlank()) {
12
+ warn(" Please provide a summary in the PR description to make it easier to review" )
13
+ }
14
+
15
+ // Warn to encourage that labels should have been used on the PR
16
+ if (pullRequest.labels.isEmpty()) {
17
+ warn(" Please add labels to this PR" )
18
+ }
19
+ }
20
+
21
+ onGit {
22
+ // Warn when there is a big PR
23
+ if (lineOfCode > 500 ) {
24
+ warn(" Big PR" )
25
+ }
26
+ }
27
+ }
You can’t perform that action at this time.
0 commit comments