MCPcopy Create free account
hub / github.com/bluekeyes/patch2pr / NewGraphQLApplier

Function NewGraphQLApplier

graphql_applier.go:53–61  ·  view source on GitHub ↗

NewGraphQLApplier creates an applier for a repository. The applier applies changes on top of base, the full OID (SHA) of a commit.

(client *githubv4.Client, repo Repository, base string)

Source from the content-addressed store, hash-verified

51// NewGraphQLApplier creates an applier for a repository. The applier applies
52// changes on top of base, the full OID (SHA) of a commit.
53func NewGraphQLApplier(client *githubv4.Client, repo Repository, base string) *GraphQLApplier {
54 a := &GraphQLApplier{
55 v4client: client,
56 owner: repo.Owner,
57 repo: repo.Name,
58 }
59 a.Reset(base)
60 return a
61}
62
63// SetV3Client sets a REST API client used to implement functionality missing
64// in the GraphQL API. Without a V3 client, the applier will fail on patches

Callers 1

runGraphQLPatchTestFunction · 0.85

Calls 1

ResetMethod · 0.95

Tested by 1

runGraphQLPatchTestFunction · 0.68