From b73a1551054b5a000512f15cef06b56c2d469aae Mon Sep 17 00:00:00 2001 From: thorstenalpers Date: Mon, 26 May 2025 09:18:12 +0200 Subject: [PATCH 1/4] Fix tests --- src/Tests/Services/XScriptServiceTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tests/Services/XScriptServiceTests.cs b/src/Tests/Services/XScriptServiceTests.cs index 10dd417..ee17325 100644 --- a/src/Tests/Services/XScriptServiceTests.cs +++ b/src/Tests/Services/XScriptServiceTests.cs @@ -57,7 +57,7 @@ public async Task ShowLikesAsync_NavigatesToCorrectUrl() var task = _service.ShowLikesAsync(); await Task.Delay(10); - Assert.Contains("x.com/testuser/likes", _webViewHostServiceMock.Object.Source.ToString()); + Assert.Contains("/likes", _webViewHostServiceMock.Object.Source.ToString()); } [Fact] @@ -73,7 +73,7 @@ public async Task ShowFollowingAsync_NavigatesToCorrectUrl() var task = _service.ShowFollowingAsync(); await Task.Delay(10); - Assert.Contains("x.com/testuser/following", _webViewHostServiceMock.Object.Source.ToString()); + Assert.Contains("following", _webViewHostServiceMock.Object.Source.ToString()); } [Fact] From a7cbefe6cfd9b74f55bb1a55ce388cf52c17842d Mon Sep 17 00:00:00 2001 From: thorstenalpers Date: Mon, 26 May 2025 09:32:33 +0200 Subject: [PATCH 2/4] Remove sonar scanner --- .github/workflows/ci.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 624b46b..44a36e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,25 +30,12 @@ jobs: run: | dotnet new tool-manifest dotnet tool install dotnet-reportgenerator-globaltool - dotnet tool install dotnet-sonarscanner - name: Restore run: dotnet restore "${{ env.Solution }}" - - name: Build and Test with SonarQube - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Build and Test run: | - dotnet tool run dotnet-sonarscanner begin ` - /k:"thorstenalpers_CleanMyPosts" ` - /o:"thorstenalpers" ` - /d:sonar.token="${{ secrets.SONAR_TOKEN }}" ` - /d:sonar.host.url="https://sonarcloud.io" ` - /d:sonar.sources="src" ` - /d:sonar.tests="src/Tests" ` - /d:sonar.test.inclusions="**/*Tests.cs" ` - /d:sonar.coverageReportPaths="TestResults/Reports/SonarQube.xml" - dotnet build "${{ env.Solution }}" --configuration Release --no-restore dotnet test "${{ env.Test_Project }}" ` @@ -61,9 +48,7 @@ jobs: dotnet tool run reportgenerator ` -reports:TestResults/**/coverage.cobertura.xml ` -targetdir:TestResults/Reports ` - -reporttypes:"Html;lcov;SonarQube;Cobertura" ` - - dotnet tool run dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" + -reporttypes:"Html;lcov;Cobertura" ` - name: Upload Test Coverage Report uses: actions/upload-artifact@v4 From 13395cf34cd8f62f86151f0ab65602550fc95a7c Mon Sep 17 00:00:00 2001 From: thorstenalpers Date: Mon, 26 May 2025 09:36:21 +0200 Subject: [PATCH 3/4] Use html release notes --- release-notes/v1.0.3.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/release-notes/v1.0.3.md b/release-notes/v1.0.3.md index ff6a1a9..5a54c99 100644 --- a/release-notes/v1.0.3.md +++ b/release-notes/v1.0.3.md @@ -1,4 +1,5 @@ -### What's Changed - -* Fix: Resolved issue where cleaning actions failed on non-English operating systems. -* Improvement: Added retry logic (up to 3 attempts) for deleting posts, likes, or followings when initially not found. +

What's Changed

+
    +
  • Fix: Resolved issue where cleaning actions failed on non-English operating systems.
  • +
  • Improvement: Added retry logic (up to 3 attempts) for deleting posts, likes, or followings when initially not found.
  • +
From 69ca3982d18313a2fc4bbafa28fd4b90b9760deb Mon Sep 17 00:00:00 2001 From: thorstenalpers Date: Mon, 26 May 2025 09:43:09 +0200 Subject: [PATCH 4/4] Use markdown syntax, since autoupdater doesnt support html --- release-notes/v1.0.3.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/release-notes/v1.0.3.md b/release-notes/v1.0.3.md index 5a54c99..260fc5f 100644 --- a/release-notes/v1.0.3.md +++ b/release-notes/v1.0.3.md @@ -1,5 +1,4 @@ -

What's Changed

-
    -
  • Fix: Resolved issue where cleaning actions failed on non-English operating systems.
  • -
  • Improvement: Added retry logic (up to 3 attempts) for deleting posts, likes, or followings when initially not found.
  • -
+### What's Changed + +* **Fix:** Resolved issue where cleaning actions failed on non-English operating systems. +* **Improvement:** Added retry logic (up to 3 attempts) for deleting posts, likes, or followings when initially not found.