Skip to content

Commit

Permalink
fix: add Parent commit to get commit list (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezapla authored Aug 13, 2024
2 parents 9eefa5b + 60f1f16 commit f54efb7
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace Mohaymen.GiteaClient.Gitea.Commit.GetBranchCommits.Dtos;

Expand All @@ -12,10 +13,19 @@ public sealed class LoadBranchCommitsResponseDto

[JsonProperty("commit")]
public required CommitDto CommitDto { get; init; }

[JsonProperty("parents")]
public required List<ParentCommitDto> ParentCommitDtos { get; init; }
}

public sealed class CommitDto
{
[JsonProperty("message")]
public required string CommitMessage { get; init; }
}

public sealed class ParentCommitDto
{
[JsonProperty("sha")]
public required string CommitSha { get; init; }
}

0 comments on commit f54efb7

Please sign in to comment.