diff --git a/.github/actions/build-and-test/action.yml b/.github/actions/build-and-test/action.yml index 200e790..c2448b2 100644 --- a/.github/actions/build-and-test/action.yml +++ b/.github/actions/build-and-test/action.yml @@ -8,7 +8,7 @@ runs: - name: set up dotnet core sdk uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: '8.0.303' - name: restoring dependencies run: dotnet restore --no-cache diff --git a/Mohaymen.GiteaClient/Gitea/Commit/Common/Dtos/ParentCommitDto.cs b/Mohaymen.GiteaClient/Gitea/Commit/Common/Dtos/ParentCommitDto.cs index 9a02fa2..17e4b6c 100644 --- a/Mohaymen.GiteaClient/Gitea/Commit/Common/Dtos/ParentCommitDto.cs +++ b/Mohaymen.GiteaClient/Gitea/Commit/Common/Dtos/ParentCommitDto.cs @@ -6,4 +6,13 @@ public sealed class ParentCommitDto { [JsonProperty("sha")] public required string CommitSha { get; init; } +} + +public sealed class CommitDto +{ + [JsonProperty("url")] + public required string CommitUrl { get; init; } + + [JsonProperty("message")] + public required string CommitMessage { get; init; } } \ No newline at end of file diff --git a/Mohaymen.GiteaClient/Gitea/Commit/GetBranchCommits/Dtos/LoadBranchCommitsResponseDto.cs b/Mohaymen.GiteaClient/Gitea/Commit/GetBranchCommits/Dtos/LoadBranchCommitsResponseDto.cs index c6e3fa8..896d8a9 100644 --- a/Mohaymen.GiteaClient/Gitea/Commit/GetBranchCommits/Dtos/LoadBranchCommitsResponseDto.cs +++ b/Mohaymen.GiteaClient/Gitea/Commit/GetBranchCommits/Dtos/LoadBranchCommitsResponseDto.cs @@ -18,9 +18,3 @@ public sealed class LoadBranchCommitsResponseDto [JsonProperty("parents")] public required List ParentCommitDtos { get; init; } } - -public sealed class CommitDto -{ - [JsonProperty("message")] - public required string CommitMessage { get; init; } -} \ No newline at end of file diff --git a/Mohaymen.GiteaClient/Gitea/Commit/GetSingleCommit/Dtos/GetSingleCommitResponseDto.cs b/Mohaymen.GiteaClient/Gitea/Commit/GetSingleCommit/Dtos/GetSingleCommitResponseDto.cs index c8cf0a8..a5f9634 100644 --- a/Mohaymen.GiteaClient/Gitea/Commit/GetSingleCommit/Dtos/GetSingleCommitResponseDto.cs +++ b/Mohaymen.GiteaClient/Gitea/Commit/GetSingleCommit/Dtos/GetSingleCommitResponseDto.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Mohaymen.GiteaClient.Gitea.Commit.Common.Dtos; using Newtonsoft.Json; namespace Mohaymen.GiteaClient.Gitea.Commit.GetBranchCommits.Dtos; @@ -16,6 +17,9 @@ public sealed class GetSingleCommitResponseDto [JsonProperty("stats")] public required StatsDto StatsDto { get; init; } + + [JsonProperty("commit")] + public required CommitDto CommitDto { get; init; } } public sealed class FilesDto @@ -37,4 +41,4 @@ public sealed class StatsDto [JsonProperty("deletions")] public required int Deletions { get; init; } -} \ No newline at end of file +}