MCPcopy Index your code
hub / github.com/bluekeyes/patch2pr / NewReference

Function NewReference

reference.go:20–31  ·  view source on GitHub ↗

NewReference creates a new Reference for ref in repo.

(client *github.Client, repo Repository, ref string)

Source from the content-addressed store, hash-verified

18
19// NewReference creates a new Reference for ref in repo.
20func NewReference(client *github.Client, repo Repository, ref string) *Reference {
21 if !strings.HasPrefix(ref, "refs/") {
22 ref = fmt.Sprintf("refs/%s", ref)
23 }
24
25 return &Reference{
26 client: client,
27 owner: repo.Owner,
28 repo: repo.Name,
29 ref: ref,
30 }
31}
32
33// Set creates or updates the reference to point to sha. If force is true and
34// the reference exists, Set updates it even if the update is not a

Callers 3

executeFunction · 0.92
runGraphQLPatchTestFunction · 0.85
runPatchTestFunction · 0.85

Calls

no outgoing calls

Tested by 2

runGraphQLPatchTestFunction · 0.68
runPatchTestFunction · 0.68