Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Feb 26, 2024
1 parent 271b8a5 commit 39d7c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/webhooks/github/actions/aggregate_releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 39d7c6c

Please sign in to comment.