You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: client_pull_request.go
    path of file: ./repos/cds/engine/vcs/bitbucketcloud
    
    the code of the file until where you have to start completion: package bitbucketcloud

import (
	"bytes"
	"context"
	"encoding/json"
	"fmt"
	"io"
	"net/url"

	"github.com/rockbears/log"

	"github.com/ovh/cds/sdk"
)

func (client *bitbucketcloudClient) PullRequest(ctx context.Context, fullname string, id string) (sdk.VCSPullRequest, error) {
	url := fmt.Sprintf("/repositories/%s/pullrequests/%s", fullname, id)
	status, body, _, err := client.get(ctx, url)
	if err != nil {
		log.Warn(ctx, "bitbucketcloudClient.Pullrequest> Er
    
func (client *bitbucketcloudClient) PullRequest(ctx context.Context, fullname string, id string) (sdk.VCSPullRequest, error) {
	url := fmt.Sprintf("/repositories/%s/pullrequests/%s", fullname, id)
	status, body, _, err := client.get(ctx, url)
	if err != nil {
		log.Warn(ctx, "bitbucketcloudClient.Pullrequest> Error %s", err)
		return sdk.VCSPullRequest{}, err
	}
	if status >= 400 {
		return sdk.VCSPullRequest{}, sdk.NewError(sdk.ErrRepoNotFound, errorAPI(body))
	}
	var pullrequest PullRequest
	if err := sdk.JSONUnmarshal(body, &pullrequest); err != nil {
		log.Warn(ctx, "bitbucketcloudClient.PullRequest> Unable to parse bitbucket cloud commit: %s", err)
		return sdk.VCSPullRequest{}, err
	}

	return pullrequest.ToVCSPullRequest(), nil
}