From 09c317638c60b4f20b71e0bbc1fa0bdda84ce1d6 Mon Sep 17 00:00:00 2001 From: Sarah Birrer <95348063+bbtbir@users.noreply.github.com> Date: Fri, 13 Jan 2023 08:25:19 +0100 Subject: [PATCH 01/30] Fix Commit history (#116) * Merge develop to master (#105) * Add mergify file to delete branches after merge * Build with Cake 0.32.1 * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.6.2 to 2.6.3 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.6.2 to 2.6.3. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v2.6.2...v2.6.3) Signed-off-by: dependabot[bot] * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.6.3 to 2.9.0 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.6.3 to 2.9.0. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Commits](https://github.com/dotnet/roslyn-analyzers/commits) Signed-off-by: dependabot[bot] * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.0 to 2.9.1 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.0 to 2.9.1. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v2.9.0...v2.9.1) Signed-off-by: dependabot[bot] * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.1 to 2.9.2 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.1 to 2.9.2. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v2.9.1...v2.9.2) Signed-off-by: dependabot[bot] * (GH-35) Fix repository link in NuGet package * (GH-37) Use embedded license for NuGet package * Disable documentation for tasks * Pin build script to Cake.Recipe 1.0.0 * Exclude Shouldly from code coverage * Bump StyleCop.Analyzers from 1.0.2 to 1.1.118 in /src Bumps [StyleCop.Analyzers](https://github.com/DotNetAnalyzers/StyleCopAnalyzers) from 1.0.2 to 1.1.118. - [Release notes](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/releases) - [Commits](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.0.2...1.1.118) Signed-off-by: dependabot[bot] * Fix StyleCop warnings * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.2 to 2.9.3 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.2 to 2.9.3. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v2.9.2...v2.9.3) Signed-off-by: dependabot-preview[bot] * Enable Codecov * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.3 to 2.9.4 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.3 to 2.9.4. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Commits](https://github.com/dotnet/roslyn-analyzers/commits) Signed-off-by: dependabot-preview[bot] * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.4 to 2.9.5 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.4 to 2.9.5. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/master/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v2.9.4...v2.9.5) Signed-off-by: dependabot-preview[bot] * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.5 to 2.9.6 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.5 to 2.9.6. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/master/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v2.9.5...v2.9.6) Signed-off-by: dependabot-preview[bot] * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.6 to 2.9.7 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.6 to 2.9.7. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/master/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v2.9.6...v2.9.7) Signed-off-by: dependabot-preview[bot] * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.7 to 2.9.8 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.7 to 2.9.8. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/master/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/commits) Signed-off-by: dependabot-preview[bot] * Update bootstrapper * Change name of build script to recipe.cake * Add code owners * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.8 to 3.0.0 in /src Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 2.9.8 to 3.0.0. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/master/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v2.9.8...v3.0.0) Signed-off-by: dependabot-preview[bot] * Update code owners to team (#57) * Create Dependabot config file (#58) Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * Bump xunit.runner.visualstudio from 2.4.1 to 2.4.2 in /src (#59) * Bump xunit.runner.visualstudio from 2.4.1 to 2.4.2 in /src Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.1 to 2.4.2. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/commits/v2.4.2) Signed-off-by: dependabot-preview[bot] * Add Microsoft.NET.Test.Sdk * Target netcoreapp2.1 for tests Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Pascal Berger * Bump xunit.runner.visualstudio from 2.4.2 to 2.4.3 in /src (#60) Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.2 to 2.4.3. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/v2.4.2...v2.4.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.0 in /src (#61) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.6.1 to 16.7.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.6.1...v16.7.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk from 16.7.0 to 16.7.1 in /src (#63) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.7.0 to 16.7.1. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.7.0...v16.7.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 3.0.0 to 3.3.0 in /src (#62) Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 3.0.0 to 3.3.0. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/master/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v3.0.0...v3.3.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: eoehen <49316770+eoehen@users.noreply.github.com> * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 3.3.0 to 3.3.1 in /src (#64) Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 3.3.0 to 3.3.1. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/master/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v3.3.0...v3.3.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk from 16.7.1 to 16.8.0 in /src (#65) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.7.1 to 16.8.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.7.1...v16.8.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Shouldly from 3.0.2 to 4.0.0 in /src (#66) Bumps [Shouldly](https://github.com/shouldly/shouldly) from 3.0.2 to 4.0.0. - [Release notes](https://github.com/shouldly/shouldly/releases) - [Changelog](https://github.com/shouldly/shouldly/blob/master/BREAKING%20CHANGES.txt) - [Commits](https://github.com/shouldly/shouldly/compare/v3.0.2...v4.0.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add DiffEngine to testCoverageFilter (#67) * Add EmptyFiles to testCoverageFilter (#68) * Bump Shouldly from 4.0.0 to 4.0.1 in /src (#69) Bumps [Shouldly](https://github.com/shouldly/shouldly) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/shouldly/shouldly/releases) - [Changelog](https://github.com/shouldly/shouldly/blob/master/BREAKING%20CHANGES.txt) - [Commits](https://github.com/shouldly/shouldly/compare/v4.0.0...v4.0.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk from 16.8.0 to 16.8.3 in /src (#70) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.8.0 to 16.8.3. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.8.0...v16.8.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 3.3.1 to 3.3.2 in /src (#71) Bumps [Microsoft.CodeAnalysis.FxCopAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 3.3.1 to 3.3.2. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/master/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v3.3.1...v3.3.2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: eoehen <49316770+eoehen@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk from 16.8.3 to 16.9.1 in /src (#74) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.8.3 to 16.9.1. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.8.3...v16.9.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Shouldly from 4.0.1 to 4.0.3 in /src (#73) * Bump Shouldly from 4.0.1 to 4.0.3 in /src Bumps [Shouldly](https://github.com/shouldly/shouldly) from 4.0.1 to 4.0.3. - [Release notes](https://github.com/shouldly/shouldly/releases) - [Changelog](https://github.com/shouldly/shouldly/blob/master/BREAKING%20CHANGES.txt) - [Commits](https://github.com/shouldly/shouldly/compare/v4.0.1...v4.0.3) Signed-off-by: dependabot[bot] * Update TfsUrlParser.Tests.csproj Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: eoehen <49316770+eoehen@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4 in /src (#75) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.1 to 16.9.4. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.9.1...v16.9.4) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk from 16.9.4 to 17.3.2 in /src (#87) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.4 to 17.3.2. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.9.4...v17.3.2) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Shouldly from 4.0.3 to 4.1.0 in /src (#85) Bumps [Shouldly](https://github.com/shouldly/shouldly) from 4.0.3 to 4.1.0. - [Release notes](https://github.com/shouldly/shouldly/releases) - [Changelog](https://github.com/shouldly/shouldly/blob/master/BREAKING%20CHANGES.txt) - [Commits](https://github.com/shouldly/shouldly/compare/v4.0.3...4.1.0) --- updated-dependencies: - dependency-name: Shouldly dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump xunit from 2.4.1 to 2.4.2 in /src (#83) Bumps [xunit](https://github.com/xunit/xunit) from 2.4.1 to 2.4.2. - [Release notes](https://github.com/xunit/xunit/releases) - [Commits](https://github.com/xunit/xunit/compare/2.4.1...2.4.2) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * update to cake.tools #88 (#89) * update to cake.tools #88 * update .appveyor.yml * remove warnings * add GenerateAssemblyInfo * remove packages.xml (#90) * Delete .appveyor.yml * remove cake and build with dotnet build (#96) * Build with Github Workflows #92 (#93) * Create main.yml * build with GitHub Action * Create release.yml * Documentation moved ro README.md * remove cake and build with dotnet build * add dotnet build workflow * add testcoverage * naming * added release * Update Badges * removed comments * add source url for GetBuildVersion * update API and tasks added * Feature/improve workflow (#98) * bugfix powershell comment * branch rename * Bump xunit.runner.visualstudio from 2.4.3 to 2.4.5 in /src (#81) Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.3 to 2.4.5. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/commits) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Improve readme (#99) * build on push develop branch (#100) * Bump coverlet.collector from 1.0.1 to 3.2.0 in /src (#102) Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 1.0.1 to 3.2.0. - [Release notes](https://github.com/coverlet-coverage/coverlet/releases) - [Commits](https://github.com/coverlet-coverage/coverlet/compare/v1.0.1...v3.2.0) --- updated-dependencies: - dependency-name: coverlet.collector dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * moved codecov.yml (#101) * build on push develop branch * moved codecov.yml * Improve Readme.md #103 (#104) * Improve Readme.md #103 * remove .travis.yml Signed-off-by: dependabot[bot] Signed-off-by: dependabot-preview[bot] Signed-off-by: dependabot[bot] Co-authored-by: Pascal Berger Co-authored-by: Pascal Berger Co-authored-by: dependabot[bot] Co-authored-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: eoehen <49316770+eoehen@users.noreply.github.com> Co-authored-by: Matthias Hirschi * Release 1.4.1 * fix readme.md Signed-off-by: dependabot[bot] Signed-off-by: dependabot-preview[bot] Signed-off-by: dependabot[bot] Co-authored-by: Pascal Berger Co-authored-by: Pascal Berger Co-authored-by: dependabot[bot] Co-authored-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: eoehen <49316770+eoehen@users.noreply.github.com> Co-authored-by: Matthias Hirschi --- nuspec/nuget/TfsUrlParser.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuspec/nuget/TfsUrlParser.nuspec b/nuspec/nuget/TfsUrlParser.nuspec index 0979659..3c2456e 100644 --- a/nuspec/nuget/TfsUrlParser.nuspec +++ b/nuspec/nuget/TfsUrlParser.nuspec @@ -23,4 +23,4 @@ - \ No newline at end of file + From ceb90cf3c6aef4ab3e9f6dabccae0e7ce0774a43 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Feb 2023 13:58:52 +0100 Subject: [PATCH 02/30] Bump Microsoft.NET.Test.Sdk from 17.4.1 to 17.5.0 in /src (#117) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.4.1 to 17.5.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.4.1...v17.5.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 1a89d44..2a267a7 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -23,7 +23,7 @@ - + all From 1e9296b1eecd021911736be940234508af4596f0 Mon Sep 17 00:00:00 2001 From: mom-bbtsoftware <122623555+mom-bbtsoftware@users.noreply.github.com> Date: Thu, 9 Mar 2023 16:54:36 +0100 Subject: [PATCH 03/30] Use dotnet pack command (#118) (#119) --- .github/workflows/release.yml | 4 +-- nuspec/nuget/TfsUrlParser.nuspec | 26 -------------------- src/TfsUrlParser/TfsUrlParser.csproj | 25 +++++++++++++------ {nuspec/nuget => src/TfsUrlParser}/icon.png | Bin 4 files changed, 19 insertions(+), 36 deletions(-) delete mode 100644 nuspec/nuget/TfsUrlParser.nuspec rename {nuspec/nuget => src/TfsUrlParser}/icon.png (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 465ffaa..bae15c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,7 @@ jobs: uses: NuGet/setup-nuget@v1 - name: Package NuGet - run: nuget pack ../nuspec/nuget/*.nuspec + run: dotnet pack -c $BUILD_CONFIG -p:PackageVersion=$BUILD_VERSION - name: Publish NuGet - run: nuget push ./*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}} + run: nuget push ./TfsUrlParser/bin/Release/TfsUrlParser.$BUILD_VERSION.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}} diff --git a/nuspec/nuget/TfsUrlParser.nuspec b/nuspec/nuget/TfsUrlParser.nuspec deleted file mode 100644 index 3c2456e..0000000 --- a/nuspec/nuget/TfsUrlParser.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - TfsUrlParser - Azure DevOps URL Parser - 1.4.1 - BBT Software AG - bbtsoftware, pascalberger - Provides a parser for Azure DevOps and Azure DevOps Server URLs. - Provides a parser to get repository information from an Azure DevOps and Azure DevOps Server URLs. - MIT - https://github.com/bbtsoftware/TfsUrlParser/ - - https://raw.githubusercontent.com/bbtsoftware/TfsUrlParser/fdaa354eef80c05070c93ef14b6774abe7eeac73/nuspec/nuget/icon.png - false - - Copyright © BBT Software AG - AzureDevOps Git Parser - https://github.com/bbtsoftware/TfsUrlParser/releases/tag/1.4.1 - - - - - - - diff --git a/src/TfsUrlParser/TfsUrlParser.csproj b/src/TfsUrlParser/TfsUrlParser.csproj index f344adb..ad24192 100644 --- a/src/TfsUrlParser/TfsUrlParser.csproj +++ b/src/TfsUrlParser/TfsUrlParser.csproj @@ -1,19 +1,28 @@  - - netstandard2.0 - + netstandard2.0 TfsUrlParser - BBT Software AG - TfsUrlParser - Azure DevOps URL Parser URL Parser - Copyright © BBT Software AG ..\TfsUrlParser.ruleset bin\$(Configuration)\TfsUrlParser.XML bin\$(Configuration)\ true - true + + + + TfsUrlParser + Azure DevOps URL Parser + TfsUrlParser + BBT Software AG + BBT Software AG + Copyright © BBT Software AG + AzureDevOps Git Parser + icon.png + https://github.com/bbtsoftware/TfsUrlParser/ + MIT + git + https://github.com/bbtsoftware/TfsUrlParser.git + https://github.com/bbtsoftware/TfsUrlParser/releases/tag/1.4.1 diff --git a/nuspec/nuget/icon.png b/src/TfsUrlParser/icon.png similarity index 100% rename from nuspec/nuget/icon.png rename to src/TfsUrlParser/icon.png From 02c6b3fc960f0b17cd4c0ae663d21d2e8c41a903 Mon Sep 17 00:00:00 2001 From: mom-bbtsoftware <122623555+mom-bbtsoftware@users.noreply.github.com> Date: Fri, 17 Mar 2023 08:28:44 +0100 Subject: [PATCH 04/30] Fix dotnet pack #120 (#121) --- src/TfsUrlParser/TfsUrlParser.csproj | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/TfsUrlParser/TfsUrlParser.csproj b/src/TfsUrlParser/TfsUrlParser.csproj index ad24192..fcf7254 100644 --- a/src/TfsUrlParser/TfsUrlParser.csproj +++ b/src/TfsUrlParser/TfsUrlParser.csproj @@ -4,27 +4,34 @@ netstandard2.0 TfsUrlParser ..\TfsUrlParser.ruleset - bin\$(Configuration)\TfsUrlParser.XML + bin\$(Configuration)\TfsUrlParser.xml bin\$(Configuration)\ true - TfsUrlParser - Azure DevOps URL Parser + Azure DevOps URL Parser + Provides a parser to get repository information from an Azure DevOps and Azure DevOps Server URLs. TfsUrlParser BBT Software AG BBT Software AG Copyright © BBT Software AG + TfsUrlParser AzureDevOps Git Parser icon.png https://github.com/bbtsoftware/TfsUrlParser/ MIT + false git https://github.com/bbtsoftware/TfsUrlParser.git https://github.com/bbtsoftware/TfsUrlParser/releases/tag/1.4.1 + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb;.xml + + + + all From 0d14245bebc82f671a1f0469249871667e803217 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Apr 2023 17:15:56 +0200 Subject: [PATCH 05/30] Bump Shouldly from 4.1.0 to 4.2.0 in /src (#122) Bumps [Shouldly](https://github.com/shouldly/shouldly) from 4.1.0 to 4.2.0. - [Release notes](https://github.com/shouldly/shouldly/releases) - [Changelog](https://github.com/shouldly/shouldly/blob/master/BREAKING%20CHANGES.txt) - [Commits](https://github.com/shouldly/shouldly/compare/4.1.0...4.2.0) --- updated-dependencies: - dependency-name: Shouldly dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 2a267a7..d719449 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -1,4 +1,4 @@ - + Net6.0 @@ -22,7 +22,7 @@ - + From cd3540ff7dab8166dd0cd361c34b5d43efeaf09e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:15:17 +0200 Subject: [PATCH 06/30] Bump xunit from 2.4.2 to 2.5.0 in /src (#130) Bumps [xunit](https://github.com/xunit/xunit) from 2.4.2 to 2.5.0. - [Commits](https://github.com/xunit/xunit/compare/2.4.2...2.5.0) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index d719449..e2dce8f 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -24,7 +24,7 @@ - + all From 2ccb34641810100e346e62b89dabced7b4d0047a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:16:54 +0200 Subject: [PATCH 07/30] Bump Shouldly from 4.2.0 to 4.2.1 in /src (#123) Bumps [Shouldly](https://github.com/shouldly/shouldly) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/shouldly/shouldly/releases) - [Changelog](https://github.com/shouldly/shouldly/blob/master/BREAKING%20CHANGES.txt) - [Commits](https://github.com/shouldly/shouldly/compare/4.2.0...4.2.1) --- updated-dependencies: - dependency-name: Shouldly dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index e2dce8f..e806dd4 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -22,7 +22,7 @@ - + From 2bc7c1a97a920f35430f310e82dbaeeb7d3202c6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:35:15 +0200 Subject: [PATCH 08/30] Bump coverlet.collector from 3.2.0 to 6.0.0 in /src (#125) Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.2.0 to 6.0.0. - [Release notes](https://github.com/coverlet-coverage/coverlet/releases) - [Commits](https://github.com/coverlet-coverage/coverlet/compare/v3.2.0...v6.0.0) --- updated-dependencies: - dependency-name: coverlet.collector dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index e806dd4..0bc4d52 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -28,7 +28,7 @@ all - + From 23171d7704f9aa607b580fc7a66a6532a01873a6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:35:27 +0200 Subject: [PATCH 09/30] Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 in /src (#129) * Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 in /src Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.5 to 2.5.0. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/v2.4.5...2.5.0) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 in /src --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sarah Birrer Co-authored-by: Sarah Birrer <95348063+bbtbir@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 0bc4d52..72a35bb 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -25,7 +25,7 @@ - + all From 4deff0a64529600498edeb763510ccfdf229f586 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:37:01 +0200 Subject: [PATCH 10/30] Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.3 in /src (#128) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.5.0 to 17.6.3. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.5.0...v17.6.3) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sarah Birrer <95348063+bbtbir@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 72a35bb..c7db85d 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -23,7 +23,7 @@ - + all From 68f5fb23da50a5402736a52898aff51503090137 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:37:34 +0200 Subject: [PATCH 11/30] Bump xunit.runner.visualstudio from 2.5.0 to 2.5.1 in /src (#133) Bumps [xunit.runner.visualstudio](https://github.com/xunit/xunit) from 2.5.0 to 2.5.1. - [Commits](https://github.com/xunit/xunit/compare/2.5.0...2.5.1) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index c7db85d..e0260f8 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -25,7 +25,7 @@ - + all From bc80376e0901ed05fcd37aed6d15c870fb032ccb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:44:07 +0200 Subject: [PATCH 12/30] Bump xunit from 2.5.0 to 2.5.1 in /src (#132) Bumps [xunit](https://github.com/xunit/xunit) from 2.5.0 to 2.5.1. - [Commits](https://github.com/xunit/xunit/compare/2.5.0...2.5.1) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index e0260f8..b2688d9 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -24,7 +24,7 @@ - + all From 315aaf2aeeb406279ed9b344f7c83c1b431397b5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:45:59 +0200 Subject: [PATCH 13/30] Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.2 in /src (#131) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.6.3 to 17.7.2. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.6.3...v17.7.2) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index b2688d9..8fd22f2 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -23,7 +23,7 @@ - + all From 88ecf23a94cc63096dce10a62d3df1c6465ba5fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:22:18 +0000 Subject: [PATCH 14/30] Bump xunit from 2.5.1 to 2.6.3 in /src Bumps [xunit](https://github.com/xunit/xunit) from 2.5.1 to 2.6.3. - [Commits](https://github.com/xunit/xunit/compare/2.5.1...2.6.3) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 8fd22f2..66d467d 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -24,7 +24,7 @@ - + all From 2722411b5b826ed0e8b317127f2cb4d85ca5405e Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Wed, 20 Dec 2023 12:05:19 +0000 Subject: [PATCH 15/30] Update both code and tests to enable use with all TFS URL's not just Repositories. This better matches the name and implied function of the tool. Note: Im not happy with line 31! "if (repoUrl.ToString().Contains("_git"))" --- .../RepositoryDescriptionTests.cs | 115 +++++++++++++++++- src/TfsUrlParser/RepositoryDescription.cs | 27 +++- 2 files changed, 133 insertions(+), 9 deletions(-) diff --git a/src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs b/src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs index bacb2e8..4948d84 100644 --- a/src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs +++ b/src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs @@ -7,9 +7,6 @@ public class RepositoryDescriptionTests { [Theory] - [InlineData( - @"http://myserver:8080/tfs/defaultcollection/myproject/", - "No valid Git repository URL.")] [InlineData( @"http://myserver:8080/tfs/defaultcollection/myproject/_git", "No valid Git repository URL.")] @@ -25,6 +22,7 @@ public void Should_Throw_If_No_Valid_Url(string repoUrl, string expectedMessage) var result = Record.Exception(() => new RepositoryDescription(new Uri(repoUrl))); // Then + result.IsUriFormatExceptionException(expectedMessage); } @@ -192,6 +190,117 @@ public void Should_Parse_Repo_Url( repositoryDescription.ProjectName.ShouldBe(projectName); repositoryDescription.RepositoryName.ShouldBe(repositoryName); repositoryDescription.RepositoryUrl.ShouldBe(new Uri(repositoryUrl)); + repositoryDescription.IsRepository.ShouldBe(true); } + + [Theory] + [InlineData( + @"http://myserver:8080/tfs/defaultcollection/myproject/", + @"http://myserver:8080/", + "defaultcollection", + @"http://myserver:8080/tfs/defaultcollection", + "myproject")] + [InlineData( + @"http://tfs.myserver/defaultcollection/myproject/", + @"http://tfs.myserver/", + "defaultcollection", + @"http://tfs.myserver/defaultcollection", + "myproject")] + [InlineData( + @"http://mytenant.visualstudio.com/defaultcollection/myproject/", + @"http://mytenant.visualstudio.com/", + "defaultcollection", + @"http://mytenant.visualstudio.com/defaultcollection", + "myproject")] + [InlineData( + @"http://tfs.foo.com/foo/foo", + @"http://tfs.foo.com/", + "foo", + @"http://tfs.foo.com/foo", + "foo")] + [InlineData( + @"https://myserver:8080/tfs/defaultcollection/myproject/", + @"https://myserver:8080/", + "defaultcollection", + @"https://myserver:8080/tfs/defaultcollection", + "myproject")] + [InlineData( + @"https://tfs.myserver/defaultcollection/myproject/", + @"https://tfs.myserver/", + "defaultcollection", + @"https://tfs.myserver/defaultcollection", + "myproject")] + [InlineData( + @"https://mytenant.visualstudio.com/defaultcollection/myproject/", + @"https://mytenant.visualstudio.com/", + "defaultcollection", + @"https://mytenant.visualstudio.com/defaultcollection", + "myproject")] + [InlineData( + @"https://tfs.foo.com/foo/foo/", + @"https://tfs.foo.com/", + "foo", + @"https://tfs.foo.com/foo", + "foo")] + [InlineData( + @"ssh://myserver:8080/tfs/defaultcollection/myproject/", + @"ssh://myserver:8080/", + "defaultcollection", + @"https://myserver:8080/tfs/defaultcollection", + "myproject")] + [InlineData( + @"ssh://tfs.myserver/defaultcollection/myproject/", + @"ssh://tfs.myserver/", + "defaultcollection", + @"https://tfs.myserver/defaultcollection", + "myproject")] + [InlineData( + @"ssh://mytenant.visualstudio.com/defaultcollection/myproject/", + @"ssh://mytenant.visualstudio.com/", + "defaultcollection", + @"https://mytenant.visualstudio.com/defaultcollection", + "myproject")] + [InlineData( + @"ssh://tfs.foo.com/foo/foo/", + @"ssh://tfs.foo.com/", + "foo", + @"https://tfs.foo.com/foo", + "foo")] + [InlineData( + @"ssh://foo:bar@myserver:8080/tfs/defaultcollection/myproject/", + @"ssh://myserver:8080/", + "defaultcollection", + @"https://myserver:8080/tfs/defaultcollection", + "myproject")] + [InlineData( + @"https://myorganization@dev.azure.com/myorganization/myproject/", + @"https://myorganization@dev.azure.com/", + "myorganization", + @"https://myorganization@dev.azure.com/myorganization", + "myproject")] + [InlineData( + @"https://myorganization.visualstudio.com/myproject/", + @"https://myorganization.visualstudio.com/", + "DefaultCollection", + @"https://myorganization.visualstudio.com", + "myproject")] + public void Should_Parse_NonRepo_Url( + string repoUrl, + string serverUrl, + string collectionName, + string collectionurl, + string projectName) + { + // Given / When + var repositoryDescription = new RepositoryDescription(new Uri(repoUrl)); + + // Then + repositoryDescription.ServerUrl.ShouldBe(new Uri(serverUrl)); + repositoryDescription.CollectionName.ShouldBe(collectionName); + repositoryDescription.CollectionUrl.ShouldBe(new Uri(collectionurl)); + repositoryDescription.ProjectName.ShouldBe(projectName); + repositoryDescription.IsRepository.ShouldBe(false); + } + } } diff --git a/src/TfsUrlParser/RepositoryDescription.cs b/src/TfsUrlParser/RepositoryDescription.cs index fba203f..07e365f 100644 --- a/src/TfsUrlParser/RepositoryDescription.cs +++ b/src/TfsUrlParser/RepositoryDescription.cs @@ -28,9 +28,17 @@ public RepositoryDescription(Uri repoUrl) var gitSeparator = new[] { "/_git/" }; var splitPath = repoUrl.AbsolutePath.Split(gitSeparator, StringSplitOptions.None); - if (splitPath.Length < 2) + if (repoUrl.ToString().Contains("_git")) { - throw new UriFormatException("No valid Git repository URL."); + this.IsRepository = true; + if (splitPath.Length < 2) + { + throw new UriFormatException("No valid Git repository URL."); + } + + } else + { + this.IsRepository = false; } this.ServerUrl = new Uri(repoUrl.GetComponents(UriComponents.SchemeAndServer, UriFormat.Unescaped)); @@ -56,11 +64,13 @@ public RepositoryDescription(Uri repoUrl) { throw new UriFormatException("No valid Git repository URL containing default collection and project name."); } - - var splitLastPart = splitPath[1].Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries); - this.ProjectName = splitFirstPart.Last(); - this.RepositoryName = splitLastPart.First(); + + if (this.IsRepository) + { + var splitLastPart = splitPath[1].Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries); + this.RepositoryName = splitLastPart.First(); + } } /// @@ -94,6 +104,11 @@ public RepositoryDescription(Uri repoUrl) /// public Uri RepositoryUrl { get; private set; } + /// + /// Get a value that indicates if this is a Git Repo or another TFS URL. + /// + public bool IsRepository { get; private set; } + /// /// Converts the repository URL to a supported scheme if possible. /// From 8775900868f66f334d5a32e6406e3b001ae32076 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:01:04 +0200 Subject: [PATCH 16/30] Bump Microsoft.NET.Test.Sdk from 17.7.2 to 17.9.0 in /src (#149) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.7.2 to 17.9.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.7.2...v17.9.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 66d467d..c6d921f 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -23,7 +23,7 @@ - + all From 36c3fe4fb56e88b49135fb73ee7c681ed834e494 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:10:16 +0200 Subject: [PATCH 17/30] Bump xunit.runner.visualstudio from 2.5.1 to 2.5.7 in /src (#150) Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.5.1 to 2.5.7. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/2.5.1...2.5.7) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index c6d921f..56a0ba0 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -25,7 +25,7 @@ - + all From 1a964afe318db8f8ed20686f38d9e49af83108ed Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:15:11 +0200 Subject: [PATCH 18/30] Bump xunit from 2.6.3 to 2.7.0 in /src (#151) Bumps [xunit](https://github.com/xunit/xunit) from 2.6.3 to 2.7.0. - [Commits](https://github.com/xunit/xunit/compare/2.6.3...2.7.0) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sarah Birrer <95348063+bbtbir@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 56a0ba0..583ef22 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -24,7 +24,7 @@ - + all From 1df08c92dc54db43351ccf3af66a59b0f5bf3900 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:17:50 +0200 Subject: [PATCH 19/30] Bump coverlet.collector from 6.0.0 to 6.0.2 in /src (#153) Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 6.0.0 to 6.0.2. - [Release notes](https://github.com/coverlet-coverage/coverlet/releases) - [Commits](https://github.com/coverlet-coverage/coverlet/compare/v6.0.0...v6.0.2) --- updated-dependencies: - dependency-name: coverlet.collector dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 583ef22..0248971 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -28,7 +28,7 @@ all - + From 68086cc4829ae2ceaf2738944bd6e7d4248c6a2b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:14:10 +0200 Subject: [PATCH 20/30] Bump xunit.runner.visualstudio from 2.5.7 to 2.8.0 in /src (#157) Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.5.7 to 2.8.0. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/2.5.7...2.8.0) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 0248971..a192aad 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -25,7 +25,7 @@ - + all From 6a549d4f8933959c7a115aa16dedbc7cd1d1a8e4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:26:40 +0200 Subject: [PATCH 21/30] Bump xunit from 2.7.0 to 2.8.0 in /src (#156) Bumps [xunit](https://github.com/xunit/xunit) from 2.7.0 to 2.8.0. - [Commits](https://github.com/xunit/xunit/compare/2.7.0...2.8.0) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index a192aad..9b59a57 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -24,7 +24,7 @@ - + all From f58fa63105cc97e53331e6472b2bd4af9cda8727 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:27:25 +0200 Subject: [PATCH 22/30] Bump xunit.runner.visualstudio from 2.8.0 to 2.8.1 in /src (#160) Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.8.0 to 2.8.1. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/2.8.0...2.8.1) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 9b59a57..5185afb 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -25,7 +25,7 @@ - + all From fa1c1726e34cb1b1fff7a567a89f4195854938fb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:27:56 +0200 Subject: [PATCH 23/30] Bump Microsoft.NET.Test.Sdk from 17.9.0 to 17.10.0 in /src (#158) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.9.0 to 17.10.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.9.0...v17.10.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 5185afb..3015599 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -23,7 +23,7 @@ - + all From e88c63b289c85bd5e44a43b3a195a08c5acd99a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:31:42 +0200 Subject: [PATCH 24/30] Bump xunit from 2.8.0 to 2.9.0 in /src (#162) Bumps xunit from 2.8.0 to 2.9.0. --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 3015599..1f2ae26 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -24,7 +24,7 @@ - + all From 5d7856fb2b4599ff905c937336cce827873dba4c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:35:43 +0200 Subject: [PATCH 25/30] Bump xunit.runner.visualstudio from 2.8.1 to 2.8.2 in /src (#161) Bumps xunit.runner.visualstudio from 2.8.1 to 2.8.2. --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 1f2ae26..4421599 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -25,7 +25,7 @@ - + all From 44c03b0472035e728ec6c6f25c1615c355bb2469 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:39:14 +0200 Subject: [PATCH 26/30] Bump xunit from 2.8.0 to 2.8.1 in /src (#159) Bumps [xunit](https://github.com/xunit/xunit) from 2.8.0 to 2.8.1. - [Commits](https://github.com/xunit/xunit/compare/2.8.0...2.8.1) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sarah Birrer <95348063+bbtbir@users.noreply.github.com> From a2ae731c466539b5139902158c72d5dd11fe84d2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:34:43 +0000 Subject: [PATCH 27/30] Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.0 in /src Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.10.0 to 17.11.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.10.0...v17.11.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj index 4421599..c71dfc6 100644 --- a/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj +++ b/src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj @@ -23,7 +23,7 @@ - + all From f640b8368fb21b2db82f47c42cd3c1d46bbb2c58 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Tue, 27 Aug 2024 09:18:16 +0100 Subject: [PATCH 28/30] =?UTF-8?q?Update=20for=20@christianbumann=20comment?= =?UTF-8?q?=20on=20`/=5Fgit/`:=20=F0=9F=90=9B=20(RepositoryDescription.cs)?= =?UTF-8?q?:=20fix=20incorrect=20URL=20check=20for=20Git=20repository?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correct the URL check to ensure it accurately identifies Git repository URLs. The previous condition was too broad and could lead to false positives. The updated condition checks for the specific "/_git/" segment, ensuring more precise validation. --- src/TfsUrlParser/RepositoryDescription.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TfsUrlParser/RepositoryDescription.cs b/src/TfsUrlParser/RepositoryDescription.cs index 07e365f..5c6076e 100644 --- a/src/TfsUrlParser/RepositoryDescription.cs +++ b/src/TfsUrlParser/RepositoryDescription.cs @@ -28,14 +28,13 @@ public RepositoryDescription(Uri repoUrl) var gitSeparator = new[] { "/_git/" }; var splitPath = repoUrl.AbsolutePath.Split(gitSeparator, StringSplitOptions.None); - if (repoUrl.ToString().Contains("_git")) + if (repoUrl.ToString().Contains("/_git/")) { this.IsRepository = true; if (splitPath.Length < 2) { throw new UriFormatException("No valid Git repository URL."); } - } else { this.IsRepository = false; From fb0b9c43837389c7d1be4505a4e987f670475de5 Mon Sep 17 00:00:00 2001 From: Christian Bumann Date: Mon, 2 Sep 2024 19:32:51 +0200 Subject: [PATCH 29/30] Remove wrong test Remove wrong test --- src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs | 3 --- src/TfsUrlParser/RepositoryDescription.cs | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs b/src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs index 4948d84..b5cb7ef 100644 --- a/src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs +++ b/src/TfsUrlParser.Tests/RepositoryDescriptionTests.cs @@ -7,9 +7,6 @@ public class RepositoryDescriptionTests { [Theory] - [InlineData( - @"http://myserver:8080/tfs/defaultcollection/myproject/_git", - "No valid Git repository URL.")] [InlineData( @"http://myserver:8080/_git/myrepository", "No valid Git repository URL containing default collection and project name.")] diff --git a/src/TfsUrlParser/RepositoryDescription.cs b/src/TfsUrlParser/RepositoryDescription.cs index 5c6076e..29941b4 100644 --- a/src/TfsUrlParser/RepositoryDescription.cs +++ b/src/TfsUrlParser/RepositoryDescription.cs @@ -35,7 +35,8 @@ public RepositoryDescription(Uri repoUrl) { throw new UriFormatException("No valid Git repository URL."); } - } else + } + else { this.IsRepository = false; } From bde276d9e4ab9a98122a3ae078462adece2cd2e3 Mon Sep 17 00:00:00 2001 From: Christian Bumann Date: Thu, 5 Sep 2024 08:35:13 +0200 Subject: [PATCH 30/30] Update next release number --- src/TfsUrlParser/TfsUrlParser.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TfsUrlParser/TfsUrlParser.csproj b/src/TfsUrlParser/TfsUrlParser.csproj index fcf7254..3c7534b 100644 --- a/src/TfsUrlParser/TfsUrlParser.csproj +++ b/src/TfsUrlParser/TfsUrlParser.csproj @@ -24,7 +24,7 @@ false git https://github.com/bbtsoftware/TfsUrlParser.git - https://github.com/bbtsoftware/TfsUrlParser/releases/tag/1.4.1 + https://github.com/bbtsoftware/TfsUrlParser/releases/tag/1.5.0 $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb;.xml