forked from reviewdog/action-rubocop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
33 lines (33 loc) · 948 Bytes
/
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
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'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.github_token }}
- ${{ inputs.rubocop_flags }}
- ${{ inputs.tool_name }}
- ${{ inputs.level }}
- ${{ inputs.reporter }}
branding:
icon: 'check-circle'
color: 'red'