From feef991e18e9ff8108421ede5d049971569a9e42 Mon Sep 17 00:00:00 2001 From: hubot Date: Thu, 18 Jul 2019 01:02:36 +0000 Subject: [PATCH] :arrow_up: GraphQL schema --- graphql/schema.graphql | 113 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/graphql/schema.graphql b/graphql/schema.graphql index 402867c108..af1233d4b1 100644 --- a/graphql/schema.graphql +++ b/graphql/schema.graphql @@ -3022,6 +3022,9 @@ input CreateProjectInput { """The description of project.""" body: String + """The name of the GitHub-provided template.""" + template: ProjectTemplate + """A unique identifier for the client performing the mutation.""" clientMutationId: String } @@ -5835,6 +5838,41 @@ enum MergeableState { UNKNOWN } +"""Autogenerated input type of MergeBranch""" +input MergeBranchInput { + """ + The Node ID of the Repository containing the base branch that will be modified. + """ + repositoryId: ID! + + """ + The name of the base branch that the provided head will be merged into. + """ + base: String! + + """ + The head to merge into the base branch. This can be a branch name or a commit GitObjectID. + """ + head: String! + + """ + Message to use for the merge commit. If omitted, a default will be used. + """ + commitMessage: String + + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""Autogenerated return type of MergeBranch""" +type MergeBranchPayload { + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + + """The resulting merge Commit.""" + mergeCommit: Commit +} + """Represents a 'merged' event on a given pull request.""" type MergedEvent implements Node & UniformResourceLocatable { """Identifies the actor who performed the event.""" @@ -6278,6 +6316,9 @@ type Mutation { """Lock a lockable object""" lockLockable(input: LockLockableInput!): LockLockablePayload + """Merge a head into a branch.""" + mergeBranch(input: MergeBranchInput!): MergeBranchPayload + """Merge a pull request.""" mergePullRequest(input: MergePullRequestInput!): MergePullRequestPayload @@ -6365,6 +6406,9 @@ type Mutation { """Update a Git Ref.""" updateRef(input: UpdateRefInput!): UpdateRefPayload + """Update information about a repository.""" + updateRepository(input: UpdateRepositoryInput!): UpdateRepositoryPayload + """Updates the state for subscribable subjects.""" updateSubscription(input: UpdateSubscriptionInput!): UpdateSubscriptionPayload @@ -7528,6 +7572,27 @@ enum ProjectState { CLOSED } +"""GitHub-provided templates for Projects""" +enum ProjectTemplate { + """Create a board with columns for To do, In progress and Done.""" + BASIC_KANBAN + + """ + Create a board with v2 triggers to automatically move cards across To do, In progress and Done columns. + """ + AUTOMATED_KANBAN_V2 + + """ + Create a board with triggers to automatically move cards across columns with review automation. + """ + AUTOMATED_REVIEWS_KANBAN + + """ + Create a board to triage and prioritize bugs with To do, priority, and Done columns. + """ + BUG_TRIAGE +} + """A user's public key.""" type PublicKey implements Node { """ @@ -13117,6 +13182,54 @@ type UpdateRefPayload { ref: Ref } +"""Autogenerated input type of UpdateRepository""" +input UpdateRepositoryInput { + """The ID of the repository to update.""" + repositoryId: ID! + + """The new name of the repository.""" + name: String + + """ + A new description for the repository. Pass an empty string to erase the existing description. + """ + description: String + + """ + Whether this repository should be marked as a template such that anyone who + can access it can create new repositories with the same files and directory structure. + """ + template: Boolean + + """ + The URL for a web page about this repository. Pass an empty string to erase the existing URL. + """ + homepageUrl: URI + + """Indicates if the repository should have the wiki feature enabled.""" + hasWikiEnabled: Boolean + + """Indicates if the repository should have the issues feature enabled.""" + hasIssuesEnabled: Boolean + + """ + Indicates if the repository should have the project boards feature enabled. + """ + hasProjectsEnabled: Boolean + + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""Autogenerated return type of UpdateRepository""" +type UpdateRepositoryPayload { + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + + """The updated repository.""" + repository: Repository +} + """Autogenerated input type of UpdateSubscription""" input UpdateSubscriptionInput { """The Node ID of the subscribable object to modify."""