Skip to content

Commit

Permalink
style: fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Feb 18, 2024
1 parent 12d1c24 commit bb8d322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/provider/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ func (repo *GitLabRepository) GetCommits(fromSha, toSha string) ([]*semrel.RawCo

var refName *string
if fromSha == "" {
refName = gitlab.String(toSha)
refName = gitlab.Ptr(toSha)
} else {
// No Matter the order ofr fromSha and toSha gitlab always returns commits in reverse chronological order
refName = gitlab.String(fmt.Sprintf("%s...%s", fromSha, toSha))
refName = gitlab.Ptr(fmt.Sprintf("%s...%s", fromSha, toSha))
}

opts := &gitlab.ListCommitsOptions{
Expand Down

0 comments on commit bb8d322

Please sign in to comment.