forked from reviewdog/action-rubocop
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
45 lines (45 loc) · 1.34 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'Run rubocop with reviewdog'
description: '🐶 Run rubocop with reviewdog on pull requests to improve code review experience.'
author: 'mgrachev (reviewdog)'
inputs:
github_token:
description: 'GITHUB_TOKEN.'
required: true
rubocop_flags:
description: 'rubocop flags. (rubocop <rubocop_flags>)'
default: ''
tool_name:
description: 'Tool name to use for reviewdog reporter'
default: 'rubocop'
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
reporter:
description: |
Reporter of reviewdog command [github-pr-check,github-pr-review].
Default is github-pr-check.
default: 'github-pr-check'
rubocop_version:
description: 'Rubocop version'
rubocop_extensions:
description: 'Rubocop extensions'
default: 'rubocop-rails rubocop-performance rubocop-rspec rubocop-i18n rubocop-rake'
fail_on_error:
description: |
Exit code for reviewdog when errors are found [true,false]
Default is `true`.
default: 'true'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.github_token }}
- ${{ inputs.rubocop_flags }}
- ${{ inputs.tool_name }}
- ${{ inputs.level }}
- ${{ inputs.reporter }}
- ${{ inputs.rubocop_version }}
- ${{ inputs.rubocop_extensions }}
branding:
icon: 'check-circle'
color: 'red'