Skip to content

Commit

Permalink
fix: fixed int64 -> int conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Oct 19, 2023
1 parent 445d938 commit ed4cdf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scm/bitbucketserver/bitbucket_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (b *BitbucketServer) pullRequestStatus(client *bitbucketv1.APIClient, proje
return scm.PullRequestStatusClosed, nil
}

response, err := client.DefaultApi.CanMerge(project, repoName, int64(pr.ID))
response, err := client.DefaultApi.CanMerge(project, repoName, pr.ID)
if err != nil {
return scm.PullRequestStatusUnknown, err
}
Expand Down Expand Up @@ -486,7 +486,7 @@ func (b *BitbucketServer) ClosePullRequest(ctx context.Context, pr scm.PullReque

client := newClient(ctx, b.config)

_, err := client.DefaultApi.DeleteWithVersion(bitbucketPR.project, bitbucketPR.repoName, int64(bitbucketPR.number), int64(bitbucketPR.version))
_, err := client.DefaultApi.DeleteWithVersion(bitbucketPR.project, bitbucketPR.repoName, bitbucketPR.number, int(bitbucketPR.version))
if err != nil {
return err
}
Expand Down

0 comments on commit ed4cdf1

Please sign in to comment.