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)
| 51 | // NewGraphQLApplier creates an applier for a repository. The applier applies |
| 52 | // changes on top of base, the full OID (SHA) of a commit. |
| 53 | func 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 |