From 157c03580dc9e341d7adff06492a4957e1710193 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 12 Apr 2020 14:49:23 -0400 Subject: [PATCH] api: rename Repository { head } -> HEAD --- graphql/graph/generated/generated.go | 10 +++++----- graphql/graph/schema.graphqls | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/graphql/graph/generated/generated.go b/graphql/graph/generated/generated.go index 3895a31..a213703 100644 --- a/graphql/graph/generated/generated.go +++ b/graphql/graph/generated/generated.go @@ -603,7 +603,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Repository.File(childComplexity, args["revspec"].(*string), args["path"].(string)), true - case "Repository.head": + case "Repository.HEAD": if e.complexity.Repository.Head == nil { break } @@ -1109,7 +1109,7 @@ type Repository { # SHA in the log # The HEAD reference for this repository (equivalent to the default branch) - head: Reference + HEAD: Reference # Returns a list of comments, starting from revspec log(revspec: String = "HEAD", count: Int = 10): [Commit]! @@ -3681,7 +3681,7 @@ func (ec *executionContext) _Repository_objects(ctx context.Context, field graph return ec.marshalNObject2ᚕgitᚗsrᚗhtᚋאsircmpwnᚋgitᚗsrᚗhtᚋgraphqlᚋgraphᚋmodelᚐObject(ctx, field.Selections, res) } -func (ec *executionContext) _Repository_head(ctx context.Context, field graphql.CollectedField, obj *model.Repository) (ret graphql.Marshaler) { +func (ec *executionContext) _Repository_HEAD(ctx context.Context, field graphql.CollectedField, obj *model.Repository) (ret graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -6701,8 +6701,8 @@ func (ec *executionContext) _Repository(ctx context.Context, sel ast.SelectionSe if out.Values[i] == graphql.Null { atomic.AddUint32(&invalids, 1) } - case "head": - out.Values[i] = ec._Repository_head(ctx, field, obj) + case "HEAD": + out.Values[i] = ec._Repository_HEAD(ctx, field, obj) case "log": out.Values[i] = ec._Repository_log(ctx, field, obj) if out.Values[i] == graphql.Null { diff --git a/graphql/graph/schema.graphqls b/graphql/graph/schema.graphqls index 055e1c4..6f8d401 100644 --- a/graphql/graph/schema.graphqls +++ b/graphql/graph/schema.graphqls @@ -95,7 +95,7 @@ type Repository { # SHA in the log # The HEAD reference for this repository (equivalent to the default branch) - head: Reference + HEAD: Reference # Returns a list of comments, starting from revspec log(revspec: String = "HEAD", count: Int = 10): [Commit]! -- 2.38.4