From bb8d32233a5a17e61f81758f1cafc3c8976fcf9b Mon Sep 17 00:00:00 2001 From: Christoph Witzko <github@christophwitzko.com> Date: Sun, 18 Feb 2024 09:14:21 +0100 Subject: [PATCH] style: fix linter error --- pkg/provider/gitlab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/provider/gitlab.go b/pkg/provider/gitlab.go index 614cc91..e422abf 100644 --- a/pkg/provider/gitlab.go +++ b/pkg/provider/gitlab.go @@ -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{ -- GitLab