From c27b8c07a10fd50032775dbde8f5fe0ff1e40252 Mon Sep 17 00:00:00 2001 From: Tomasz Michalak Date: Thu, 21 Nov 2024 14:33:39 +0100 Subject: [PATCH] Add input parameter for reviewdog reporter --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b4ebd2f..4c3f573 100644 --- a/action.yml +++ b/action.yml @@ -13,6 +13,9 @@ inputs: github_token: description: 'GITHUB_TOKEN' default: '' + reviewdog_reporter: + description: '-reporter option to reviewdog' + default: 'github-pr-review' fail_on_formatting_suggestions: description: 'If there are any formatting issues in the codebase, the action will return with an error' required: false @@ -93,7 +96,7 @@ runs: echo "running reviewdog" reviewdog -name="verible-verilog-format" \ -f=diff -f.diff.strip=1 \ - -reporter="github-pr-review" \ + -reporter="${{ inputs.reviewdog_reporter }}" \ -filter-mode="diff_context" \ -level="info" \ -diff="$diff_cmd" \