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: github.go
    path of file: ./repos/cockroach/pkg/cmd/docs-issue-generation
    
    the code of the file until where you have to start completion: // Copyright 2023 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.

package main

import (
	"fmt"
	"regexp"
	"strings"
	"time"
)

var (
	exalateJiraRefPart = `Jira issue: ` + jiraIssuePart // e.g., Jira issue: CRDB-54321
	exalateJiraRefRE   = regexp.MustCompile(exalateJiraRefPart)
	nonBugFixRNRE      = regexp.MustCompile(`(?i)release note:? \(([^b]|b[^u]|bu[^g]|bug\S|bug [^f]|bug f[^i]|bug fi[^x]).*`)
)

func searchCockroachPRs(st
    
func searchCockroachReleaseBranchesSingle(cursor string) (bool, string, []string, error) {
	var search gqlRef
	var result []string
	query := `query ($cursor: String) {
  repository(owner: "cockroachdb", name: "cockroach") {
    refs(
      first: 100
      refPrefix: "refs/"
      query: "heads/release-"
      after: $cursor
      orderBy: {field: TAG_COMMIT_DATE, direction: DESC}
    ) {
      edges {
        node {
          name
        }
      }
      pageInfo {
        hasNextPage
        endCursor
      }
    }
  }
}`
	queryVariables := make(map[string]interface{})
	if cursor != "" {
		queryVariables["cursor"] = cursor
	}
	err := queryGraphQL(query, queryVariables, &search)
	if err != nil {
		return false, "", []string{}, err
	}
	for _, x := range search.Data.Repository.Refs.Edges {
		result = append(result, strings.Replace(x.Node.Name, "heads/", "", -1))
	}
	pageInfo := search.Data.Repository.Refs.PageInfo
	return pageInfo.HasNextPage, pageInfo.EndCursor, result, nil
}