Skip to content

Commit c75c643

Browse files
feat(provider): add from and to sha to GetCommits
1 parent fbbc370 commit c75c643

File tree

9 files changed

+74
-74
lines changed

9 files changed

+74
-74
lines changed

β€Žpkg/analyzer/commit_analyzer.pb.goβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpkg/condition/ci_condition.pb.goβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpkg/generator/changelog_generator.pb.goβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpkg/hooks/hooks.pb.goβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpkg/provider/provider.pb.goβ€Ž

Lines changed: 63 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpkg/provider/provider.protoβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ message GetInfo {
5151

5252
message GetCommits {
5353
message Request {
54-
string FromSHA = 1;
55-
string ToSHA = 2;
54+
string to_sha = 1;
55+
string from_sha = 2;
5656
}
5757
message Response {
5858
repeated RawCommit raw_commits = 1;

β€Žpkg/provider/wrapper.goβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (s *Server) GetInfo(ctx context.Context, request *GetInfo_Request) (*GetInf
4040
}
4141

4242
func (s *Server) GetCommits(ctx context.Context, request *GetCommits_Request) (*GetCommits_Response, error) {
43-
commits, err := s.Impl.GetCommits(request.FromSHA, request.ToSHA)
43+
commits, err := s.Impl.GetCommits(request.FromSha, request.ToSha)
4444
if err != nil {
4545
return &GetCommits_Response{Error: err.Error()}, nil
4646
}
@@ -94,8 +94,8 @@ func (c *Client) GetInfo() (*RepositoryInfo, error) {
9494

9595
func (c *Client) GetCommits(fromSha, toSha string) ([]*semrel.RawCommit, error) {
9696
res, err := c.Impl.GetCommits(context.Background(), &GetCommits_Request{
97-
FromSHA: fromSha,
98-
ToSHA: toSha,
97+
FromSha: fromSha,
98+
ToSha: toSha,
9999
})
100100
if err != nil {
101101
return nil, err

β€Žpkg/semrel/structs.pb.goβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpkg/updater/updater.pb.goβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)