Skip to content

Commit

Permalink
fix: No commits found? 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
guisea committed Apr 24, 2024
1 parent 2f5dac4 commit 1c3d5ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/provider/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,15 @@ func (repo *GiteaRepository) getCommitsFromGitea(fromSha string, opts *gitea.Lis
})
}

func (repo *GiteaRepository) GetCommits(fromSha, _ string) ([]*semrel.RawCommit, error) {
func (repo *GiteaRepository) GGetCommits(_, toSha string) ([]*semrel.RawCommit, error) {
allCommits := make([]*semrel.RawCommit, 0)
opts := &gitea.ListOptions{PageSize: 100}
done := false
for {
commits, resp, err := repo.getCommitsFromGitea(fromSha, opts)
commits, resp, err := repo.client.ListRepoCommits(repo.owner, repo.repo, gitea.ListCommitOptions{
SHA: toSha,
ListOptions: *opts,
})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 1c3d5ea

Please sign in to comment.