Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add_get_single_commit_by_sha #31

Merged
merged 27 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3aa7ec1
feat: add GetSingleCommitAsync
alirezapla Aug 11, 2024
4385490
feat: add GetSingleCommitQuery Dto
alirezapla Aug 11, 2024
bede462
feat add GetSingleCommitQueryHandler
alirezapla Aug 11, 2024
12d051b
feat: add GetSingleCommitQueryHandler
alirezapla Aug 11, 2024
6abbddb
feat: add GetSingleCommitAsync
alirezapla Aug 11, 2024
766a61c
feat: add validator
alirezapla Aug 11, 2024
aa1a9e0
fix: add return type to CreateFileAsync for access commit sha from
alirezapla Aug 11, 2024
aaf129b
feat: add GetSingleCommitQueryMapper
alirezapla Aug 11, 2024
f33c16d
feat: add unit test for single commit api
alirezapla Aug 11, 2024
734b1fb
feat: add unit test for single commit validator
alirezapla Aug 11, 2024
c7a892c
feat: add GetSingleCommitResponseDto
alirezapla Aug 11, 2024
2ccf069
feat: add integration test for single commit api
alirezapla Aug 11, 2024
fad9ec9
feat: add unit test for single commit validator
alirezapla Aug 11, 2024
7a48485
feat: add new test for pass all criteria
alirezapla Aug 11, 2024
b232e61
chore: reformat
alirezapla Aug 11, 2024
d3dcd19
chore: reformat
alirezapla Aug 11, 2024
462fe9b
fix: remove try/catch and extra lines
alirezapla Aug 11, 2024
b58068b
fix: change RepositoryName
alirezapla Aug 11, 2024
cd36869
fix: fix expectedCommitMessages pagination
alirezapla Aug 11, 2024
a0c08b6
Merge branch 'master' into feature/add_get_single_commit_by_sha
alirezapla Aug 13, 2024
ad111be
Merge branch 'master' into feature/add_get_single_commit_by_sha
alirezapla Aug 13, 2024
76eb8e5
fix: add commit dto for retrieve commit message
alirezapla Aug 13, 2024
79289db
fix: add commit dto for retrieve commit message
alirezapla Aug 13, 2024
f74ff61
fix: add commit dto for retrieve commit message
alirezapla Aug 13, 2024
1b3635c
Merge branch 'master' into feature/add_get_single_commit_by_sha
alirezapla Aug 13, 2024
3626921
fix: add commit dto for retrieve commit message
alirezapla Aug 13, 2024
59b956a
fix: test dotnet version for ci/cd
alirezapla Aug 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build-and-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,3 @@ public sealed class LoadBranchCommitsResponseDto
[JsonProperty("parents")]
public required List<ParentCommitDto> ParentCommitDtos { get; init; }
}

public sealed class CommitDto
{
[JsonProperty("message")]
public required string CommitMessage { get; init; }
}
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand All @@ -37,4 +41,4 @@ public sealed class StatsDto

[JsonProperty("deletions")]
public required int Deletions { get; init; }
}
}
Loading