From 5ea01b76e409ede949b4f0a7320636771e20a626 Mon Sep 17 00:00:00 2001 From: Vitalij Berdinskih Date: Thu, 29 May 2025 21:35:18 +0300 Subject: [PATCH 1/3] Tools aren't required --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6066efd..77bc934 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,6 @@ steps: | Input | Required | Default | Description | | ----- | -------- | ------- | ----------- | | `project_token` | Yes | - | The project token for your Codacy project. | -| `tool` | Yes | - | The tool to use for analysis. | +| `tool` | No | - | The tool to use for analysis. | | `upload_report` | No | false | Whether to upload the report to Codacy. | | `sarif_file_path` | No | "./report.sarif" | The path to the SARIF file to upload. | From ec85c011ab687b647eca46ddc9c9dbe14cfa8fdd Mon Sep 17 00:00:00 2001 From: Vitalij Berdinskih Date: Thu, 29 May 2025 22:10:57 +0300 Subject: [PATCH 2/3] Revert previous wrong fix, add eslist as default value for --- README.md | 6 +++--- action.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 77bc934..3d1717c 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,9 @@ steps: ## Inputs -| Input | Required | Default | Description | -| ----- | -------- | ------- | ----------- | +| Input | Required | Default | Description | +| ----- | -------- | ------ |-------------------------------| | `project_token` | Yes | - | The project token for your Codacy project. | -| `tool` | No | - | The tool to use for analysis. | +| `tool` | Yes | eslint | The tool to use for analysis. | | `upload_report` | No | false | Whether to upload the report to Codacy. | | `sarif_file_path` | No | "./report.sarif" | The path to the SARIF file to upload. | diff --git a/action.yml b/action.yml index 5866634..a6d239c 100644 --- a/action.yml +++ b/action.yml @@ -11,7 +11,7 @@ inputs: description: >- Only run a specific tool or tool category (eslint, stylelint, etc). For the full list of tools, see https://docs.codacy.com/repositories-configure/codacy-configuration-file/#which-tools-can-be-configured-and-which-name-should-i-use - default: "eslint" + default: "eslint" sarif_file_path: required: false description: >- From 2fa067b8b113cde8629d27cfc856cead51788bb7 Mon Sep 17 00:00:00 2001 From: Vitalij Berdinskih Date: Thu, 29 May 2025 22:16:19 +0300 Subject: [PATCH 3/3] Fix style issue: the parameters' tables --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3d1717c..f6d265a 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ steps: ## Inputs -| Input | Required | Default | Description | -| ----- | -------- | ------ |-------------------------------| +| Input | Required | Default | Description | +| ----- | -------- | ------- | ----------- | | `project_token` | Yes | - | The project token for your Codacy project. | | `tool` | Yes | eslint | The tool to use for analysis. | | `upload_report` | No | false | Whether to upload the report to Codacy. |