From 39d7c6c445eb8003a81e78454b85a14c64cad33f Mon Sep 17 00:00:00 2001 From: Gerrit Date: Mon, 26 Feb 2024 11:38:34 +0100 Subject: [PATCH] Fix. --- pkg/webhooks/github/actions/aggregate_releases.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/webhooks/github/actions/aggregate_releases.go b/pkg/webhooks/github/actions/aggregate_releases.go index 405e42a..5d150a1 100644 --- a/pkg/webhooks/github/actions/aggregate_releases.go +++ b/pkg/webhooks/github/actions/aggregate_releases.go @@ -239,8 +239,8 @@ func findOpenReleasePR(ctx context.Context, client *v3.Client, owner, repo, bran } func isReleaseFreeze(ctx context.Context, client *v3.Client, pr *v3.PullRequest, owner, repo string) (bool, error) { - comments, _, err := client.PullRequests.ListComments(ctx, owner, repo, pointer.SafeDeref(pr.Number), &v3.PullRequestListCommentsOptions{ - Direction: "desc", + comments, _, err := client.Issues.ListComments(ctx, owner, repo, *pr.Number, &v3.IssueListCommentsOptions{ + Direction: v3.String("desc"), }) if err != nil { return true, fmt.Errorf("unable to list pull request comments: %w", err)