Skip to content

Commit

Permalink
Add: custom report name (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcrespi committed Jan 3, 2023
1 parent 762c364 commit 0169eb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ inputs:
description: Defines the ktlint version to use
required: false
default: 'latest'
name:
description: Reviewdog report name
required: false
default: 'ktlint'
file_glob:
description: Optionally defines a file glob to identify files to be checked
required: false
Expand All @@ -61,6 +65,7 @@ runs:
- ${{ inputs.android }}
- ${{ inputs.baseline }}
- ${{ inputs.ktlint_version }}
- ${{ inputs.name }}
branding:
icon: 'edit'
color: 'blue'
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ echo ktlint version: "$(ktlint --version)"

ktlint --reporter=checkstyle $RELATIVE $ANDROID $BASELINE $INPUT_FILE_GLOB |
reviewdog -f=checkstyle \
-name="ktlint" \
-name="${INPUT_NAME}" \
-reporter="${INPUT_REPORTER}" \
-level="${INPUT_LEVEL}" \
-filter-mode="${INPUT_FILTER_MODE}" \
Expand Down

0 comments on commit 0169eb4

Please sign in to comment.