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: prapi.go
    path of file: ./repos/gh-dash/data
    
    the code of the file until where you have to start completion: package data

import (
	"fmt"
	"net/url"
	"time"

	"github.com/charmbracelet/log"
	gh "github.com/cli/go-gh/v2/pkg/api"
	
    
func FetchPullRequest(prUrl string) (PullRequestData, error) {
	var err error
	client, err := gh.DefaultGraphQLClient()

	if err != nil {
		return PullRequestData{}, err
	}

	var queryResult struct {
		Resource struct {
			PullRequest PullRequestData `graphql:"... on PullRequest"`
		} `graphql:"resource(url: $url)"`
	}
	parsedUrl, err := url.Parse(prUrl)
	if err != nil {
		return PullRequestData{}, err
	}
	variables := map[string]interface{}{
		"url": githubv4.URI{URL: parsedUrl},
	}
	log.Debug("Fetching PR", "url", prUrl)
	err = client.Query("FetchPullRequest", &queryResult, variables)
	if err != nil {
		return PullRequestData{}, err
	}
	log.Debug("Successfully fetched PR", "url", prUrl, "data", queryResult.Resource.PullRequest)

	return queryResult.Resource.PullRequest, nil
}