mirror of
https://github.com/giraffate/clippy-action.git
synced 2024-11-22 07:59:32 +01:00
97971a550f
GitHub intends for every GitHub Action to migrate to Node 20 by Spring 2024, and we are on Spring 2024. To move forward and do not cause inconveniences to users (due to the deprecation warning that this action shows when used on workflows) and GitHub (so that they don't have reasons to delay the upgrade), let's update this action to use Node 20. As far as I can see, this action does not need any code changes to work under a Node 20 runtime. Fixes #86.
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: 'Run Clippy with reviewdog'
|
|
description: '🐶 Run Clippy with reviewdog on pull requests to improve code review experience'
|
|
author: 'Takayuki Nakata'
|
|
branding:
|
|
icon: "check-circle"
|
|
color: "blue"
|
|
inputs:
|
|
github_token:
|
|
description: "GITHUB_TOKEN."
|
|
required: false
|
|
default: ${{ github.token }}
|
|
clippy_flags:
|
|
description: "clippy flags. (cargo clippy --color never -q --message-format json `<clippy_flags>`)"
|
|
required: false
|
|
default: ""
|
|
tool_name:
|
|
description: "Tool name to use for reviewdog reporter"
|
|
required: false
|
|
default: "clippy"
|
|
level:
|
|
description: "Report level for reviewdog [info,warning,error]"
|
|
required: false
|
|
default: "error"
|
|
reporter:
|
|
description: "Reporter of reviewdog command [github-pr-check,github-pr-review,github-check]."
|
|
required: false
|
|
default: "github-pr-check"
|
|
filter_mode:
|
|
description: |
|
|
Filtering for the reviewdog command [added,diff_context,file,nofilter].
|
|
Default is added.
|
|
required: false
|
|
default: "added"
|
|
fail_on_error:
|
|
description: |
|
|
Exit code for reviewdog when errors are found [true,false]
|
|
Default is `false`.
|
|
required: false
|
|
default: "false"
|
|
reviewdog_flags:
|
|
description: "Additional reviewdog flags"
|
|
required: false
|
|
default: ""
|
|
workdir:
|
|
description: "Working directory relative to the root directory."
|
|
required: false
|
|
default: "."
|
|
reviewdog_version:
|
|
description: "the version of reviewdog"
|
|
required: false
|
|
default: latest
|
|
runs:
|
|
using: 'node20'
|
|
main: 'dist/index.js'
|