From 5eefc61cf09b62c49246aaf5cc58b4bb0be8af97 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 12:28:44 +0100 Subject: [PATCH 01/18] Fix Nameing Convention's in Different Files --- .../Models/Branches/Requests/ProtectBranchRequest.cs | 6 +++--- .../Branches/Responses/ProtectedRefAccessLevels.cs | 8 ++++---- .../Models/Commits/Responses/CommitStatuses.cs | 10 +++++----- src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs | 4 ++-- .../Models/Tags/Requests/TagQueryOptions.cs | 4 ++-- src/GitLabApiClient/Models/Tags/Requests/TagSort.cs | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/GitLabApiClient/Models/Branches/Requests/ProtectBranchRequest.cs b/src/GitLabApiClient/Models/Branches/Requests/ProtectBranchRequest.cs index 522e31af..f709dc19 100644 --- a/src/GitLabApiClient/Models/Branches/Requests/ProtectBranchRequest.cs +++ b/src/GitLabApiClient/Models/Branches/Requests/ProtectBranchRequest.cs @@ -22,9 +22,9 @@ public sealed class ProtectBranchRequest /// Access levels allowed to unprotect. public ProtectBranchRequest( string name, - ProtectedRefAccessLevels? pushAccessLevel = ProtectedRefAccessLevels.MAINTAINER_ACCESS, - ProtectedRefAccessLevels? mergeAccessLevel = ProtectedRefAccessLevels.MAINTAINER_ACCESS, - ProtectedRefAccessLevels? unprotectAccessLevel = ProtectedRefAccessLevels.MAINTAINER_ACCESS) + ProtectedRefAccessLevels? pushAccessLevel = ProtectedRefAccessLevels.MaintainerAccess, + ProtectedRefAccessLevels? mergeAccessLevel = ProtectedRefAccessLevels.MaintainerAccess, + ProtectedRefAccessLevels? unprotectAccessLevel = ProtectedRefAccessLevels.MaintainerAccess) { Guard.NotEmpty(name, nameof(name)); diff --git a/src/GitLabApiClient/Models/Branches/Responses/ProtectedRefAccessLevels.cs b/src/GitLabApiClient/Models/Branches/Responses/ProtectedRefAccessLevels.cs index 33deff10..4bd68839 100644 --- a/src/GitLabApiClient/Models/Branches/Responses/ProtectedRefAccessLevels.cs +++ b/src/GitLabApiClient/Models/Branches/Responses/ProtectedRefAccessLevels.cs @@ -6,9 +6,9 @@ namespace GitLabApiClient.Models.Branches.Responses { public enum ProtectedRefAccessLevels { - NO_ACCESS = 0, - DEVELOPER_ACCESS = 30, - MAINTAINER_ACCESS = 40, - ADMIN_ACCESS = 60 + NoAccess = 0, + DeveloperAccess = 30, + MaintainerAccess = 40, + AdminAccess = 60 } } diff --git a/src/GitLabApiClient/Models/Commits/Responses/CommitStatuses.cs b/src/GitLabApiClient/Models/Commits/Responses/CommitStatuses.cs index 6f8e07c8..6ed7ed97 100644 --- a/src/GitLabApiClient/Models/Commits/Responses/CommitStatuses.cs +++ b/src/GitLabApiClient/Models/Commits/Responses/CommitStatuses.cs @@ -19,17 +19,17 @@ public sealed class CommitStatuses [JsonProperty("name")] public string Name { get; set; } [JsonProperty("target_url")] - public string Target_url { get; set; } + public string TargetUrl { get; set; } [JsonProperty("description")] public string Description { get; set; } [JsonProperty("created_at")] - public DateTime Created_at { get; set; } + public DateTime CreatedAt { get; set; } [JsonProperty("started_at")] - public DateTime Started_at { get; set; } + public DateTime StartedAt { get; set; } [JsonProperty("finished_at")] - public DateTime Finished_at { get; set; } + public DateTime FinishedAt { get; set; } [JsonProperty("allow_failure")] - public bool Allow_failure { get; set; } + public bool AllowFailure { get; set; } [JsonProperty("coverage")] public float Coverage { get; set; } [JsonProperty("author")] diff --git a/src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs b/src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs index 1c73b61d..54905ec0 100644 --- a/src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs +++ b/src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs @@ -6,7 +6,7 @@ namespace GitLabApiClient.Models.Tags.Requests { public enum TagOrder { - NAME, - UPDATED + Name, + Updated } } diff --git a/src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs b/src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs index 3672d5d4..07fc4e11 100644 --- a/src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs +++ b/src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs @@ -7,8 +7,8 @@ namespace GitLabApiClient.Models.Tags.Requests public sealed class TagQueryOptions { public string Search { get; set; } - public TagOrder OrderBy { get; set; } = TagOrder.NAME; - public TagSort Sort { get; set; } = TagSort.DESC; + public TagOrder OrderBy { get; set; } = TagOrder.Name; + public TagSort Sort { get; set; } = TagSort.Desc; internal TagQueryOptions() { diff --git a/src/GitLabApiClient/Models/Tags/Requests/TagSort.cs b/src/GitLabApiClient/Models/Tags/Requests/TagSort.cs index b70368ff..eec5f174 100644 --- a/src/GitLabApiClient/Models/Tags/Requests/TagSort.cs +++ b/src/GitLabApiClient/Models/Tags/Requests/TagSort.cs @@ -6,7 +6,7 @@ namespace GitLabApiClient.Models.Tags.Requests { public enum TagSort { - ASC, - DESC + Asc, + Desc } } From 617a48e9f1d020cf0d156cd6da239f440b74a3b1 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 12:58:45 +0100 Subject: [PATCH 02/18] Rethrow exeption Do Not: try { // Do stuff that might throw an exception } catch (Exception e) { throw e; // This destroys the strack trace information! } --- src/GitLabApiClient/RunnersClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitLabApiClient/RunnersClient.cs b/src/GitLabApiClient/RunnersClient.cs index d9e302a4..d47e8d1d 100644 --- a/src/GitLabApiClient/RunnersClient.cs +++ b/src/GitLabApiClient/RunnersClient.cs @@ -92,7 +92,7 @@ public async Task VerifyAuthenticationAsync(string token) if (e.HttpStatusCode == System.Net.HttpStatusCode.Forbidden) return false; else - throw e; + throw; } } } From ec01d18e5570fb8dbcba41e89f245e79795483c8 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 13:03:19 +0100 Subject: [PATCH 03/18] Add Stats Values To Commit --- .../Models/Commits/Responses/Commit.cs | 2 ++ .../Models/Commits/Responses/CommitStats.cs | 17 +++++++++++++++++ test/GitLabApiClient.Test/CommitsClientTest.cs | 4 ++-- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs diff --git a/src/GitLabApiClient/Models/Commits/Responses/Commit.cs b/src/GitLabApiClient/Models/Commits/Responses/Commit.cs index 9b1d50fe..cd38c34f 100644 --- a/src/GitLabApiClient/Models/Commits/Responses/Commit.cs +++ b/src/GitLabApiClient/Models/Commits/Responses/Commit.cs @@ -34,6 +34,8 @@ public sealed class Commit public List ParentIds { get; } = new List(); [JsonProperty("web_url")] public string WebUrl { get; set; } + [JsonProperty("stats")] + public string CommitStats { get; set; } } } diff --git a/src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs b/src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs new file mode 100644 index 00000000..8bed091f --- /dev/null +++ b/src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Newtonsoft.Json; + +namespace GitLabApiClient.Models.Commits.Responses +{ + public class CommitStats + { + [JsonProperty("additions")] + public int Additions { get; set; } + [JsonProperty("deletions")] + public int Deletions { get; set; } + [JsonProperty("total")] + public int Total { get; set; } + } +} diff --git a/test/GitLabApiClient.Test/CommitsClientTest.cs b/test/GitLabApiClient.Test/CommitsClientTest.cs index 5c7005de..a4dc63f8 100644 --- a/test/GitLabApiClient.Test/CommitsClientTest.cs +++ b/test/GitLabApiClient.Test/CommitsClientTest.cs @@ -121,12 +121,12 @@ public async void GetStatusesForCommit() var statusesFromClient = await commitsClient.GetStatusesAsync(projectId, sha, o => o.Name = Name); statusesFromClient[0].Status.Should().BeEquivalentTo("success"); statusesFromClient[0].Name.Should().BeEquivalentTo("name1"); - statusesFromClient[0].Target_url.Should().BeEquivalentTo("target_url1"); + statusesFromClient[0].TargetUrl.Should().BeEquivalentTo("target_url1"); statusesFromClient[0].Id.Should().BeEquivalentTo("1"); statusesFromClient[1].Status.Should().BeEquivalentTo("success"); statusesFromClient[1].Name.Should().BeEquivalentTo("name2"); - statusesFromClient[1].Target_url.Should().BeEquivalentTo("target_url2"); + statusesFromClient[1].TargetUrl.Should().BeEquivalentTo("target_url2"); statusesFromClient[1].Id.Should().BeEquivalentTo("2"); } From 975d57d06e61b9d443a40980c61231619ef987df Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 13:07:53 +0100 Subject: [PATCH 04/18] Remove unused usings --- src/GitLabApiClient/FilesClient.cs | 1 - src/GitLabApiClient/GitLabClient.cs | 2 -- src/GitLabApiClient/IBranchClient.cs | 2 -- src/GitLabApiClient/ICommitsClient.cs | 2 -- src/GitLabApiClient/IGroupsClient.cs | 1 - src/GitLabApiClient/IReleaseClient.cs | 3 --- src/GitLabApiClient/ITagClient.cs | 2 -- src/GitLabApiClient/IWebhookClient.cs | 2 -- src/GitLabApiClient/Internal/Http/GitlabApiRequestor.cs | 1 - src/GitLabApiClient/Internal/Queries/CommitQueryBuilder.cs | 4 ---- src/GitLabApiClient/Internal/Queries/ReleaseQueryBuilder.cs | 3 --- src/GitLabApiClient/Internal/Queries/ReleasesQueryBuilder.cs | 4 ---- src/GitLabApiClient/Internal/Queries/TagQueryBuilder.cs | 3 --- src/GitLabApiClient/Internal/Queries/TreeQueryBuilder.cs | 4 ---- src/GitLabApiClient/Models/AccessLevel.cs | 2 -- .../Models/Branches/Requests/BranchQueryOptions.cs | 4 ---- .../Models/Branches/Requests/CreateBranchRequest.cs | 3 --- .../Models/Branches/Requests/ProtectBranchRequest.cs | 3 --- src/GitLabApiClient/Models/Branches/Responses/Branch.cs | 3 --- .../Models/Branches/Responses/ProtectedBranch.cs | 3 --- .../Models/Branches/Responses/ProtectedRefAccessLevels.cs | 4 ---- .../Models/Branches/Responses/PushAccessLevel.cs | 3 --- .../Models/Commits/Requests/CommitQueryOptions.cs | 2 -- .../Models/Commits/Requests/CommitStatusesQueryOptions.cs | 4 ---- src/GitLabApiClient/Models/Commits/Responses/Commit.cs | 2 -- src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs | 3 --- .../Models/Commits/Responses/CommitStatuses.cs | 3 --- src/GitLabApiClient/Models/Commits/Responses/Diff.cs | 4 ---- .../Models/Groups/Requests/AddGroupMemberRequest.cs | 1 - .../Models/Groups/Requests/UpdateGroupMilestoneRequest.cs | 1 - .../Models/Groups/Requests/UpdateGroupRequest.cs | 1 - .../Models/Issues/Requests/UpdateIssueRequest.cs | 1 - src/GitLabApiClient/Models/Issues/Responses/ClosedBy.cs | 3 --- .../Models/Markdown/Request/RenderMarkdownRequest.cs | 3 --- src/GitLabApiClient/Models/Markdown/Response/Markdown.cs | 3 --- .../Models/MergeRequests/Requests/AcceptMergeRequest.cs | 1 - .../Models/MergeRequests/Requests/UpdateMergeRequest.cs | 1 - .../Models/Notes/Requests/CreateIssueNoteRequest.cs | 1 - .../Models/Notes/Requests/CreateMergeRequestNoteRequest.cs | 1 - .../Models/Pipelines/Responses/PipelineDetail.cs | 3 --- .../Models/Projects/Requests/CreateProjectLabelRequest.cs | 1 - .../Models/Projects/Requests/ImportProjectRequest.cs | 1 - .../Models/Projects/Requests/UpdateProjectLabelRequest.cs | 1 - .../Projects/Requests/UpdateProjectMilestoneRequest.cs | 1 - src/GitLabApiClient/Models/Projects/Responses/ExportLinks.cs | 2 -- .../Models/Projects/Responses/ExportStatus.cs | 2 -- .../Models/Projects/Responses/ImportStatus.cs | 2 -- .../Models/Releases/Requests/CreateReleaseRequest.cs | 2 -- .../Models/Releases/Requests/ReleaseQueryOptions.cs | 5 ----- .../Models/Releases/Requests/UpdateReleaseRequest.cs | 2 -- src/GitLabApiClient/Models/Releases/Responses/Asset.cs | 3 --- src/GitLabApiClient/Models/Releases/Responses/Commit.cs | 3 --- src/GitLabApiClient/Models/Releases/Responses/Link.cs | 3 --- src/GitLabApiClient/Models/Releases/Responses/Release.cs | 2 -- src/GitLabApiClient/Models/Releases/Responses/Source.cs | 3 --- .../Models/Runners/Requests/CreateRunnerRequest.cs | 2 -- .../Models/Runners/Requests/UpdateRunnerRequest.cs | 2 -- src/GitLabApiClient/Models/Tags/Requests/CreateTagRequest.cs | 3 --- src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs | 4 ---- src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs | 4 ---- src/GitLabApiClient/Models/Tags/Requests/TagSort.cs | 4 ---- src/GitLabApiClient/Models/Tags/Responses/Tag.cs | 3 --- .../Models/Trees/Requests/TreeQueryOptions.cs | 4 ---- src/GitLabApiClient/Models/Trees/Responses/Tree.cs | 4 ---- .../Models/Uploads/Requests/CreateUploadRequest.cs | 3 --- src/GitLabApiClient/Models/Uploads/Responses/Upload.cs | 4 ---- src/GitLabApiClient/ProjectsClient.cs | 1 - src/GitLabApiClient/RunnersClient.cs | 3 --- src/GitLabApiClient/WebhookClient.cs | 4 +--- test/GitLabApiClient.Test/CommitsClientTest.cs | 1 - test/GitLabApiClient.Test/ProjectsClientTest.cs | 2 -- test/GitLabApiClient.Test/ReleasesTest.cs | 2 -- test/GitLabApiClient.Test/TagsClientTest.cs | 1 - test/GitLabApiClient.Test/UploadsClientTest.cs | 3 --- .../GitLabApiClient.Test/Utilities/GitLabContainerFixture.cs | 1 - 75 files changed, 1 insertion(+), 184 deletions(-) diff --git a/src/GitLabApiClient/FilesClient.cs b/src/GitLabApiClient/FilesClient.cs index 9265ac5f..57e14f8c 100644 --- a/src/GitLabApiClient/FilesClient.cs +++ b/src/GitLabApiClient/FilesClient.cs @@ -3,7 +3,6 @@ using GitLabApiClient.Internal.Paths; using GitLabApiClient.Internal.Utilities; using GitLabApiClient.Models.Files.Responses; -using GitLabApiClient.Models.Projects.Responses; namespace GitLabApiClient { diff --git a/src/GitLabApiClient/GitLabClient.cs b/src/GitLabApiClient/GitLabClient.cs index 7bc32feb..63705304 100644 --- a/src/GitLabApiClient/GitLabClient.cs +++ b/src/GitLabApiClient/GitLabClient.cs @@ -5,10 +5,8 @@ using GitLabApiClient.Internal.Http.Serialization; using GitLabApiClient.Internal.Queries; using GitLabApiClient.Internal.Utilities; -using GitLabApiClient.Models.Job.Requests; using GitLabApiClient.Models.Oauth.Requests; using GitLabApiClient.Models.Oauth.Responses; -using GitLabApiClient.Models.Pipelines.Requests; namespace GitLabApiClient { diff --git a/src/GitLabApiClient/IBranchClient.cs b/src/GitLabApiClient/IBranchClient.cs index 88230a26..0bad2f82 100644 --- a/src/GitLabApiClient/IBranchClient.cs +++ b/src/GitLabApiClient/IBranchClient.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using GitLabApiClient.Internal.Http; using GitLabApiClient.Internal.Paths; -using GitLabApiClient.Internal.Queries; using GitLabApiClient.Models.Branches.Requests; using GitLabApiClient.Models.Branches.Responses; using GitLabApiClient.Models.Projects.Responses; diff --git a/src/GitLabApiClient/ICommitsClient.cs b/src/GitLabApiClient/ICommitsClient.cs index f3124b17..ff8f1bad 100644 --- a/src/GitLabApiClient/ICommitsClient.cs +++ b/src/GitLabApiClient/ICommitsClient.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using GitLabApiClient.Internal.Http; using GitLabApiClient.Internal.Paths; -using GitLabApiClient.Internal.Queries; using GitLabApiClient.Models.Commits.Requests; using GitLabApiClient.Models.Commits.Responses; using GitLabApiClient.Models.Projects.Responses; diff --git a/src/GitLabApiClient/IGroupsClient.cs b/src/GitLabApiClient/IGroupsClient.cs index 86914060..f25490fa 100644 --- a/src/GitLabApiClient/IGroupsClient.cs +++ b/src/GitLabApiClient/IGroupsClient.cs @@ -8,7 +8,6 @@ using GitLabApiClient.Models.Milestones.Requests; using GitLabApiClient.Models.Milestones.Responses; using GitLabApiClient.Models.Projects.Responses; -using GitLabApiClient.Models.Runners.Requests; using GitLabApiClient.Models.Runners.Responses; namespace GitLabApiClient diff --git a/src/GitLabApiClient/IReleaseClient.cs b/src/GitLabApiClient/IReleaseClient.cs index c549440a..6afdedd1 100644 --- a/src/GitLabApiClient/IReleaseClient.cs +++ b/src/GitLabApiClient/IReleaseClient.cs @@ -1,10 +1,7 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using GitLabApiClient.Internal.Http; using GitLabApiClient.Internal.Paths; -using GitLabApiClient.Internal.Queries; -using GitLabApiClient.Internal.Utilities; using GitLabApiClient.Models.Projects.Responses; using GitLabApiClient.Models.Releases.Requests; using GitLabApiClient.Models.Releases.Responses; diff --git a/src/GitLabApiClient/ITagClient.cs b/src/GitLabApiClient/ITagClient.cs index c8997145..af35dd9f 100644 --- a/src/GitLabApiClient/ITagClient.cs +++ b/src/GitLabApiClient/ITagClient.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using GitLabApiClient.Internal.Http; using GitLabApiClient.Internal.Paths; -using GitLabApiClient.Internal.Queries; using GitLabApiClient.Models.Projects.Responses; using GitLabApiClient.Models.Tags.Requests; using GitLabApiClient.Models.Tags.Responses; diff --git a/src/GitLabApiClient/IWebhookClient.cs b/src/GitLabApiClient/IWebhookClient.cs index d84c1ef5..fa004b35 100644 --- a/src/GitLabApiClient/IWebhookClient.cs +++ b/src/GitLabApiClient/IWebhookClient.cs @@ -1,7 +1,5 @@ -using System; using System.Collections.Generic; using System.Threading.Tasks; -using GitLabApiClient.Internal.Http; using GitLabApiClient.Internal.Paths; using GitLabApiClient.Models.Projects.Responses; using GitLabApiClient.Models.Webhooks.Requests; diff --git a/src/GitLabApiClient/Internal/Http/GitlabApiRequestor.cs b/src/GitLabApiClient/Internal/Http/GitlabApiRequestor.cs index c96f734e..c4d6947f 100644 --- a/src/GitLabApiClient/Internal/Http/GitlabApiRequestor.cs +++ b/src/GitLabApiClient/Internal/Http/GitlabApiRequestor.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Net.Http; using System.Net.Http.Headers; diff --git a/src/GitLabApiClient/Internal/Queries/CommitQueryBuilder.cs b/src/GitLabApiClient/Internal/Queries/CommitQueryBuilder.cs index 78f89adf..8819ea6f 100644 --- a/src/GitLabApiClient/Internal/Queries/CommitQueryBuilder.cs +++ b/src/GitLabApiClient/Internal/Queries/CommitQueryBuilder.cs @@ -1,9 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Internal.Utilities; using GitLabApiClient.Models.Commits.Requests; -using GitLabApiClient.Models.Tags.Requests; namespace GitLabApiClient.Internal.Queries { diff --git a/src/GitLabApiClient/Internal/Queries/ReleaseQueryBuilder.cs b/src/GitLabApiClient/Internal/Queries/ReleaseQueryBuilder.cs index af716d3c..bfb2e78e 100644 --- a/src/GitLabApiClient/Internal/Queries/ReleaseQueryBuilder.cs +++ b/src/GitLabApiClient/Internal/Queries/ReleaseQueryBuilder.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Models.Releases.Requests; namespace GitLabApiClient.Internal.Queries diff --git a/src/GitLabApiClient/Internal/Queries/ReleasesQueryBuilder.cs b/src/GitLabApiClient/Internal/Queries/ReleasesQueryBuilder.cs index b9978f69..044b0b22 100644 --- a/src/GitLabApiClient/Internal/Queries/ReleasesQueryBuilder.cs +++ b/src/GitLabApiClient/Internal/Queries/ReleasesQueryBuilder.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace GitLabApiClient.Internal.Queries { class ReleasesQueryBuilder diff --git a/src/GitLabApiClient/Internal/Queries/TagQueryBuilder.cs b/src/GitLabApiClient/Internal/Queries/TagQueryBuilder.cs index 0aa8b246..ad369736 100644 --- a/src/GitLabApiClient/Internal/Queries/TagQueryBuilder.cs +++ b/src/GitLabApiClient/Internal/Queries/TagQueryBuilder.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Models.Tags.Requests; namespace GitLabApiClient.Internal.Queries diff --git a/src/GitLabApiClient/Internal/Queries/TreeQueryBuilder.cs b/src/GitLabApiClient/Internal/Queries/TreeQueryBuilder.cs index 9425b5b6..60689292 100644 --- a/src/GitLabApiClient/Internal/Queries/TreeQueryBuilder.cs +++ b/src/GitLabApiClient/Internal/Queries/TreeQueryBuilder.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; -using GitLabApiClient.Models.Tags.Requests; using GitLabApiClient.Models.Trees.Requests; namespace GitLabApiClient.Internal.Queries diff --git a/src/GitLabApiClient/Models/AccessLevel.cs b/src/GitLabApiClient/Models/AccessLevel.cs index 542c8c60..a91507e3 100644 --- a/src/GitLabApiClient/Models/AccessLevel.cs +++ b/src/GitLabApiClient/Models/AccessLevel.cs @@ -1,5 +1,3 @@ -using System; - namespace GitLabApiClient.Models { public enum AccessLevel diff --git a/src/GitLabApiClient/Models/Branches/Requests/BranchQueryOptions.cs b/src/GitLabApiClient/Models/Branches/Requests/BranchQueryOptions.cs index 74b5d065..4f367e18 100644 --- a/src/GitLabApiClient/Models/Branches/Requests/BranchQueryOptions.cs +++ b/src/GitLabApiClient/Models/Branches/Requests/BranchQueryOptions.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace GitLabApiClient.Models.Branches.Requests { public sealed class BranchQueryOptions diff --git a/src/GitLabApiClient/Models/Branches/Requests/CreateBranchRequest.cs b/src/GitLabApiClient/Models/Branches/Requests/CreateBranchRequest.cs index 58ec8d74..0babfe58 100644 --- a/src/GitLabApiClient/Models/Branches/Requests/CreateBranchRequest.cs +++ b/src/GitLabApiClient/Models/Branches/Requests/CreateBranchRequest.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Branches/Requests/ProtectBranchRequest.cs b/src/GitLabApiClient/Models/Branches/Requests/ProtectBranchRequest.cs index f709dc19..e9ea51e5 100644 --- a/src/GitLabApiClient/Models/Branches/Requests/ProtectBranchRequest.cs +++ b/src/GitLabApiClient/Models/Branches/Requests/ProtectBranchRequest.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Internal.Utilities; using GitLabApiClient.Models.Branches.Responses; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Branches/Responses/Branch.cs b/src/GitLabApiClient/Models/Branches/Responses/Branch.cs index 332cf954..39604029 100644 --- a/src/GitLabApiClient/Models/Branches/Responses/Branch.cs +++ b/src/GitLabApiClient/Models/Branches/Responses/Branch.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Models.Releases.Responses; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Branches/Responses/ProtectedBranch.cs b/src/GitLabApiClient/Models/Branches/Responses/ProtectedBranch.cs index d2918b0b..e4799b02 100644 --- a/src/GitLabApiClient/Models/Branches/Responses/ProtectedBranch.cs +++ b/src/GitLabApiClient/Models/Branches/Responses/ProtectedBranch.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Branches.Responses diff --git a/src/GitLabApiClient/Models/Branches/Responses/ProtectedRefAccessLevels.cs b/src/GitLabApiClient/Models/Branches/Responses/ProtectedRefAccessLevels.cs index 4bd68839..74d5cf69 100644 --- a/src/GitLabApiClient/Models/Branches/Responses/ProtectedRefAccessLevels.cs +++ b/src/GitLabApiClient/Models/Branches/Responses/ProtectedRefAccessLevels.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace GitLabApiClient.Models.Branches.Responses { public enum ProtectedRefAccessLevels diff --git a/src/GitLabApiClient/Models/Branches/Responses/PushAccessLevel.cs b/src/GitLabApiClient/Models/Branches/Responses/PushAccessLevel.cs index 7630097d..96a60fd4 100644 --- a/src/GitLabApiClient/Models/Branches/Responses/PushAccessLevel.cs +++ b/src/GitLabApiClient/Models/Branches/Responses/PushAccessLevel.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Branches.Responses diff --git a/src/GitLabApiClient/Models/Commits/Requests/CommitQueryOptions.cs b/src/GitLabApiClient/Models/Commits/Requests/CommitQueryOptions.cs index ca91c739..f5fc01b3 100644 --- a/src/GitLabApiClient/Models/Commits/Requests/CommitQueryOptions.cs +++ b/src/GitLabApiClient/Models/Commits/Requests/CommitQueryOptions.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; namespace GitLabApiClient.Models.Commits.Requests { diff --git a/src/GitLabApiClient/Models/Commits/Requests/CommitStatusesQueryOptions.cs b/src/GitLabApiClient/Models/Commits/Requests/CommitStatusesQueryOptions.cs index 25c92bbb..5d7453df 100644 --- a/src/GitLabApiClient/Models/Commits/Requests/CommitStatusesQueryOptions.cs +++ b/src/GitLabApiClient/Models/Commits/Requests/CommitStatusesQueryOptions.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace GitLabApiClient.Models.Commits.Requests { public sealed class CommitStatusesQueryOptions diff --git a/src/GitLabApiClient/Models/Commits/Responses/Commit.cs b/src/GitLabApiClient/Models/Commits/Responses/Commit.cs index cd38c34f..aec6a955 100644 --- a/src/GitLabApiClient/Models/Commits/Responses/Commit.cs +++ b/src/GitLabApiClient/Models/Commits/Responses/Commit.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Text; -using GitLabApiClient.Models.Releases.Responses; using Newtonsoft.Json; namespace GitLabApiClient.Models.Commits.Responses diff --git a/src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs b/src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs index 8bed091f..fcf85229 100644 --- a/src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs +++ b/src/GitLabApiClient/Models/Commits/Responses/CommitStats.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Commits.Responses diff --git a/src/GitLabApiClient/Models/Commits/Responses/CommitStatuses.cs b/src/GitLabApiClient/Models/Commits/Responses/CommitStatuses.cs index 6ed7ed97..44d9286b 100644 --- a/src/GitLabApiClient/Models/Commits/Responses/CommitStatuses.cs +++ b/src/GitLabApiClient/Models/Commits/Responses/CommitStatuses.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; -using GitLabApiClient.Models.Releases.Responses; using Newtonsoft.Json; namespace GitLabApiClient.Models.Commits.Responses diff --git a/src/GitLabApiClient/Models/Commits/Responses/Diff.cs b/src/GitLabApiClient/Models/Commits/Responses/Diff.cs index 7f153c18..b2882af3 100644 --- a/src/GitLabApiClient/Models/Commits/Responses/Diff.cs +++ b/src/GitLabApiClient/Models/Commits/Responses/Diff.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; -using GitLabApiClient.Models.Releases.Responses; using Newtonsoft.Json; namespace GitLabApiClient.Models.Commits.Responses diff --git a/src/GitLabApiClient/Models/Groups/Requests/AddGroupMemberRequest.cs b/src/GitLabApiClient/Models/Groups/Requests/AddGroupMemberRequest.cs index 8028b3bb..362b9b1a 100644 --- a/src/GitLabApiClient/Models/Groups/Requests/AddGroupMemberRequest.cs +++ b/src/GitLabApiClient/Models/Groups/Requests/AddGroupMemberRequest.cs @@ -1,5 +1,4 @@ using GitLabApiClient.Internal.Paths; -using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; namespace GitLabApiClient.Models.Groups.Requests diff --git a/src/GitLabApiClient/Models/Groups/Requests/UpdateGroupMilestoneRequest.cs b/src/GitLabApiClient/Models/Groups/Requests/UpdateGroupMilestoneRequest.cs index 32aa1556..b3c5e8b6 100644 --- a/src/GitLabApiClient/Models/Groups/Requests/UpdateGroupMilestoneRequest.cs +++ b/src/GitLabApiClient/Models/Groups/Requests/UpdateGroupMilestoneRequest.cs @@ -1,4 +1,3 @@ -using GitLabApiClient.Internal.Utilities; using GitLabApiClient.Models.Milestones.Requests; using Newtonsoft.Json; using Newtonsoft.Json.Converters; diff --git a/src/GitLabApiClient/Models/Groups/Requests/UpdateGroupRequest.cs b/src/GitLabApiClient/Models/Groups/Requests/UpdateGroupRequest.cs index 15231ef4..a84e0f01 100644 --- a/src/GitLabApiClient/Models/Groups/Requests/UpdateGroupRequest.cs +++ b/src/GitLabApiClient/Models/Groups/Requests/UpdateGroupRequest.cs @@ -1,4 +1,3 @@ -using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; namespace GitLabApiClient.Models.Groups.Requests diff --git a/src/GitLabApiClient/Models/Issues/Requests/UpdateIssueRequest.cs b/src/GitLabApiClient/Models/Issues/Requests/UpdateIssueRequest.cs index aa718a8c..74998188 100644 --- a/src/GitLabApiClient/Models/Issues/Requests/UpdateIssueRequest.cs +++ b/src/GitLabApiClient/Models/Issues/Requests/UpdateIssueRequest.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using GitLabApiClient.Internal.Http.Serialization; -using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; using Newtonsoft.Json.Converters; diff --git a/src/GitLabApiClient/Models/Issues/Responses/ClosedBy.cs b/src/GitLabApiClient/Models/Issues/Responses/ClosedBy.cs index 550a9638..9cb189cd 100644 --- a/src/GitLabApiClient/Models/Issues/Responses/ClosedBy.cs +++ b/src/GitLabApiClient/Models/Issues/Responses/ClosedBy.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Issues.Responses diff --git a/src/GitLabApiClient/Models/Markdown/Request/RenderMarkdownRequest.cs b/src/GitLabApiClient/Models/Markdown/Request/RenderMarkdownRequest.cs index a8ab92a8..d735f84d 100644 --- a/src/GitLabApiClient/Models/Markdown/Request/RenderMarkdownRequest.cs +++ b/src/GitLabApiClient/Models/Markdown/Request/RenderMarkdownRequest.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Markdown/Response/Markdown.cs b/src/GitLabApiClient/Models/Markdown/Response/Markdown.cs index 539c4eca..67f589aa 100644 --- a/src/GitLabApiClient/Models/Markdown/Response/Markdown.cs +++ b/src/GitLabApiClient/Models/Markdown/Response/Markdown.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Markdown.Response diff --git a/src/GitLabApiClient/Models/MergeRequests/Requests/AcceptMergeRequest.cs b/src/GitLabApiClient/Models/MergeRequests/Requests/AcceptMergeRequest.cs index 2f17faf6..27694931 100644 --- a/src/GitLabApiClient/Models/MergeRequests/Requests/AcceptMergeRequest.cs +++ b/src/GitLabApiClient/Models/MergeRequests/Requests/AcceptMergeRequest.cs @@ -1,4 +1,3 @@ -using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; namespace GitLabApiClient.Models.MergeRequests.Requests diff --git a/src/GitLabApiClient/Models/MergeRequests/Requests/UpdateMergeRequest.cs b/src/GitLabApiClient/Models/MergeRequests/Requests/UpdateMergeRequest.cs index 485b32e8..b2973d74 100644 --- a/src/GitLabApiClient/Models/MergeRequests/Requests/UpdateMergeRequest.cs +++ b/src/GitLabApiClient/Models/MergeRequests/Requests/UpdateMergeRequest.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using GitLabApiClient.Internal.Http.Serialization; -using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; namespace GitLabApiClient.Models.MergeRequests.Requests diff --git a/src/GitLabApiClient/Models/Notes/Requests/CreateIssueNoteRequest.cs b/src/GitLabApiClient/Models/Notes/Requests/CreateIssueNoteRequest.cs index 79f4f0de..c05c0476 100644 --- a/src/GitLabApiClient/Models/Notes/Requests/CreateIssueNoteRequest.cs +++ b/src/GitLabApiClient/Models/Notes/Requests/CreateIssueNoteRequest.cs @@ -1,5 +1,4 @@ using System; -using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; namespace GitLabApiClient.Models.Notes.Requests diff --git a/src/GitLabApiClient/Models/Notes/Requests/CreateMergeRequestNoteRequest.cs b/src/GitLabApiClient/Models/Notes/Requests/CreateMergeRequestNoteRequest.cs index 858b4bd3..620f91ed 100644 --- a/src/GitLabApiClient/Models/Notes/Requests/CreateMergeRequestNoteRequest.cs +++ b/src/GitLabApiClient/Models/Notes/Requests/CreateMergeRequestNoteRequest.cs @@ -1,5 +1,4 @@ using System; -using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; namespace GitLabApiClient.Models.Notes.Requests diff --git a/src/GitLabApiClient/Models/Pipelines/Responses/PipelineDetail.cs b/src/GitLabApiClient/Models/Pipelines/Responses/PipelineDetail.cs index 3fb9f10a..f759c42f 100644 --- a/src/GitLabApiClient/Models/Pipelines/Responses/PipelineDetail.cs +++ b/src/GitLabApiClient/Models/Pipelines/Responses/PipelineDetail.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; -using GitLabApiClient.Models.Users.Responses; using Newtonsoft.Json; namespace GitLabApiClient.Models.Pipelines.Responses diff --git a/src/GitLabApiClient/Models/Projects/Requests/CreateProjectLabelRequest.cs b/src/GitLabApiClient/Models/Projects/Requests/CreateProjectLabelRequest.cs index 99564a28..450ab041 100644 --- a/src/GitLabApiClient/Models/Projects/Requests/CreateProjectLabelRequest.cs +++ b/src/GitLabApiClient/Models/Projects/Requests/CreateProjectLabelRequest.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Projects/Requests/ImportProjectRequest.cs b/src/GitLabApiClient/Models/Projects/Requests/ImportProjectRequest.cs index b4fc1db3..35a1cf48 100644 --- a/src/GitLabApiClient/Models/Projects/Requests/ImportProjectRequest.cs +++ b/src/GitLabApiClient/Models/Projects/Requests/ImportProjectRequest.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Projects/Requests/UpdateProjectLabelRequest.cs b/src/GitLabApiClient/Models/Projects/Requests/UpdateProjectLabelRequest.cs index c9d3d8f7..767fa77c 100644 --- a/src/GitLabApiClient/Models/Projects/Requests/UpdateProjectLabelRequest.cs +++ b/src/GitLabApiClient/Models/Projects/Requests/UpdateProjectLabelRequest.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Projects/Requests/UpdateProjectMilestoneRequest.cs b/src/GitLabApiClient/Models/Projects/Requests/UpdateProjectMilestoneRequest.cs index 74aa61ce..d62d4873 100644 --- a/src/GitLabApiClient/Models/Projects/Requests/UpdateProjectMilestoneRequest.cs +++ b/src/GitLabApiClient/Models/Projects/Requests/UpdateProjectMilestoneRequest.cs @@ -1,4 +1,3 @@ -using GitLabApiClient.Internal.Utilities; using GitLabApiClient.Models.Milestones.Requests; using Newtonsoft.Json; using Newtonsoft.Json.Converters; diff --git a/src/GitLabApiClient/Models/Projects/Responses/ExportLinks.cs b/src/GitLabApiClient/Models/Projects/Responses/ExportLinks.cs index 473eef6e..f4d8f41f 100644 --- a/src/GitLabApiClient/Models/Projects/Responses/ExportLinks.cs +++ b/src/GitLabApiClient/Models/Projects/Responses/ExportLinks.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; -using GitLabApiClient.Models.Projects.Requests; using Newtonsoft.Json; namespace GitLabApiClient.Models.Projects.Responses diff --git a/src/GitLabApiClient/Models/Projects/Responses/ExportStatus.cs b/src/GitLabApiClient/Models/Projects/Responses/ExportStatus.cs index 2d5379c7..cefc87d6 100644 --- a/src/GitLabApiClient/Models/Projects/Responses/ExportStatus.cs +++ b/src/GitLabApiClient/Models/Projects/Responses/ExportStatus.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; -using GitLabApiClient.Models.Projects.Requests; using Newtonsoft.Json; namespace GitLabApiClient.Models.Projects.Responses diff --git a/src/GitLabApiClient/Models/Projects/Responses/ImportStatus.cs b/src/GitLabApiClient/Models/Projects/Responses/ImportStatus.cs index d9641b27..8fea28b4 100644 --- a/src/GitLabApiClient/Models/Projects/Responses/ImportStatus.cs +++ b/src/GitLabApiClient/Models/Projects/Responses/ImportStatus.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; -using GitLabApiClient.Models.Projects.Requests; using Newtonsoft.Json; namespace GitLabApiClient.Models.Projects.Responses diff --git a/src/GitLabApiClient/Models/Releases/Requests/CreateReleaseRequest.cs b/src/GitLabApiClient/Models/Releases/Requests/CreateReleaseRequest.cs index 328faea8..ff3e147f 100644 --- a/src/GitLabApiClient/Models/Releases/Requests/CreateReleaseRequest.cs +++ b/src/GitLabApiClient/Models/Releases/Requests/CreateReleaseRequest.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Internal.Utilities; using GitLabApiClient.Models.Releases.Responses; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Releases/Requests/ReleaseQueryOptions.cs b/src/GitLabApiClient/Models/Releases/Requests/ReleaseQueryOptions.cs index 2c490b06..8e2c4446 100644 --- a/src/GitLabApiClient/Models/Releases/Requests/ReleaseQueryOptions.cs +++ b/src/GitLabApiClient/Models/Releases/Requests/ReleaseQueryOptions.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; -using GitLabApiClient.Models.Projects.Responses; - namespace GitLabApiClient.Models.Releases.Requests { public sealed class ReleaseQueryOptions diff --git a/src/GitLabApiClient/Models/Releases/Requests/UpdateReleaseRequest.cs b/src/GitLabApiClient/Models/Releases/Requests/UpdateReleaseRequest.cs index c7f2669d..4c02677c 100644 --- a/src/GitLabApiClient/Models/Releases/Requests/UpdateReleaseRequest.cs +++ b/src/GitLabApiClient/Models/Releases/Requests/UpdateReleaseRequest.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Releases.Requests diff --git a/src/GitLabApiClient/Models/Releases/Responses/Asset.cs b/src/GitLabApiClient/Models/Releases/Responses/Asset.cs index 4cc27698..63cf49f5 100644 --- a/src/GitLabApiClient/Models/Releases/Responses/Asset.cs +++ b/src/GitLabApiClient/Models/Releases/Responses/Asset.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Releases.Responses diff --git a/src/GitLabApiClient/Models/Releases/Responses/Commit.cs b/src/GitLabApiClient/Models/Releases/Responses/Commit.cs index 145cd9f2..a087c47a 100644 --- a/src/GitLabApiClient/Models/Releases/Responses/Commit.cs +++ b/src/GitLabApiClient/Models/Releases/Responses/Commit.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Releases.Responses diff --git a/src/GitLabApiClient/Models/Releases/Responses/Link.cs b/src/GitLabApiClient/Models/Releases/Responses/Link.cs index c1904852..ab2fdbf0 100644 --- a/src/GitLabApiClient/Models/Releases/Responses/Link.cs +++ b/src/GitLabApiClient/Models/Releases/Responses/Link.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Releases.Responses diff --git a/src/GitLabApiClient/Models/Releases/Responses/Release.cs b/src/GitLabApiClient/Models/Releases/Responses/Release.cs index a18aae86..a7731820 100644 --- a/src/GitLabApiClient/Models/Releases/Responses/Release.cs +++ b/src/GitLabApiClient/Models/Releases/Responses/Release.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Models.Milestones.Responses; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Releases/Responses/Source.cs b/src/GitLabApiClient/Models/Releases/Responses/Source.cs index 6e3ad049..ae6db929 100644 --- a/src/GitLabApiClient/Models/Releases/Responses/Source.cs +++ b/src/GitLabApiClient/Models/Releases/Responses/Source.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Releases.Responses diff --git a/src/GitLabApiClient/Models/Runners/Requests/CreateRunnerRequest.cs b/src/GitLabApiClient/Models/Runners/Requests/CreateRunnerRequest.cs index 0ec4fb3c..5f9e5b70 100644 --- a/src/GitLabApiClient/Models/Runners/Requests/CreateRunnerRequest.cs +++ b/src/GitLabApiClient/Models/Runners/Requests/CreateRunnerRequest.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Runners.Requests diff --git a/src/GitLabApiClient/Models/Runners/Requests/UpdateRunnerRequest.cs b/src/GitLabApiClient/Models/Runners/Requests/UpdateRunnerRequest.cs index 0997cd31..ef4d94de 100644 --- a/src/GitLabApiClient/Models/Runners/Requests/UpdateRunnerRequest.cs +++ b/src/GitLabApiClient/Models/Runners/Requests/UpdateRunnerRequest.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Generic; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Runners.Requests diff --git a/src/GitLabApiClient/Models/Tags/Requests/CreateTagRequest.cs b/src/GitLabApiClient/Models/Tags/Requests/CreateTagRequest.cs index 5fa1d3e4..2c7fda5a 100644 --- a/src/GitLabApiClient/Models/Tags/Requests/CreateTagRequest.cs +++ b/src/GitLabApiClient/Models/Tags/Requests/CreateTagRequest.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Internal.Utilities; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs b/src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs index 54905ec0..cb4ea376 100644 --- a/src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs +++ b/src/GitLabApiClient/Models/Tags/Requests/TagOrder.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace GitLabApiClient.Models.Tags.Requests { public enum TagOrder diff --git a/src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs b/src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs index 07fc4e11..30789d2a 100644 --- a/src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs +++ b/src/GitLabApiClient/Models/Tags/Requests/TagQueryOptions.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace GitLabApiClient.Models.Tags.Requests { public sealed class TagQueryOptions diff --git a/src/GitLabApiClient/Models/Tags/Requests/TagSort.cs b/src/GitLabApiClient/Models/Tags/Requests/TagSort.cs index eec5f174..4dbe0cbf 100644 --- a/src/GitLabApiClient/Models/Tags/Requests/TagSort.cs +++ b/src/GitLabApiClient/Models/Tags/Requests/TagSort.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace GitLabApiClient.Models.Tags.Requests { public enum TagSort diff --git a/src/GitLabApiClient/Models/Tags/Responses/Tag.cs b/src/GitLabApiClient/Models/Tags/Responses/Tag.cs index 33ca41de..ba490baf 100644 --- a/src/GitLabApiClient/Models/Tags/Responses/Tag.cs +++ b/src/GitLabApiClient/Models/Tags/Responses/Tag.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; using GitLabApiClient.Models.Releases.Responses; using Newtonsoft.Json; diff --git a/src/GitLabApiClient/Models/Trees/Requests/TreeQueryOptions.cs b/src/GitLabApiClient/Models/Trees/Requests/TreeQueryOptions.cs index afdef3dd..b08c7c12 100644 --- a/src/GitLabApiClient/Models/Trees/Requests/TreeQueryOptions.cs +++ b/src/GitLabApiClient/Models/Trees/Requests/TreeQueryOptions.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace GitLabApiClient.Models.Trees.Requests { public sealed class TreeQueryOptions diff --git a/src/GitLabApiClient/Models/Trees/Responses/Tree.cs b/src/GitLabApiClient/Models/Trees/Responses/Tree.cs index 3986d864..e30b130c 100644 --- a/src/GitLabApiClient/Models/Trees/Responses/Tree.cs +++ b/src/GitLabApiClient/Models/Trees/Responses/Tree.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; -using GitLabApiClient.Models.Releases.Responses; using Newtonsoft.Json; namespace GitLabApiClient.Models.Trees.Responses diff --git a/src/GitLabApiClient/Models/Uploads/Requests/CreateUploadRequest.cs b/src/GitLabApiClient/Models/Uploads/Requests/CreateUploadRequest.cs index ea31ff4a..81c0ef1d 100644 --- a/src/GitLabApiClient/Models/Uploads/Requests/CreateUploadRequest.cs +++ b/src/GitLabApiClient/Models/Uploads/Requests/CreateUploadRequest.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Text; namespace GitLabApiClient.Models.Uploads.Requests { diff --git a/src/GitLabApiClient/Models/Uploads/Responses/Upload.cs b/src/GitLabApiClient/Models/Uploads/Responses/Upload.cs index fe6c3e49..6b7ff411 100644 --- a/src/GitLabApiClient/Models/Uploads/Responses/Upload.cs +++ b/src/GitLabApiClient/Models/Uploads/Responses/Upload.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Text; using Newtonsoft.Json; namespace GitLabApiClient.Models.Uploads.Responses diff --git a/src/GitLabApiClient/ProjectsClient.cs b/src/GitLabApiClient/ProjectsClient.cs index 427d4f2e..ffd52c0f 100644 --- a/src/GitLabApiClient/ProjectsClient.cs +++ b/src/GitLabApiClient/ProjectsClient.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.IO; using System.Net.Http; using System.Threading.Tasks; using GitLabApiClient.Internal.Http; diff --git a/src/GitLabApiClient/RunnersClient.cs b/src/GitLabApiClient/RunnersClient.cs index d47e8d1d..ce15cbcf 100644 --- a/src/GitLabApiClient/RunnersClient.cs +++ b/src/GitLabApiClient/RunnersClient.cs @@ -1,12 +1,9 @@ using System.Collections.Generic; -using System.Linq; using System.Net.Http; using System.Threading.Tasks; using GitLabApiClient.Internal.Http; using GitLabApiClient.Models.Runners.Requests; using GitLabApiClient.Models.Runners.Responses; -using GitLabApiClient.Models.Users.Requests; -using GitLabApiClient.Models.Users.Responses; namespace GitLabApiClient { diff --git a/src/GitLabApiClient/WebhookClient.cs b/src/GitLabApiClient/WebhookClient.cs index 483e395f..ff813239 100644 --- a/src/GitLabApiClient/WebhookClient.cs +++ b/src/GitLabApiClient/WebhookClient.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Threading.Tasks; using GitLabApiClient.Internal.Http; @@ -13,8 +12,7 @@ public sealed class WebhookClient : IWebhookClient { private readonly GitLabHttpFacade _httpFacade; - internal WebhookClient( - GitLabHttpFacade httpFacade) + internal WebhookClient(GitLabHttpFacade httpFacade) { _httpFacade = httpFacade; } diff --git a/test/GitLabApiClient.Test/CommitsClientTest.cs b/test/GitLabApiClient.Test/CommitsClientTest.cs index a4dc63f8..67687b56 100644 --- a/test/GitLabApiClient.Test/CommitsClientTest.cs +++ b/test/GitLabApiClient.Test/CommitsClientTest.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics.CodeAnalysis; -using System.Net; using System.Net.Http; using FakeItEasy; using FluentAssertions; diff --git a/test/GitLabApiClient.Test/ProjectsClientTest.cs b/test/GitLabApiClient.Test/ProjectsClientTest.cs index 1da6c6db..66523068 100644 --- a/test/GitLabApiClient.Test/ProjectsClientTest.cs +++ b/test/GitLabApiClient.Test/ProjectsClientTest.cs @@ -6,12 +6,10 @@ using System.Threading.Tasks; using FluentAssertions; using GitLabApiClient.Internal.Queries; -using GitLabApiClient.Models.Job.Requests; using GitLabApiClient.Models.Milestones.Requests; using GitLabApiClient.Models.Milestones.Responses; using GitLabApiClient.Models.Projects.Requests; using GitLabApiClient.Models.Projects.Responses; -using GitLabApiClient.Models.Runners.Responses; using GitLabApiClient.Models.Variables.Request; using GitLabApiClient.Models.Variables.Response; using GitLabApiClient.Test.Utilities; diff --git a/test/GitLabApiClient.Test/ReleasesTest.cs b/test/GitLabApiClient.Test/ReleasesTest.cs index 2da5f369..19b2980d 100644 --- a/test/GitLabApiClient.Test/ReleasesTest.cs +++ b/test/GitLabApiClient.Test/ReleasesTest.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using FluentAssertions; using GitLabApiClient.Internal.Queries; diff --git a/test/GitLabApiClient.Test/TagsClientTest.cs b/test/GitLabApiClient.Test/TagsClientTest.cs index ab0ccd76..473ca5a6 100644 --- a/test/GitLabApiClient.Test/TagsClientTest.cs +++ b/test/GitLabApiClient.Test/TagsClientTest.cs @@ -1,4 +1,3 @@ -using FluentAssertions; using Xunit; namespace GitLabApiClient.Test diff --git a/test/GitLabApiClient.Test/UploadsClientTest.cs b/test/GitLabApiClient.Test/UploadsClientTest.cs index ecc0e0ef..31608e1f 100644 --- a/test/GitLabApiClient.Test/UploadsClientTest.cs +++ b/test/GitLabApiClient.Test/UploadsClientTest.cs @@ -1,13 +1,10 @@ using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; -using System.Text; using System.Threading.Tasks; using FluentAssertions; using GitLabApiClient.Models.Uploads.Requests; -using GitLabApiClient.Test.Utilities; using Xunit; using static GitLabApiClient.Test.Utilities.GitLabApiHelper; diff --git a/test/GitLabApiClient.Test/Utilities/GitLabContainerFixture.cs b/test/GitLabApiClient.Test/Utilities/GitLabContainerFixture.cs index 5f3109ab..996c3d61 100755 --- a/test/GitLabApiClient.Test/Utilities/GitLabContainerFixture.cs +++ b/test/GitLabApiClient.Test/Utilities/GitLabContainerFixture.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; From 522d7c864e868c9a2a253fde08da8612cd83badc Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 13:21:11 +0100 Subject: [PATCH 05/18] Fix Naming Convention Issue --- .../Inspections/RequestsInspectionTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/GitLabApiClient.Test/Inspections/RequestsInspectionTest.cs b/test/GitLabApiClient.Test/Inspections/RequestsInspectionTest.cs index 2a7252d6..25031eec 100644 --- a/test/GitLabApiClient.Test/Inspections/RequestsInspectionTest.cs +++ b/test/GitLabApiClient.Test/Inspections/RequestsInspectionTest.cs @@ -59,14 +59,14 @@ public void AllRequestsDoesNotHaveWritableIntProperties() private static IEnumerable GetRequestClasses() { - var _ignoreClasses = new List + var ignoreClasses = new List { "MergeRequest" }; return typeof(CreateIssueRequest).Assembly.GetExportedTypes(). Where(t => t.Name.EndsWith("Request", StringComparison.OrdinalIgnoreCase)). - Where(t => !_ignoreClasses.Contains(t.Name)). + Where(t => !ignoreClasses.Contains(t.Name)). Where(t => t.IsClass); } } From c5d1d25719441a174fc76e21dc2a3308fabd0fc5 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 13:23:26 +0100 Subject: [PATCH 06/18] Support net5.0 Applications --- src/GitLabApiClient/GitLabApiClient.csproj | 4 ++-- .../GitLabApiClient.Test.csproj | 22 ++++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/GitLabApiClient/GitLabApiClient.csproj b/src/GitLabApiClient/GitLabApiClient.csproj index 508ae6e3..374b1209 100644 --- a/src/GitLabApiClient/GitLabApiClient.csproj +++ b/src/GitLabApiClient/GitLabApiClient.csproj @@ -1,7 +1,7 @@ - + - netstandard2.0;net48;netcoreapp3.1 + netstandard2.0;net48;netcoreapp3.1;net5.0 false GitLabApiClient is a .NET rest client for GitLab API v4. diff --git a/test/GitLabApiClient.Test/GitLabApiClient.Test.csproj b/test/GitLabApiClient.Test/GitLabApiClient.Test.csproj index 083286ba..168dc16d 100644 --- a/test/GitLabApiClient.Test/GitLabApiClient.Test.csproj +++ b/test/GitLabApiClient.Test/GitLabApiClient.Test.csproj @@ -1,6 +1,6 @@ - + - netcoreapp3.1 + netcoreapp3.1;net5.0 false @@ -10,13 +10,19 @@ - - - - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + From 260deab783a57a07d6b0e5f73ac2784b918a512e Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 13:55:47 +0100 Subject: [PATCH 07/18] Fixing using string instead of CommitStats Class --- src/GitLabApiClient/Models/Commits/Responses/Commit.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitLabApiClient/Models/Commits/Responses/Commit.cs b/src/GitLabApiClient/Models/Commits/Responses/Commit.cs index aec6a955..c08c871e 100644 --- a/src/GitLabApiClient/Models/Commits/Responses/Commit.cs +++ b/src/GitLabApiClient/Models/Commits/Responses/Commit.cs @@ -33,7 +33,7 @@ public sealed class Commit [JsonProperty("web_url")] public string WebUrl { get; set; } [JsonProperty("stats")] - public string CommitStats { get; set; } + public CommitStats CommitStats { get; set; } } } From 5382da73a35f404d943365c17137e301f4e172e1 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 14:14:32 +0100 Subject: [PATCH 08/18] Try Fix Pipeline Error, change install version to 5.0 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5637ac6..42e0edf7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - name: Setup dotnet uses: actions/setup-dotnet@v1 with: - dotnet-version: '3.1' + dotnet-version: '5.0' - run: dotnet tool install -g Codecov.Tool From c6fecac6df622fe174afcf30c1510e7762e02359 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 14:18:06 +0100 Subject: [PATCH 09/18] Let's Try the RC --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42e0edf7..a89e436b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - name: Setup dotnet uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0' + dotnet-version: '5.0.100-rc.2.20479.15' - run: dotnet tool install -g Codecov.Tool From 2672f26a6d4b598fbfb3c85cc3eccac60ee5c0ae Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 14:18:06 +0100 Subject: [PATCH 10/18] Let's Try the RC --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42e0edf7..7b8778be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - name: Setup dotnet uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0' + dotnet-version: '5.0.0-rc.2' - run: dotnet tool install -g Codecov.Tool From 9a4a8f7d7f34882e25e3bad82a6342d858eedd66 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 14:47:48 +0100 Subject: [PATCH 11/18] Re add 3.1 SDK --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75eeac4a..1dc6b159 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,11 +26,15 @@ jobs: key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} restore-keys: | ${{ runner.os }}-nuget- - - - name: Setup dotnet + + - name: Setup dotnet 3.1 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1' + - name: Setup dotnet 5 uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0.0-rc.2' + dotnet-version: '5.0.100-rc.2.20479.15' - run: dotnet tool install -g Codecov.Tool From 4d342b4d371792e2da0622f357b6e77f9295200c Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 15:21:19 +0100 Subject: [PATCH 12/18] Update .github/workflows/ci.yml -> Fixing WhiteSpace --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1dc6b159..c141d17e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: restore-keys: | ${{ runner.os }}-nuget- - - name: Setup dotnet 3.1 + - name: Setup dotnet 3.1 uses: actions/setup-dotnet@v1 with: dotnet-version: '3.1' From 1ab4aafa22f89e17bde2b052ddda70803502ad7f Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 27 Oct 2020 15:21:19 +0100 Subject: [PATCH 13/18] Update .github/workflows/ci.yml -> Fixing WhiteSpace --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1dc6b159..65746cff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,7 @@ jobs: key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} restore-keys: | ${{ runner.os }}-nuget- - - - name: Setup dotnet 3.1 + - name: Setup dotnet 3.1 uses: actions/setup-dotnet@v1 with: dotnet-version: '3.1' From dfc2d54dfcc996b6dad8f01fe598e596fa1691c5 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Thu, 12 Nov 2020 11:56:35 +0100 Subject: [PATCH 14/18] Update To Stable net5 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65746cff..e4786478 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Setup dotnet 5 uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0.100-rc.2.20479.15' + dotnet-version: '5.0.100' - run: dotnet tool install -g Codecov.Tool From c82a5b59240fb8bb567dfd56d00d628fd6c23ef8 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Fri, 13 Nov 2020 13:01:59 +0100 Subject: [PATCH 15/18] Fix Version more Open --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4786478..632e2a07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Setup dotnet 5 uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0.100' + dotnet-version: '5' - run: dotnet tool install -g Codecov.Tool From 45c43c15eda3ef19324c5e15e4df737d2dfb8c9f Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Fri, 13 Nov 2020 13:08:12 +0100 Subject: [PATCH 16/18] Try Fix BuildError --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 632e2a07..a2a44795 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Setup dotnet 5 uses: actions/setup-dotnet@v1 with: - dotnet-version: '5' + dotnet-version: '5.*' - run: dotnet tool install -g Codecov.Tool From 6a995402b13120226989fce68a831795cdf51529 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Fri, 13 Nov 2020 13:08:12 +0100 Subject: [PATCH 17/18] Fix Build Error's swicht back to 5.0.100Update To Stable net5 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 632e2a07..e4786478 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Setup dotnet 5 uses: actions/setup-dotnet@v1 with: - dotnet-version: '5' + dotnet-version: '5.0.100' - run: dotnet tool install -g Codecov.Tool From 53c1f0b727885e0b54251d20543a59fb85bb38a2 Mon Sep 17 00:00:00 2001 From: Joseph Petersen Date: Mon, 23 Nov 2020 20:34:25 +0100 Subject: [PATCH 18/18] use dotnet 5.0 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4786478..0842a622 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Setup dotnet 5 uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0.100' + dotnet-version: '5.0' - run: dotnet tool install -g Codecov.Tool