From 42c8e386543e89d7a4d9a31bc98688a4897cab66 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 14:07:03 +0000 Subject: [PATCH 1/5] Initial plan From 9116e21216341bb88645cfecd4f3f7e69448ca3b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 14:12:46 +0000 Subject: [PATCH 2/5] Prepare action metadata/docs/CI for v0.13 release tagging Agent-Logs-Url: https://github.com/JetBrains/ReSharper-InspectCode/sessions/c1b483bc-a20b-4509-b1fd-006096ab069a Co-authored-by: derigel23 <175250+derigel23@users.noreply.github.com> --- .github/workflows/action-ci.yml | 30 ++++++++++++++++++++++++++++++ README.md | 22 +++++++++++++++++++--- action.yml | 31 ++++++++++++++++++++++++++++--- 3 files changed, 77 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/action-ci.yml diff --git a/.github/workflows/action-ci.yml b/.github/workflows/action-ci.yml new file mode 100644 index 0000000..3b07aa4 --- /dev/null +++ b/.github/workflows/action-ci.yml @@ -0,0 +1,30 @@ +name: Action CI + +on: + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + smoke-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run action smoke test + id: inspectcode + uses: ./ + with: + help: "True" + format: "Text" + output: "inspectcode.txt" + + - name: Validate action outputs + shell: bash + run: | + test "${{ steps.inspectcode.outputs.report-file }}" = "inspectcode.txt" + test "${{ steps.inspectcode.outputs.report-format }}" = "Text" diff --git a/README.md b/README.md index d0a5784..96f2e3c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ jobs: - name: Annotate # You may pin to the exact commit or the version. - uses: JetBrains/ReSharper-InspectCode@v0.11 + uses: JetBrains/ReSharper-InspectCode@v0.13 with: solution: ./YourSolution.sln @@ -41,7 +41,7 @@ jobs: Use [`with`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepswith) to define any action parameters: ```yaml with: - tool-version: 2025.2.3 + tool-version: 2025.3.3 ``` You can use GitHub Workflow editor to get a list of all supported inputs with descriptions. |Name |Description |Default | @@ -80,4 +80,20 @@ You can use GitHub Workflow editor to get a list of all supported inputs with de |`build` |Build solution before processing |True | |`target` |MsBuild target to execute before processing. |Build | |`solution` |Solution file | | -|`tool-version` |Tool Version |2025.2.3 | +|`tool-version` |Tool Version |2025.3.3 | +|`dotnet-version` |.NET SDK version used to install and run ReSharper command line tools |8.0.x | + +## Outputs + +|Name |Description | +|----------------|------------------------------------------------| +|`report-file` |Path to the generated inspection report file | +|`report-format` |Output format used for the inspection report | + +## Release process for `v0.13` + +This PR prepares the repository for the `v0.13` action release. + +After this PR is merged into `main`: +1. Create the `v0.13` tag on the merge commit. +2. Optionally create a GitHub Release for `v0.13`. diff --git a/action.yml b/action.yml index 512b290..7006805 100644 --- a/action.yml +++ b/action.yml @@ -87,6 +87,16 @@ inputs: tool-version: description: Tool Version default: "2025.3.3" + dotnet-version: + description: .NET SDK version used to install and run ReSharper command line tools + default: "8.0.x" +outputs: + report-file: + description: Path to the generated inspection report file + value: ${{ steps.inspectcode.outputs.report-file }} + report-format: + description: Output format used for the inspection report + value: ${{ steps.inspectcode.outputs.report-format }} runs: using: composite steps: @@ -98,6 +108,7 @@ runs: shell: bash run: dotnet tool install JetBrains.ReSharper.GlobalTools --global --version ${{ inputs.tool-version }} - name: Inspect code with ReSharper + id: inspectcode shell: pwsh env: INPUT_settings: ${{ inputs.settings }} @@ -133,10 +144,24 @@ runs: INPUT_no-build: ${{ inputs.no-build }} INPUT_build: ${{ inputs.build }} INPUT_target: ${{ inputs.target }} + INPUT_solution: ${{ inputs.solution }} run: |- - $command = "jb inspectcode ${{ inputs.solution }}" - dir env:INPUT_* | Where-Object Value | %{ $command += " --$($_.Name -replace "^INPUT_")=$($_.Value)" } - Invoke-Expression $command + $arguments = @() + Get-ChildItem env:INPUT_* | Where-Object Value | ForEach-Object { + $optionName = $_.Name -replace "^INPUT_" + if ($optionName -ne "solution") { + $arguments += "--$optionName=$($_.Value)" + } + } + + if ("${{ inputs.solution }}") { + & jb inspectcode "${{ inputs.solution }}" @arguments + } else { + & jb inspectcode @arguments + } + + "report-file=${{ inputs.output }}" >> $env:GITHUB_OUTPUT + "report-format=${{ inputs.format }}" >> $env:GITHUB_OUTPUT - name: Upload SARIF file if: inputs.format == 'Sarif' uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4 From 31d90f8a09f63c02bd8ea3f6c3313d521e3493b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 14:15:00 +0000 Subject: [PATCH 3/5] Preserve inspectcode exit code in action script Agent-Logs-Url: https://github.com/JetBrains/ReSharper-InspectCode/sessions/c1b483bc-a20b-4509-b1fd-006096ab069a Co-authored-by: derigel23 <175250+derigel23@users.noreply.github.com> --- action.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 7006805..5033a4f 100644 --- a/action.yml +++ b/action.yml @@ -147,19 +147,24 @@ runs: INPUT_solution: ${{ inputs.solution }} run: |- $arguments = @() + $positionalInputs = @("solution") Get-ChildItem env:INPUT_* | Where-Object Value | ForEach-Object { $optionName = $_.Name -replace "^INPUT_" - if ($optionName -ne "solution") { + if ($optionName -notin $positionalInputs) { $arguments += "--$optionName=$($_.Value)" } } - if ("${{ inputs.solution }}") { - & jb inspectcode "${{ inputs.solution }}" @arguments + if ($env:INPUT_solution) { + & jb inspectcode "$env:INPUT_solution" @arguments } else { & jb inspectcode @arguments } + if ($LASTEXITCODE -ne 0) { + exit $LASTEXITCODE + } + "report-file=${{ inputs.output }}" >> $env:GITHUB_OUTPUT "report-format=${{ inputs.format }}" >> $env:GITHUB_OUTPUT - name: Upload SARIF file From 80a6bd24eacf64bc1171389e9274e91b26f8befc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 14:26:11 +0000 Subject: [PATCH 4/5] feat: change dotnet-version default to 10.x Agent-Logs-Url: https://github.com/JetBrains/ReSharper-InspectCode/sessions/b49cec98-9b3e-4402-ae40-557f44490faa Co-authored-by: derigel23 <175250+derigel23@users.noreply.github.com> --- README.md | 2 +- action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 96f2e3c..3597524 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ You can use GitHub Workflow editor to get a list of all supported inputs with de |`target` |MsBuild target to execute before processing. |Build | |`solution` |Solution file | | |`tool-version` |Tool Version |2025.3.3 | -|`dotnet-version` |.NET SDK version used to install and run ReSharper command line tools |8.0.x | +|`dotnet-version` |.NET SDK version used to install and run ReSharper command line tools |10.x | ## Outputs diff --git a/action.yml b/action.yml index 5033a4f..af6bebc 100644 --- a/action.yml +++ b/action.yml @@ -89,7 +89,7 @@ inputs: default: "2025.3.3" dotnet-version: description: .NET SDK version used to install and run ReSharper command line tools - default: "8.0.x" + default: "10.x" outputs: report-file: description: Path to the generated inspection report file From 1332e76d3fdd1a9af5e0cfff531436b6733472b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 14:30:28 +0000 Subject: [PATCH 5/5] feat: change tool-version default to 2026.1.0.1 Agent-Logs-Url: https://github.com/JetBrains/ReSharper-InspectCode/sessions/824f8982-7466-4ada-b107-d5a3c5c52e4e Co-authored-by: derigel23 <175250+derigel23@users.noreply.github.com> --- README.md | 4 ++-- action.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3597524..5e1bf47 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ jobs: Use [`with`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepswith) to define any action parameters: ```yaml with: - tool-version: 2025.3.3 + tool-version: 2026.1.0.1 ``` You can use GitHub Workflow editor to get a list of all supported inputs with descriptions. |Name |Description |Default | @@ -80,7 +80,7 @@ You can use GitHub Workflow editor to get a list of all supported inputs with de |`build` |Build solution before processing |True | |`target` |MsBuild target to execute before processing. |Build | |`solution` |Solution file | | -|`tool-version` |Tool Version |2025.3.3 | +|`tool-version` |Tool Version |2026.1.0.1 | |`dotnet-version` |.NET SDK version used to install and run ReSharper command line tools |10.x | ## Outputs diff --git a/action.yml b/action.yml index af6bebc..c27b834 100644 --- a/action.yml +++ b/action.yml @@ -86,7 +86,7 @@ inputs: description: Solution file tool-version: description: Tool Version - default: "2025.3.3" + default: "2026.1.0.1" dotnet-version: description: .NET SDK version used to install and run ReSharper command line tools default: "10.x"