diff --git a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/generated-graphql.go b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/generated-graphql.go index c74e9ae0..c7f5bddb 100644 --- a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/generated-graphql.go +++ b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/generated-graphql.go @@ -11,6 +11,340 @@ import ( "github.com/Khan/genqlient/graphql" ) +// BranchNode includes the requested fields of the GraphQL type Ref. +// The GraphQL type's documentation follows. +// +// Represents a Git reference. +type BranchNode struct { + // The ref name. + Name string `json:"name"` + // Compares the current ref as a base ref to another head ref, if the comparison can be made. + Compare BranchNodeCompareComparison `json:"compare"` +} + +// GetName returns BranchNode.Name, and is useful for accessing the field via an interface. +func (v *BranchNode) GetName() string { return v.Name } + +// GetCompare returns BranchNode.Compare, and is useful for accessing the field via an interface. +func (v *BranchNode) GetCompare() BranchNodeCompareComparison { return v.Compare } + +// BranchNodeCompareComparison includes the requested fields of the GraphQL type Comparison. +// The GraphQL type's documentation follows. +// +// Represents a comparison between two commit revisions. +type BranchNodeCompareComparison struct { + // The number of commits ahead of the base branch. + AheadBy int `json:"aheadBy"` + // The number of commits behind the base branch. + BehindBy int `json:"behindBy"` +} + +// GetAheadBy returns BranchNodeCompareComparison.AheadBy, and is useful for accessing the field via an interface. +func (v *BranchNodeCompareComparison) GetAheadBy() int { return v.AheadBy } + +// GetBehindBy returns BranchNodeCompareComparison.BehindBy, and is useful for accessing the field via an interface. +func (v *BranchNodeCompareComparison) GetBehindBy() int { return v.BehindBy } + +// CommitNode includes the requested fields of the GraphQL type Ref. +// The GraphQL type's documentation follows. +// +// Represents a Git reference. +type CommitNode struct { + // The object the ref points to. Returns null when object does not exist. + Target CommitNodeTargetGitObject `json:"-"` +} + +// GetTarget returns CommitNode.Target, and is useful for accessing the field via an interface. +func (v *CommitNode) GetTarget() CommitNodeTargetGitObject { return v.Target } + +func (v *CommitNode) UnmarshalJSON(b []byte) error { + + if string(b) == "null" { + return nil + } + + var firstPass struct { + *CommitNode + Target json.RawMessage `json:"target"` + graphql.NoUnmarshalJSON + } + firstPass.CommitNode = v + + err := json.Unmarshal(b, &firstPass) + if err != nil { + return err + } + + { + dst := &v.Target + src := firstPass.Target + if len(src) != 0 && string(src) != "null" { + err = __unmarshalCommitNodeTargetGitObject( + src, dst) + if err != nil { + return fmt.Errorf( + "unable to unmarshal CommitNode.Target: %w", err) + } + } + } + return nil +} + +type __premarshalCommitNode struct { + Target json.RawMessage `json:"target"` +} + +func (v *CommitNode) MarshalJSON() ([]byte, error) { + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + return json.Marshal(premarshaled) +} + +func (v *CommitNode) __premarshalJSON() (*__premarshalCommitNode, error) { + var retval __premarshalCommitNode + + { + + dst := &retval.Target + src := v.Target + var err error + *dst, err = __marshalCommitNodeTargetGitObject( + &src) + if err != nil { + return nil, fmt.Errorf( + "unable to marshal CommitNode.Target: %w", err) + } + } + return &retval, nil +} + +// CommitNodeTargetBlob includes the requested fields of the GraphQL type Blob. +// The GraphQL type's documentation follows. +// +// Represents a Git blob. +type CommitNodeTargetBlob struct { + Typename string `json:"__typename"` +} + +// GetTypename returns CommitNodeTargetBlob.Typename, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetBlob) GetTypename() string { return v.Typename } + +// CommitNodeTargetCommit includes the requested fields of the GraphQL type Commit. +// The GraphQL type's documentation follows. +// +// Represents a Git commit. +type CommitNodeTargetCommit struct { + Typename string `json:"__typename"` + Id string `json:"id"` + // The linear commit history starting from (and including) this commit, in the same order as `git log`. + History CommitNodeTargetCommitHistoryCommitHistoryConnection `json:"history"` +} + +// GetTypename returns CommitNodeTargetCommit.Typename, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommit) GetTypename() string { return v.Typename } + +// GetId returns CommitNodeTargetCommit.Id, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommit) GetId() string { return v.Id } + +// GetHistory returns CommitNodeTargetCommit.History, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommit) GetHistory() CommitNodeTargetCommitHistoryCommitHistoryConnection { + return v.History +} + +// CommitNodeTargetCommitHistoryCommitHistoryConnection includes the requested fields of the GraphQL type CommitHistoryConnection. +// The GraphQL type's documentation follows. +// +// The connection type for Commit. +type CommitNodeTargetCommitHistoryCommitHistoryConnection struct { + // A list of edges. + Edges []CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge `json:"edges"` + // Information to aid in pagination. + PageInfo CommitNodeTargetCommitHistoryCommitHistoryConnectionPageInfo `json:"pageInfo"` +} + +// GetEdges returns CommitNodeTargetCommitHistoryCommitHistoryConnection.Edges, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommitHistoryCommitHistoryConnection) GetEdges() []CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge { + return v.Edges +} + +// GetPageInfo returns CommitNodeTargetCommitHistoryCommitHistoryConnection.PageInfo, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommitHistoryCommitHistoryConnection) GetPageInfo() CommitNodeTargetCommitHistoryCommitHistoryConnectionPageInfo { + return v.PageInfo +} + +// CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge includes the requested fields of the GraphQL type CommitEdge. +// The GraphQL type's documentation follows. +// +// An edge in a connection. +type CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge struct { + // The item at the end of the edge. + Node CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit `json:"node"` +} + +// GetNode returns CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge.Node, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge) GetNode() CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit { + return v.Node +} + +// CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit includes the requested fields of the GraphQL type Commit. +// The GraphQL type's documentation follows. +// +// Represents a Git commit. +type CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit struct { + // The datetime when this commit was committed. + CommittedDate time.Time `json:"committedDate"` +} + +// GetCommittedDate returns CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit.CommittedDate, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit) GetCommittedDate() time.Time { + return v.CommittedDate +} + +// CommitNodeTargetCommitHistoryCommitHistoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. +// The GraphQL type's documentation follows. +// +// Information about pagination in a connection. +type CommitNodeTargetCommitHistoryCommitHistoryConnectionPageInfo struct { + // When paginating forwards, the cursor to continue. + EndCursor string `json:"endCursor"` + // When paginating forwards, are there more items? + HasNextPage bool `json:"hasNextPage"` +} + +// GetEndCursor returns CommitNodeTargetCommitHistoryCommitHistoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommitHistoryCommitHistoryConnectionPageInfo) GetEndCursor() string { + return v.EndCursor +} + +// GetHasNextPage returns CommitNodeTargetCommitHistoryCommitHistoryConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetCommitHistoryCommitHistoryConnectionPageInfo) GetHasNextPage() bool { + return v.HasNextPage +} + +// CommitNodeTargetGitObject includes the requested fields of the GraphQL interface GitObject. +// +// CommitNodeTargetGitObject is implemented by the following types: +// CommitNodeTargetBlob +// CommitNodeTargetCommit +// CommitNodeTargetTag +// CommitNodeTargetTree +// The GraphQL type's documentation follows. +// +// Represents a Git object. +type CommitNodeTargetGitObject interface { + implementsGraphQLInterfaceCommitNodeTargetGitObject() + // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). + GetTypename() string +} + +func (v *CommitNodeTargetBlob) implementsGraphQLInterfaceCommitNodeTargetGitObject() {} +func (v *CommitNodeTargetCommit) implementsGraphQLInterfaceCommitNodeTargetGitObject() {} +func (v *CommitNodeTargetTag) implementsGraphQLInterfaceCommitNodeTargetGitObject() {} +func (v *CommitNodeTargetTree) implementsGraphQLInterfaceCommitNodeTargetGitObject() {} + +func __unmarshalCommitNodeTargetGitObject(b []byte, v *CommitNodeTargetGitObject) error { + if string(b) == "null" { + return nil + } + + var tn struct { + TypeName string `json:"__typename"` + } + err := json.Unmarshal(b, &tn) + if err != nil { + return err + } + + switch tn.TypeName { + case "Blob": + *v = new(CommitNodeTargetBlob) + return json.Unmarshal(b, *v) + case "Commit": + *v = new(CommitNodeTargetCommit) + return json.Unmarshal(b, *v) + case "Tag": + *v = new(CommitNodeTargetTag) + return json.Unmarshal(b, *v) + case "Tree": + *v = new(CommitNodeTargetTree) + return json.Unmarshal(b, *v) + case "": + return fmt.Errorf( + "response was missing GitObject.__typename") + default: + return fmt.Errorf( + `unexpected concrete type for CommitNodeTargetGitObject: "%v"`, tn.TypeName) + } +} + +func __marshalCommitNodeTargetGitObject(v *CommitNodeTargetGitObject) ([]byte, error) { + + var typename string + switch v := (*v).(type) { + case *CommitNodeTargetBlob: + typename = "Blob" + + result := struct { + TypeName string `json:"__typename"` + *CommitNodeTargetBlob + }{typename, v} + return json.Marshal(result) + case *CommitNodeTargetCommit: + typename = "Commit" + + result := struct { + TypeName string `json:"__typename"` + *CommitNodeTargetCommit + }{typename, v} + return json.Marshal(result) + case *CommitNodeTargetTag: + typename = "Tag" + + result := struct { + TypeName string `json:"__typename"` + *CommitNodeTargetTag + }{typename, v} + return json.Marshal(result) + case *CommitNodeTargetTree: + typename = "Tree" + + result := struct { + TypeName string `json:"__typename"` + *CommitNodeTargetTree + }{typename, v} + return json.Marshal(result) + case nil: + return []byte("null"), nil + default: + return nil, fmt.Errorf( + `unexpected concrete type for CommitNodeTargetGitObject: "%T"`, v) + } +} + +// CommitNodeTargetTag includes the requested fields of the GraphQL type Tag. +// The GraphQL type's documentation follows. +// +// Represents a Git tag. +type CommitNodeTargetTag struct { + Typename string `json:"__typename"` +} + +// GetTypename returns CommitNodeTargetTag.Typename, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetTag) GetTypename() string { return v.Typename } + +// CommitNodeTargetTree includes the requested fields of the GraphQL type Tree. +// The GraphQL type's documentation follows. +// +// Represents a Git tree. +type CommitNodeTargetTree struct { + Typename string `json:"__typename"` +} + +// GetTypename returns CommitNodeTargetTree.Typename, and is useful for accessing the field via an interface. +func (v *CommitNodeTargetTree) GetTypename() string { return v.Typename } + // SearchNode includes the requested fields of the GraphQL interface SearchResultItem. // // SearchNode is implemented by the following types: @@ -287,33 +621,69 @@ type __checkLoginInput struct { // GetLogin returns __checkLoginInput.Login, and is useful for accessing the field via an interface. func (v *__checkLoginInput) GetLogin() string { return v.Login } -// __getOrgRepoBranchInformationInput is used internally by genqlient -type __getOrgRepoBranchInformationInput struct { - Login string `json:"login"` - RepoCursor *string `json:"repoCursor"` +// __getBranchCountInput is used internally by genqlient +type __getBranchCountInput struct { + Name string `json:"name"` + Owner string `json:"owner"` +} + +// GetName returns __getBranchCountInput.Name, and is useful for accessing the field via an interface. +func (v *__getBranchCountInput) GetName() string { return v.Name } + +// GetOwner returns __getBranchCountInput.Owner, and is useful for accessing the field via an interface. +func (v *__getBranchCountInput) GetOwner() string { return v.Owner } + +// __getBranchDataInput is used internally by genqlient +type __getBranchDataInput struct { + Name string `json:"name"` + Owner string `json:"owner"` + BranchFirst int `json:"branchFirst"` + TargetBranch string `json:"targetBranch"` BranchCursor *string `json:"branchCursor"` } -// GetLogin returns __getOrgRepoBranchInformationInput.Login, and is useful for accessing the field via an interface. -func (v *__getOrgRepoBranchInformationInput) GetLogin() string { return v.Login } +// GetName returns __getBranchDataInput.Name, and is useful for accessing the field via an interface. +func (v *__getBranchDataInput) GetName() string { return v.Name } + +// GetOwner returns __getBranchDataInput.Owner, and is useful for accessing the field via an interface. +func (v *__getBranchDataInput) GetOwner() string { return v.Owner } -// GetRepoCursor returns __getOrgRepoBranchInformationInput.RepoCursor, and is useful for accessing the field via an interface. -func (v *__getOrgRepoBranchInformationInput) GetRepoCursor() *string { return v.RepoCursor } +// GetBranchFirst returns __getBranchDataInput.BranchFirst, and is useful for accessing the field via an interface. +func (v *__getBranchDataInput) GetBranchFirst() int { return v.BranchFirst } -// GetBranchCursor returns __getOrgRepoBranchInformationInput.BranchCursor, and is useful for accessing the field via an interface. -func (v *__getOrgRepoBranchInformationInput) GetBranchCursor() *string { return v.BranchCursor } +// GetTargetBranch returns __getBranchDataInput.TargetBranch, and is useful for accessing the field via an interface. +func (v *__getBranchDataInput) GetTargetBranch() string { return v.TargetBranch } -// __getOrgRepoDataInput is used internally by genqlient -type __getOrgRepoDataInput struct { - Login string `json:"login"` - RepoCursor *string `json:"repoCursor"` +// GetBranchCursor returns __getBranchDataInput.BranchCursor, and is useful for accessing the field via an interface. +func (v *__getBranchDataInput) GetBranchCursor() *string { return v.BranchCursor } + +// __getCommitDataInput is used internally by genqlient +type __getCommitDataInput struct { + Name string `json:"name"` + Owner string `json:"owner"` + BranchFirst int `json:"branchFirst"` + CommitFirst int `json:"commitFirst"` + CommitCursor *string `json:"commitCursor"` + BranchName string `json:"branchName"` } -// GetLogin returns __getOrgRepoDataInput.Login, and is useful for accessing the field via an interface. -func (v *__getOrgRepoDataInput) GetLogin() string { return v.Login } +// GetName returns __getCommitDataInput.Name, and is useful for accessing the field via an interface. +func (v *__getCommitDataInput) GetName() string { return v.Name } + +// GetOwner returns __getCommitDataInput.Owner, and is useful for accessing the field via an interface. +func (v *__getCommitDataInput) GetOwner() string { return v.Owner } + +// GetBranchFirst returns __getCommitDataInput.BranchFirst, and is useful for accessing the field via an interface. +func (v *__getCommitDataInput) GetBranchFirst() int { return v.BranchFirst } + +// GetCommitFirst returns __getCommitDataInput.CommitFirst, and is useful for accessing the field via an interface. +func (v *__getCommitDataInput) GetCommitFirst() int { return v.CommitFirst } -// GetRepoCursor returns __getOrgRepoDataInput.RepoCursor, and is useful for accessing the field via an interface. -func (v *__getOrgRepoDataInput) GetRepoCursor() *string { return v.RepoCursor } +// GetCommitCursor returns __getCommitDataInput.CommitCursor, and is useful for accessing the field via an interface. +func (v *__getCommitDataInput) GetCommitCursor() *string { return v.CommitCursor } + +// GetBranchName returns __getCommitDataInput.BranchName, and is useful for accessing the field via an interface. +func (v *__getCommitDataInput) GetBranchName() string { return v.BranchName } // __getRepoDataBySearchInput is used internally by genqlient type __getRepoDataBySearchInput struct { @@ -327,26 +697,6 @@ func (v *__getRepoDataBySearchInput) GetSearchQuery() string { return v.SearchQu // GetRepoCursor returns __getRepoDataBySearchInput.RepoCursor, and is useful for accessing the field via an interface. func (v *__getRepoDataBySearchInput) GetRepoCursor() *string { return v.RepoCursor } -// __getUserRepoBranchInformationInput is used internally by genqlient -type __getUserRepoBranchInformationInput struct { - Login string `json:"login"` -} - -// GetLogin returns __getUserRepoBranchInformationInput.Login, and is useful for accessing the field via an interface. -func (v *__getUserRepoBranchInformationInput) GetLogin() string { return v.Login } - -// __getUserRepoDataInput is used internally by genqlient -type __getUserRepoDataInput struct { - Login string `json:"login"` - RepoCursor *string `json:"repoCursor"` -} - -// GetLogin returns __getUserRepoDataInput.Login, and is useful for accessing the field via an interface. -func (v *__getUserRepoDataInput) GetLogin() string { return v.Login } - -// GetRepoCursor returns __getUserRepoDataInput.RepoCursor, and is useful for accessing the field via an interface. -func (v *__getUserRepoDataInput) GetRepoCursor() *string { return v.RepoCursor } - // checkLoginOrganization includes the requested fields of the GraphQL type Organization. // The GraphQL type's documentation follows. // @@ -385,1293 +735,271 @@ type checkLoginUser struct { // GetLogin returns checkLoginUser.Login, and is useful for accessing the field via an interface. func (v *checkLoginUser) GetLogin() string { return v.Login } -// getOrgRepoBranchInformationOrganization includes the requested fields of the GraphQL type Organization. +// getBranchCountRepository includes the requested fields of the GraphQL type Repository. // The GraphQL type's documentation follows. // -// An account on GitHub, with one or more owners, that has repositories, members and teams. -type getOrgRepoBranchInformationOrganization struct { - // A list of repositories that the user owns. - Repositories getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnection `json:"repositories"` +// A repository contains the content for a project. +type getBranchCountRepository struct { + // Fetch a list of refs from the repository + Refs getBranchCountRepositoryRefsRefConnection `json:"refs"` } -// GetRepositories returns getOrgRepoBranchInformationOrganization.Repositories, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganization) GetRepositories() getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnection { - return v.Repositories -} +// GetRefs returns getBranchCountRepository.Refs, and is useful for accessing the field via an interface. +func (v *getBranchCountRepository) GetRefs() getBranchCountRepositoryRefsRefConnection { return v.Refs } -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection. +// getBranchCountRepositoryRefsRefConnection includes the requested fields of the GraphQL type RefConnection. // The GraphQL type's documentation follows. // -// A list of repositories owned by the subject. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnection struct { - // A list of edges. - Edges []getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge `json:"edges"` +// The connection type for Ref. +type getBranchCountRepositoryRefsRefConnection struct { + // Identifies the total count of items in the connection. + TotalCount int `json:"totalCount"` } -// GetEdges returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnection.Edges, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnection) GetEdges() []getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge { - return v.Edges +// GetTotalCount returns getBranchCountRepositoryRefsRefConnection.TotalCount, and is useful for accessing the field via an interface. +func (v *getBranchCountRepositoryRefsRefConnection) GetTotalCount() int { return v.TotalCount } + +// getBranchCountResponse is returned by getBranchCount on success. +type getBranchCountResponse struct { + // Lookup a given repository by the owner and repository name. + Repository getBranchCountRepository `json:"repository"` } -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge includes the requested fields of the GraphQL type RepositoryEdge. +// GetRepository returns getBranchCountResponse.Repository, and is useful for accessing the field via an interface. +func (v *getBranchCountResponse) GetRepository() getBranchCountRepository { return v.Repository } + +// getBranchDataRepository includes the requested fields of the GraphQL type Repository. // The GraphQL type's documentation follows. // -// An edge in a connection. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge struct { - // The item at the end of the edge. - Node getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository `json:"node"` -} - -// GetNode returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge.Node, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge) GetNode() getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository { - return v.Node -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository includes the requested fields of the GraphQL type Repository. -// The GraphQL type's documentation follows. -// -// A repository contains the content for a project. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository struct { - // The name of the repository. - Name string `json:"name"` - // Fetch a list of refs from the repository - Refs getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection `json:"refs"` -} - -// GetName returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Name, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetName() string { - return v.Name -} - -// GetRefs returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Refs, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetRefs() getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection { - return v.Refs -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection includes the requested fields of the GraphQL type RefConnection. -// The GraphQL type's documentation follows. -// -// The connection type for Ref. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection struct { - // Identifies the total count of items in the connection. - TotalCount int `json:"totalCount"` - // A list of nodes. - Nodes []getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef `json:"nodes"` - // Information to aid in pagination. - PageInfo getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo `json:"pageInfo"` -} - -// GetTotalCount returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection.TotalCount, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection) GetTotalCount() int { - return v.TotalCount -} - -// GetNodes returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection.Nodes, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection) GetNodes() []getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef { - return v.Nodes -} - -// GetPageInfo returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection.PageInfo, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection) GetPageInfo() getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo { - return v.PageInfo -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef includes the requested fields of the GraphQL type Ref. -// The GraphQL type's documentation follows. -// -// Represents a Git reference. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef struct { - // The ref name. - Name string `json:"name"` - // The object the ref points to. Returns null when object does not exist. - Target getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject `json:"-"` -} - -// GetName returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef.Name, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) GetName() string { - return v.Name -} - -// GetTarget returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef.Target, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) GetTarget() getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject { - return v.Target -} - -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) UnmarshalJSON(b []byte) error { - - if string(b) == "null" { - return nil - } - - var firstPass struct { - *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef - Target json.RawMessage `json:"target"` - graphql.NoUnmarshalJSON - } - firstPass.getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef = v - - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } - - { - dst := &v.Target - src := firstPass.Target - if len(src) != 0 && string(src) != "null" { - err = __unmarshalgetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef.Target: %w", err) - } - } - } - return nil -} - -type __premarshalgetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef struct { - Name string `json:"name"` - - Target json.RawMessage `json:"target"` -} - -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} - -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) __premarshalJSON() (*__premarshalgetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef, error) { - var retval __premarshalgetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef - - retval.Name = v.Name - { - - dst := &retval.Target - src := v.Target - var err error - *dst, err = __marshalgetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef.Target: %w", err) - } - } - return &retval, nil -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob includes the requested fields of the GraphQL type Blob. -// The GraphQL type's documentation follows. -// -// Represents a Git blob. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob struct { - Typename string `json:"__typename"` -} - -// GetTypename returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob.Typename, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob) GetTypename() string { - return v.Typename -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit includes the requested fields of the GraphQL type Commit. -// The GraphQL type's documentation follows. -// -// Represents a Git commit. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit struct { - Typename string `json:"__typename"` - Id string `json:"id"` - // The linear commit history starting from (and including) this commit, in the same order as `git log`. - History getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection `json:"history"` -} - -// GetTypename returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit.Typename, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) GetTypename() string { - return v.Typename -} - -// GetId returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit.Id, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) GetId() string { - return v.Id -} - -// GetHistory returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit.History, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) GetHistory() getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection { - return v.History -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection includes the requested fields of the GraphQL type CommitHistoryConnection. -// The GraphQL type's documentation follows. -// -// The connection type for Commit. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection struct { - // Identifies the total count of items in the connection. - TotalCount int `json:"totalCount"` - // A list of edges. - Edges []getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge `json:"edges"` - // Information to aid in pagination. - PageInfo getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo `json:"pageInfo"` -} - -// GetTotalCount returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection.TotalCount, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection) GetTotalCount() int { - return v.TotalCount -} - -// GetEdges returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection.Edges, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection) GetEdges() []getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge { - return v.Edges -} - -// GetPageInfo returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection.PageInfo, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection) GetPageInfo() getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo { - return v.PageInfo -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge includes the requested fields of the GraphQL type CommitEdge. -// The GraphQL type's documentation follows. -// -// An edge in a connection. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge struct { - // The item at the end of the edge. - Node getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit `json:"node"` -} - -// GetNode returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge.Node, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge) GetNode() getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit { - return v.Node -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit includes the requested fields of the GraphQL type Commit. -// The GraphQL type's documentation follows. -// -// Represents a Git commit. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit struct { - // The datetime when this commit was committed. - CommittedDate time.Time `json:"committedDate"` -} - -// GetCommittedDate returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit.CommittedDate, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit) GetCommittedDate() time.Time { - return v.CommittedDate -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. -// The GraphQL type's documentation follows. -// -// Information about pagination in a connection. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo struct { - // When paginating forwards, the cursor to continue. - EndCursor string `json:"endCursor"` -} - -// GetEndCursor returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo) GetEndCursor() string { - return v.EndCursor -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject includes the requested fields of the GraphQL interface GitObject. -// -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject is implemented by the following types: -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree -// The GraphQL type's documentation follows. -// -// Represents a Git object. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject interface { - implementsGraphQLInterfacegetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() - // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). - GetTypename() string -} - -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob) implementsGraphQLInterfacegetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() { -} -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) implementsGraphQLInterfacegetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() { -} -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag) implementsGraphQLInterfacegetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() { -} -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree) implementsGraphQLInterfacegetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() { -} - -func __unmarshalgetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject(b []byte, v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject) error { - if string(b) == "null" { - return nil - } - - var tn struct { - TypeName string `json:"__typename"` - } - err := json.Unmarshal(b, &tn) - if err != nil { - return err - } - - switch tn.TypeName { - case "Blob": - *v = new(getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob) - return json.Unmarshal(b, *v) - case "Commit": - *v = new(getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) - return json.Unmarshal(b, *v) - case "Tag": - *v = new(getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag) - return json.Unmarshal(b, *v) - case "Tree": - *v = new(getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree) - return json.Unmarshal(b, *v) - case "": - return fmt.Errorf( - "response was missing GitObject.__typename") - default: - return fmt.Errorf( - `unexpected concrete type for getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject: "%v"`, tn.TypeName) - } -} - -func __marshalgetOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject(v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject) ([]byte, error) { - - var typename string - switch v := (*v).(type) { - case *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob: - typename = "Blob" - - result := struct { - TypeName string `json:"__typename"` - *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob - }{typename, v} - return json.Marshal(result) - case *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit: - typename = "Commit" - - result := struct { - TypeName string `json:"__typename"` - *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit - }{typename, v} - return json.Marshal(result) - case *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag: - typename = "Tag" - - result := struct { - TypeName string `json:"__typename"` - *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag - }{typename, v} - return json.Marshal(result) - case *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree: - typename = "Tree" - - result := struct { - TypeName string `json:"__typename"` - *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree - }{typename, v} - return json.Marshal(result) - case nil: - return []byte("null"), nil - default: - return nil, fmt.Errorf( - `unexpected concrete type for getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject: "%T"`, v) - } -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag includes the requested fields of the GraphQL type Tag. -// The GraphQL type's documentation follows. -// -// Represents a Git tag. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag struct { - Typename string `json:"__typename"` -} - -// GetTypename returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag.Typename, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag) GetTypename() string { - return v.Typename -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree includes the requested fields of the GraphQL type Tree. -// The GraphQL type's documentation follows. -// -// Represents a Git tree. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree struct { - Typename string `json:"__typename"` -} - -// GetTypename returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree.Typename, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree) GetTypename() string { - return v.Typename -} - -// getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. -// The GraphQL type's documentation follows. -// -// Information about pagination in a connection. -type getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo struct { - // When paginating forwards, the cursor to continue. - EndCursor string `json:"endCursor"` - // When paginating backwards, the cursor to continue. - StartCursor string `json:"startCursor"` -} - -// GetEndCursor returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo) GetEndCursor() string { - return v.EndCursor -} - -// GetStartCursor returns getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo.StartCursor, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo) GetStartCursor() string { - return v.StartCursor -} - -// getOrgRepoBranchInformationResponse is returned by getOrgRepoBranchInformation on success. -type getOrgRepoBranchInformationResponse struct { - // Lookup a organization by login. - Organization getOrgRepoBranchInformationOrganization `json:"organization"` -} - -// GetOrganization returns getOrgRepoBranchInformationResponse.Organization, and is useful for accessing the field via an interface. -func (v *getOrgRepoBranchInformationResponse) GetOrganization() getOrgRepoBranchInformationOrganization { - return v.Organization -} - -// getOrgRepoDataOrganization includes the requested fields of the GraphQL type Organization. -// The GraphQL type's documentation follows. -// -// An account on GitHub, with one or more owners, that has repositories, members and teams. -type getOrgRepoDataOrganization struct { - // A list of repositories that the user owns. - Repositories getOrgRepoDataOrganizationRepositoriesRepositoryConnection `json:"repositories"` -} - -// GetRepositories returns getOrgRepoDataOrganization.Repositories, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganization) GetRepositories() getOrgRepoDataOrganizationRepositoriesRepositoryConnection { - return v.Repositories -} - -// getOrgRepoDataOrganizationRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection. -// The GraphQL type's documentation follows. -// -// A list of repositories owned by the subject. -type getOrgRepoDataOrganizationRepositoriesRepositoryConnection struct { - // Identifies the total count of items in the connection. - TotalCount int `json:"totalCount"` - // Information to aid in pagination. - PageInfo getOrgRepoDataOrganizationRepositoriesRepositoryConnectionPageInfo `json:"pageInfo"` - // A list of edges. - Edges []getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge `json:"edges"` -} - -// GetTotalCount returns getOrgRepoDataOrganizationRepositoriesRepositoryConnection.TotalCount, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnection) GetTotalCount() int { - return v.TotalCount -} - -// GetPageInfo returns getOrgRepoDataOrganizationRepositoriesRepositoryConnection.PageInfo, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnection) GetPageInfo() getOrgRepoDataOrganizationRepositoriesRepositoryConnectionPageInfo { - return v.PageInfo -} - -// GetEdges returns getOrgRepoDataOrganizationRepositoriesRepositoryConnection.Edges, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnection) GetEdges() []getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge { - return v.Edges -} - -// getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge includes the requested fields of the GraphQL type RepositoryEdge. -// The GraphQL type's documentation follows. -// -// An edge in a connection. -type getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge struct { - // The item at the end of the edge. - Node getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository `json:"node"` -} - -// GetNode returns getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge.Node, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge) GetNode() getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository { - return v.Node -} - -// getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository includes the requested fields of the GraphQL type Repository. -// The GraphQL type's documentation follows. -// -// A repository contains the content for a project. -type getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository struct { - Id string `json:"id"` - // The name of the repository. - Name string `json:"name"` - // The Ref associated with the repository's default branch. - DefaultBranchRef getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef `json:"defaultBranchRef"` -} - -// GetId returns getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Id, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetId() string { - return v.Id -} - -// GetName returns getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Name, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetName() string { - return v.Name -} - -// GetDefaultBranchRef returns getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.DefaultBranchRef, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetDefaultBranchRef() getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef { - return v.DefaultBranchRef -} - -// getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef includes the requested fields of the GraphQL type Ref. -// The GraphQL type's documentation follows. -// -// Represents a Git reference. -type getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef struct { - // The ref name. - Name string `json:"name"` -} - -// GetName returns getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef.Name, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef) GetName() string { - return v.Name -} - -// getOrgRepoDataOrganizationRepositoriesRepositoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. -// The GraphQL type's documentation follows. -// -// Information about pagination in a connection. -type getOrgRepoDataOrganizationRepositoriesRepositoryConnectionPageInfo struct { - // When paginating forwards, the cursor to continue. - EndCursor string `json:"endCursor"` - // When paginating forwards, are there more items? - HasNextPage bool `json:"hasNextPage"` -} - -// GetEndCursor returns getOrgRepoDataOrganizationRepositoriesRepositoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnectionPageInfo) GetEndCursor() string { - return v.EndCursor -} - -// GetHasNextPage returns getOrgRepoDataOrganizationRepositoriesRepositoryConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataOrganizationRepositoriesRepositoryConnectionPageInfo) GetHasNextPage() bool { - return v.HasNextPage -} - -// getOrgRepoDataResponse is returned by getOrgRepoData on success. -type getOrgRepoDataResponse struct { - // Lookup a organization by login. - Organization getOrgRepoDataOrganization `json:"organization"` -} - -// GetOrganization returns getOrgRepoDataResponse.Organization, and is useful for accessing the field via an interface. -func (v *getOrgRepoDataResponse) GetOrganization() getOrgRepoDataOrganization { return v.Organization } - -// getRepoDataBySearchResponse is returned by getRepoDataBySearch on success. -type getRepoDataBySearchResponse struct { - // Perform a search across resources, returning a maximum of 1,000 results. - Search getRepoDataBySearchSearchSearchResultItemConnection `json:"search"` -} - -// GetSearch returns getRepoDataBySearchResponse.Search, and is useful for accessing the field via an interface. -func (v *getRepoDataBySearchResponse) GetSearch() getRepoDataBySearchSearchSearchResultItemConnection { - return v.Search -} - -// getRepoDataBySearchSearchSearchResultItemConnection includes the requested fields of the GraphQL type SearchResultItemConnection. -// The GraphQL type's documentation follows. -// -// A list of results that matched against a search query. Regardless of the number of matches, a maximum of 1,000 results will be available across all types, potentially split across many pages. -type getRepoDataBySearchSearchSearchResultItemConnection struct { - // The total number of repositories that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. - RepositoryCount int `json:"repositoryCount"` - // A list of edges. - Edges []getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge `json:"edges"` - // Information to aid in pagination. - PageInfo getRepoDataBySearchSearchSearchResultItemConnectionPageInfo `json:"pageInfo"` -} - -// GetRepositoryCount returns getRepoDataBySearchSearchSearchResultItemConnection.RepositoryCount, and is useful for accessing the field via an interface. -func (v *getRepoDataBySearchSearchSearchResultItemConnection) GetRepositoryCount() int { - return v.RepositoryCount -} - -// GetEdges returns getRepoDataBySearchSearchSearchResultItemConnection.Edges, and is useful for accessing the field via an interface. -func (v *getRepoDataBySearchSearchSearchResultItemConnection) GetEdges() []getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge { - return v.Edges -} - -// GetPageInfo returns getRepoDataBySearchSearchSearchResultItemConnection.PageInfo, and is useful for accessing the field via an interface. -func (v *getRepoDataBySearchSearchSearchResultItemConnection) GetPageInfo() getRepoDataBySearchSearchSearchResultItemConnectionPageInfo { - return v.PageInfo -} - -// getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge includes the requested fields of the GraphQL type SearchResultItemEdge. -// The GraphQL type's documentation follows. -// -// An edge in a connection. -type getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge struct { - // The item at the end of the edge. - Node SearchNode `json:"-"` -} - -// GetNode returns getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge.Node, and is useful for accessing the field via an interface. -func (v *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge) GetNode() SearchNode { - return v.Node -} - -func (v *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge) UnmarshalJSON(b []byte) error { - - if string(b) == "null" { - return nil - } - - var firstPass struct { - *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge - Node json.RawMessage `json:"node"` - graphql.NoUnmarshalJSON - } - firstPass.getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge = v - - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } - - { - dst := &v.Node - src := firstPass.Node - if len(src) != 0 && string(src) != "null" { - err = __unmarshalSearchNode( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge.Node: %w", err) - } - } - } - return nil -} - -type __premarshalgetRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge struct { - Node json.RawMessage `json:"node"` -} - -func (v *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} - -func (v *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge) __premarshalJSON() (*__premarshalgetRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge, error) { - var retval __premarshalgetRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge - - { - - dst := &retval.Node - src := v.Node - var err error - *dst, err = __marshalSearchNode( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge.Node: %w", err) - } - } - return &retval, nil -} - -// getRepoDataBySearchSearchSearchResultItemConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. -// The GraphQL type's documentation follows. -// -// Information about pagination in a connection. -type getRepoDataBySearchSearchSearchResultItemConnectionPageInfo struct { - // When paginating forwards, are there more items? - HasNextPage bool `json:"hasNextPage"` - // When paginating forwards, the cursor to continue. - EndCursor string `json:"endCursor"` -} - -// GetHasNextPage returns getRepoDataBySearchSearchSearchResultItemConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface. -func (v *getRepoDataBySearchSearchSearchResultItemConnectionPageInfo) GetHasNextPage() bool { - return v.HasNextPage -} - -// GetEndCursor returns getRepoDataBySearchSearchSearchResultItemConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. -func (v *getRepoDataBySearchSearchSearchResultItemConnectionPageInfo) GetEndCursor() string { - return v.EndCursor -} - -// getUserRepoBranchInformationOrganization includes the requested fields of the GraphQL type Organization. -// The GraphQL type's documentation follows. -// -// An account on GitHub, with one or more owners, that has repositories, members and teams. -type getUserRepoBranchInformationOrganization struct { - // A list of repositories that the user owns. - Repositories getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnection `json:"repositories"` -} - -// GetRepositories returns getUserRepoBranchInformationOrganization.Repositories, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganization) GetRepositories() getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnection { - return v.Repositories -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection. -// The GraphQL type's documentation follows. -// -// A list of repositories owned by the subject. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnection struct { - // A list of edges. - Edges []getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge `json:"edges"` -} - -// GetEdges returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnection.Edges, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnection) GetEdges() []getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge { - return v.Edges -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge includes the requested fields of the GraphQL type RepositoryEdge. -// The GraphQL type's documentation follows. -// -// An edge in a connection. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge struct { - // The item at the end of the edge. - Node getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository `json:"node"` -} - -// GetNode returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge.Node, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge) GetNode() getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository { - return v.Node -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository includes the requested fields of the GraphQL type Repository. -// The GraphQL type's documentation follows. -// -// A repository contains the content for a project. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository struct { - // The name of the repository. - Name string `json:"name"` - // Fetch a list of refs from the repository - Refs getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection `json:"refs"` -} - -// GetName returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Name, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetName() string { - return v.Name -} - -// GetRefs returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Refs, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetRefs() getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection { - return v.Refs -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection includes the requested fields of the GraphQL type RefConnection. -// The GraphQL type's documentation follows. -// -// The connection type for Ref. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection struct { - // Identifies the total count of items in the connection. - TotalCount int `json:"totalCount"` - // A list of nodes. - Nodes []getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef `json:"nodes"` - // Information to aid in pagination. - PageInfo getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo `json:"pageInfo"` -} - -// GetTotalCount returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection.TotalCount, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection) GetTotalCount() int { - return v.TotalCount -} - -// GetNodes returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection.Nodes, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection) GetNodes() []getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef { - return v.Nodes -} - -// GetPageInfo returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection.PageInfo, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnection) GetPageInfo() getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo { - return v.PageInfo -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef includes the requested fields of the GraphQL type Ref. -// The GraphQL type's documentation follows. -// -// Represents a Git reference. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef struct { - // The ref name. - Name string `json:"name"` - // The object the ref points to. Returns null when object does not exist. - Target getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject `json:"-"` -} - -// GetName returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef.Name, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) GetName() string { - return v.Name -} - -// GetTarget returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef.Target, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) GetTarget() getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject { - return v.Target -} - -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) UnmarshalJSON(b []byte) error { - - if string(b) == "null" { - return nil - } - - var firstPass struct { - *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef - Target json.RawMessage `json:"target"` - graphql.NoUnmarshalJSON - } - firstPass.getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef = v - - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } - - { - dst := &v.Target - src := firstPass.Target - if len(src) != 0 && string(src) != "null" { - err = __unmarshalgetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef.Target: %w", err) - } - } - } - return nil -} - -type __premarshalgetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef struct { - Name string `json:"name"` - - Target json.RawMessage `json:"target"` -} - -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} - -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef) __premarshalJSON() (*__premarshalgetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef, error) { - var retval __premarshalgetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef - - retval.Name = v.Name - { - - dst := &retval.Target - src := v.Target - var err error - *dst, err = __marshalgetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRef.Target: %w", err) - } - } - return &retval, nil -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob includes the requested fields of the GraphQL type Blob. -// The GraphQL type's documentation follows. -// -// Represents a Git blob. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob struct { - Typename string `json:"__typename"` -} - -// GetTypename returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob.Typename, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob) GetTypename() string { - return v.Typename -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit includes the requested fields of the GraphQL type Commit. -// The GraphQL type's documentation follows. -// -// Represents a Git commit. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit struct { - Typename string `json:"__typename"` - Id string `json:"id"` - // The linear commit history starting from (and including) this commit, in the same order as `git log`. - History getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection `json:"history"` -} - -// GetTypename returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit.Typename, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) GetTypename() string { - return v.Typename -} - -// GetId returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit.Id, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) GetId() string { - return v.Id -} - -// GetHistory returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit.History, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) GetHistory() getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection { - return v.History -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection includes the requested fields of the GraphQL type CommitHistoryConnection. -// The GraphQL type's documentation follows. -// -// The connection type for Commit. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection struct { - // Identifies the total count of items in the connection. - TotalCount int `json:"totalCount"` - // A list of edges. - Edges []getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge `json:"edges"` - // Information to aid in pagination. - PageInfo getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo `json:"pageInfo"` -} - -// GetTotalCount returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection.TotalCount, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection) GetTotalCount() int { - return v.TotalCount -} - -// GetEdges returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection.Edges, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection) GetEdges() []getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge { - return v.Edges -} - -// GetPageInfo returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection.PageInfo, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnection) GetPageInfo() getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo { - return v.PageInfo -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge includes the requested fields of the GraphQL type CommitEdge. -// The GraphQL type's documentation follows. -// -// An edge in a connection. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge struct { - // The item at the end of the edge. - Node getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit `json:"node"` -} - -// GetNode returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge.Node, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdge) GetNode() getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit { - return v.Node -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit includes the requested fields of the GraphQL type Commit. -// The GraphQL type's documentation follows. -// -// Represents a Git commit. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit struct { - // The datetime when this commit was committed. - CommittedDate time.Time `json:"committedDate"` -} - -// GetCommittedDate returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit.CommittedDate, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionEdgesCommitEdgeNodeCommit) GetCommittedDate() time.Time { - return v.CommittedDate -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. -// The GraphQL type's documentation follows. -// -// Information about pagination in a connection. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo struct { - // When paginating forwards, the cursor to continue. - EndCursor string `json:"endCursor"` -} - -// GetEndCursor returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommitHistoryCommitHistoryConnectionPageInfo) GetEndCursor() string { - return v.EndCursor -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject includes the requested fields of the GraphQL interface GitObject. -// -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject is implemented by the following types: -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree -// The GraphQL type's documentation follows. -// -// Represents a Git object. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject interface { - implementsGraphQLInterfacegetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() - // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). - GetTypename() string -} - -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob) implementsGraphQLInterfacegetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() { -} -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) implementsGraphQLInterfacegetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() { -} -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag) implementsGraphQLInterfacegetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() { -} -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree) implementsGraphQLInterfacegetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject() { -} - -func __unmarshalgetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject(b []byte, v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject) error { - if string(b) == "null" { - return nil - } - - var tn struct { - TypeName string `json:"__typename"` - } - err := json.Unmarshal(b, &tn) - if err != nil { - return err - } - - switch tn.TypeName { - case "Blob": - *v = new(getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob) - return json.Unmarshal(b, *v) - case "Commit": - *v = new(getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit) - return json.Unmarshal(b, *v) - case "Tag": - *v = new(getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag) - return json.Unmarshal(b, *v) - case "Tree": - *v = new(getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree) - return json.Unmarshal(b, *v) - case "": - return fmt.Errorf( - "response was missing GitObject.__typename") - default: - return fmt.Errorf( - `unexpected concrete type for getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject: "%v"`, tn.TypeName) - } -} - -func __marshalgetUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject(v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject) ([]byte, error) { - - var typename string - switch v := (*v).(type) { - case *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob: - typename = "Blob" - - result := struct { - TypeName string `json:"__typename"` - *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetBlob - }{typename, v} - return json.Marshal(result) - case *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit: - typename = "Commit" - - result := struct { - TypeName string `json:"__typename"` - *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetCommit - }{typename, v} - return json.Marshal(result) - case *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag: - typename = "Tag" - - result := struct { - TypeName string `json:"__typename"` - *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag - }{typename, v} - return json.Marshal(result) - case *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree: - typename = "Tree" - - result := struct { - TypeName string `json:"__typename"` - *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree - }{typename, v} - return json.Marshal(result) - case nil: - return []byte("null"), nil - default: - return nil, fmt.Errorf( - `unexpected concrete type for getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetGitObject: "%T"`, v) - } -} - -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag includes the requested fields of the GraphQL type Tag. -// The GraphQL type's documentation follows. -// -// Represents a Git tag. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag struct { - Typename string `json:"__typename"` +// A repository contains the content for a project. +type getBranchDataRepository struct { + // Fetch a list of refs from the repository + Refs getBranchDataRepositoryRefsRefConnection `json:"refs"` } -// GetTypename returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag.Typename, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTag) GetTypename() string { - return v.Typename -} +// GetRefs returns getBranchDataRepository.Refs, and is useful for accessing the field via an interface. +func (v *getBranchDataRepository) GetRefs() getBranchDataRepositoryRefsRefConnection { return v.Refs } -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree includes the requested fields of the GraphQL type Tree. +// getBranchDataRepositoryRefsRefConnection includes the requested fields of the GraphQL type RefConnection. // The GraphQL type's documentation follows. // -// Represents a Git tree. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree struct { - Typename string `json:"__typename"` +// The connection type for Ref. +type getBranchDataRepositoryRefsRefConnection struct { + // Identifies the total count of items in the connection. + TotalCount int `json:"totalCount"` + // A list of nodes. + Nodes []BranchNode `json:"nodes"` + // Information to aid in pagination. + PageInfo getBranchDataRepositoryRefsRefConnectionPageInfo `json:"pageInfo"` } -// GetTypename returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree.Typename, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionNodesRefTargetTree) GetTypename() string { - return v.Typename +// GetTotalCount returns getBranchDataRepositoryRefsRefConnection.TotalCount, and is useful for accessing the field via an interface. +func (v *getBranchDataRepositoryRefsRefConnection) GetTotalCount() int { return v.TotalCount } + +// GetNodes returns getBranchDataRepositoryRefsRefConnection.Nodes, and is useful for accessing the field via an interface. +func (v *getBranchDataRepositoryRefsRefConnection) GetNodes() []BranchNode { return v.Nodes } + +// GetPageInfo returns getBranchDataRepositoryRefsRefConnection.PageInfo, and is useful for accessing the field via an interface. +func (v *getBranchDataRepositoryRefsRefConnection) GetPageInfo() getBranchDataRepositoryRefsRefConnectionPageInfo { + return v.PageInfo } -// getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. +// getBranchDataRepositoryRefsRefConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. // The GraphQL type's documentation follows. // // Information about pagination in a connection. -type getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo struct { +type getBranchDataRepositoryRefsRefConnectionPageInfo struct { // When paginating forwards, the cursor to continue. EndCursor string `json:"endCursor"` // When paginating backwards, the cursor to continue. StartCursor string `json:"startCursor"` } -// GetEndCursor returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo) GetEndCursor() string { - return v.EndCursor -} +// GetEndCursor returns getBranchDataRepositoryRefsRefConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. +func (v *getBranchDataRepositoryRefsRefConnectionPageInfo) GetEndCursor() string { return v.EndCursor } -// GetStartCursor returns getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo.StartCursor, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryRefsRefConnectionPageInfo) GetStartCursor() string { +// GetStartCursor returns getBranchDataRepositoryRefsRefConnectionPageInfo.StartCursor, and is useful for accessing the field via an interface. +func (v *getBranchDataRepositoryRefsRefConnectionPageInfo) GetStartCursor() string { return v.StartCursor } -// getUserRepoBranchInformationResponse is returned by getUserRepoBranchInformation on success. -type getUserRepoBranchInformationResponse struct { - // Lookup a organization by login. - Organization getUserRepoBranchInformationOrganization `json:"organization"` +// getBranchDataResponse is returned by getBranchData on success. +type getBranchDataResponse struct { + // Lookup a given repository by the owner and repository name. + Repository getBranchDataRepository `json:"repository"` } -// GetOrganization returns getUserRepoBranchInformationResponse.Organization, and is useful for accessing the field via an interface. -func (v *getUserRepoBranchInformationResponse) GetOrganization() getUserRepoBranchInformationOrganization { - return v.Organization -} +// GetRepository returns getBranchDataResponse.Repository, and is useful for accessing the field via an interface. +func (v *getBranchDataResponse) GetRepository() getBranchDataRepository { return v.Repository } -// getUserRepoDataResponse is returned by getUserRepoData on success. -type getUserRepoDataResponse struct { - // Lookup a user by login. - User getUserRepoDataUser `json:"user"` +// getCommitDataRepository includes the requested fields of the GraphQL type Repository. +// The GraphQL type's documentation follows. +// +// A repository contains the content for a project. +type getCommitDataRepository struct { + // Fetch a list of refs from the repository + Refs getCommitDataRepositoryRefsRefConnection `json:"refs"` } -// GetUser returns getUserRepoDataResponse.User, and is useful for accessing the field via an interface. -func (v *getUserRepoDataResponse) GetUser() getUserRepoDataUser { return v.User } +// GetRefs returns getCommitDataRepository.Refs, and is useful for accessing the field via an interface. +func (v *getCommitDataRepository) GetRefs() getCommitDataRepositoryRefsRefConnection { return v.Refs } -// getUserRepoDataUser includes the requested fields of the GraphQL type User. +// getCommitDataRepositoryRefsRefConnection includes the requested fields of the GraphQL type RefConnection. // The GraphQL type's documentation follows. // -// A user is an individual's account on GitHub that owns repositories and can make new content. -type getUserRepoDataUser struct { - // A list of repositories that the user owns. - Repositories getUserRepoDataUserRepositoriesRepositoryConnection `json:"repositories"` +// The connection type for Ref. +type getCommitDataRepositoryRefsRefConnection struct { + // A list of nodes. + Nodes []CommitNode `json:"nodes"` +} + +// GetNodes returns getCommitDataRepositoryRefsRefConnection.Nodes, and is useful for accessing the field via an interface. +func (v *getCommitDataRepositoryRefsRefConnection) GetNodes() []CommitNode { return v.Nodes } + +// getCommitDataResponse is returned by getCommitData on success. +type getCommitDataResponse struct { + // Lookup a given repository by the owner and repository name. + Repository getCommitDataRepository `json:"repository"` +} + +// GetRepository returns getCommitDataResponse.Repository, and is useful for accessing the field via an interface. +func (v *getCommitDataResponse) GetRepository() getCommitDataRepository { return v.Repository } + +// getRepoDataBySearchResponse is returned by getRepoDataBySearch on success. +type getRepoDataBySearchResponse struct { + // Perform a search across resources, returning a maximum of 1,000 results. + Search getRepoDataBySearchSearchSearchResultItemConnection `json:"search"` } -// GetRepositories returns getUserRepoDataUser.Repositories, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUser) GetRepositories() getUserRepoDataUserRepositoriesRepositoryConnection { - return v.Repositories +// GetSearch returns getRepoDataBySearchResponse.Search, and is useful for accessing the field via an interface. +func (v *getRepoDataBySearchResponse) GetSearch() getRepoDataBySearchSearchSearchResultItemConnection { + return v.Search } -// getUserRepoDataUserRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection. +// getRepoDataBySearchSearchSearchResultItemConnection includes the requested fields of the GraphQL type SearchResultItemConnection. // The GraphQL type's documentation follows. // -// A list of repositories owned by the subject. -type getUserRepoDataUserRepositoriesRepositoryConnection struct { - // Identifies the total count of items in the connection. - TotalCount int `json:"totalCount"` +// A list of results that matched against a search query. Regardless of the number of matches, a maximum of 1,000 results will be available across all types, potentially split across many pages. +type getRepoDataBySearchSearchSearchResultItemConnection struct { + // The total number of repositories that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. + RepositoryCount int `json:"repositoryCount"` // A list of edges. - Edges []getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdge `json:"edges"` + Edges []getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge `json:"edges"` // Information to aid in pagination. - PageInfo getUserRepoDataUserRepositoriesRepositoryConnectionPageInfo `json:"pageInfo"` + PageInfo getRepoDataBySearchSearchSearchResultItemConnectionPageInfo `json:"pageInfo"` } -// GetTotalCount returns getUserRepoDataUserRepositoriesRepositoryConnection.TotalCount, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnection) GetTotalCount() int { - return v.TotalCount +// GetRepositoryCount returns getRepoDataBySearchSearchSearchResultItemConnection.RepositoryCount, and is useful for accessing the field via an interface. +func (v *getRepoDataBySearchSearchSearchResultItemConnection) GetRepositoryCount() int { + return v.RepositoryCount } -// GetEdges returns getUserRepoDataUserRepositoriesRepositoryConnection.Edges, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnection) GetEdges() []getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdge { +// GetEdges returns getRepoDataBySearchSearchSearchResultItemConnection.Edges, and is useful for accessing the field via an interface. +func (v *getRepoDataBySearchSearchSearchResultItemConnection) GetEdges() []getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge { return v.Edges } -// GetPageInfo returns getUserRepoDataUserRepositoriesRepositoryConnection.PageInfo, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnection) GetPageInfo() getUserRepoDataUserRepositoriesRepositoryConnectionPageInfo { +// GetPageInfo returns getRepoDataBySearchSearchSearchResultItemConnection.PageInfo, and is useful for accessing the field via an interface. +func (v *getRepoDataBySearchSearchSearchResultItemConnection) GetPageInfo() getRepoDataBySearchSearchSearchResultItemConnectionPageInfo { return v.PageInfo } -// getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdge includes the requested fields of the GraphQL type RepositoryEdge. +// getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge includes the requested fields of the GraphQL type SearchResultItemEdge. // The GraphQL type's documentation follows. // // An edge in a connection. -type getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdge struct { +type getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge struct { // The item at the end of the edge. - Node getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository `json:"node"` + Node SearchNode `json:"-"` } -// GetNode returns getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdge.Node, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdge) GetNode() getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository { +// GetNode returns getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge.Node, and is useful for accessing the field via an interface. +func (v *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge) GetNode() SearchNode { return v.Node } -// getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository includes the requested fields of the GraphQL type Repository. -// The GraphQL type's documentation follows. -// -// A repository contains the content for a project. -type getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository struct { - Id string `json:"id"` - // The name of the repository. - Name string `json:"name"` - // The Ref associated with the repository's default branch. - DefaultBranchRef getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef `json:"defaultBranchRef"` -} +func (v *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge) UnmarshalJSON(b []byte) error { -// GetId returns getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Id, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetId() string { - return v.Id -} + if string(b) == "null" { + return nil + } + + var firstPass struct { + *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge + Node json.RawMessage `json:"node"` + graphql.NoUnmarshalJSON + } + firstPass.getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge = v + + err := json.Unmarshal(b, &firstPass) + if err != nil { + return err + } -// GetName returns getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Name, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetName() string { - return v.Name + { + dst := &v.Node + src := firstPass.Node + if len(src) != 0 && string(src) != "null" { + err = __unmarshalSearchNode( + src, dst) + if err != nil { + return fmt.Errorf( + "unable to unmarshal getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge.Node: %w", err) + } + } + } + return nil } -// GetDefaultBranchRef returns getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.DefaultBranchRef, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetDefaultBranchRef() getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef { - return v.DefaultBranchRef +type __premarshalgetRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge struct { + Node json.RawMessage `json:"node"` } -// getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef includes the requested fields of the GraphQL type Ref. -// The GraphQL type's documentation follows. -// -// Represents a Git reference. -type getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef struct { - // The ref name. - Name string `json:"name"` +func (v *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge) MarshalJSON() ([]byte, error) { + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + return json.Marshal(premarshaled) } -// GetName returns getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef.Name, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepositoryDefaultBranchRef) GetName() string { - return v.Name +func (v *getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge) __premarshalJSON() (*__premarshalgetRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge, error) { + var retval __premarshalgetRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge + + { + + dst := &retval.Node + src := v.Node + var err error + *dst, err = __marshalSearchNode( + &src) + if err != nil { + return nil, fmt.Errorf( + "unable to marshal getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge.Node: %w", err) + } + } + return &retval, nil } -// getUserRepoDataUserRepositoriesRepositoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. +// getRepoDataBySearchSearchSearchResultItemConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. // The GraphQL type's documentation follows. // // Information about pagination in a connection. -type getUserRepoDataUserRepositoriesRepositoryConnectionPageInfo struct { - // When paginating forwards, the cursor to continue. - EndCursor string `json:"endCursor"` +type getRepoDataBySearchSearchSearchResultItemConnectionPageInfo struct { // When paginating forwards, are there more items? HasNextPage bool `json:"hasNextPage"` + // When paginating forwards, the cursor to continue. + EndCursor string `json:"endCursor"` } -// GetEndCursor returns getUserRepoDataUserRepositoriesRepositoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnectionPageInfo) GetEndCursor() string { - return v.EndCursor +// GetHasNextPage returns getRepoDataBySearchSearchSearchResultItemConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface. +func (v *getRepoDataBySearchSearchSearchResultItemConnectionPageInfo) GetHasNextPage() bool { + return v.HasNextPage } -// GetHasNextPage returns getUserRepoDataUserRepositoriesRepositoryConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface. -func (v *getUserRepoDataUserRepositoriesRepositoryConnectionPageInfo) GetHasNextPage() bool { - return v.HasNextPage +// GetEndCursor returns getRepoDataBySearchSearchSearchResultItemConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface. +func (v *getRepoDataBySearchSearchSearchResultItemConnectionPageInfo) GetEndCursor() string { + return v.EndCursor } // The query or mutation executed by checkLogin. @@ -1712,67 +1040,34 @@ func checkLogin( return &data, err } -// The query or mutation executed by getOrgRepoBranchInformation. -const getOrgRepoBranchInformation_Operation = ` -query getOrgRepoBranchInformation ($login: String!, $repoCursor: String, $branchCursor: String) { - organization(login: $login) { - repositories(affiliations: OWNER, first: 100, after: $repoCursor, isArchived: false, isFork: false) { - edges { - node { - name - refs(refPrefix: "refs/heads/", first: 100, after: $branchCursor) { - totalCount - nodes { - name - target { - __typename - ... on Commit { - id - history { - totalCount - edges { - node { - committedDate - } - } - pageInfo { - endCursor - } - } - } - } - } - pageInfo { - endCursor - startCursor - } - } - } - } +// The query or mutation executed by getBranchCount. +const getBranchCount_Operation = ` +query getBranchCount ($name: String!, $owner: String!) { + repository(name: $name, owner: $owner) { + refs(refPrefix: "refs/heads/") { + totalCount } } } ` -func getOrgRepoBranchInformation( +func getBranchCount( ctx context.Context, client graphql.Client, - login string, - repoCursor *string, - branchCursor *string, -) (*getOrgRepoBranchInformationResponse, error) { + name string, + owner string, +) (*getBranchCountResponse, error) { req := &graphql.Request{ - OpName: "getOrgRepoBranchInformation", - Query: getOrgRepoBranchInformation_Operation, - Variables: &__getOrgRepoBranchInformationInput{ - Login: login, - RepoCursor: repoCursor, - BranchCursor: branchCursor, + OpName: "getBranchCount", + Query: getBranchCount_Operation, + Variables: &__getBranchCountInput{ + Name: name, + Owner: owner, }, } var err error - var data getOrgRepoBranchInformationResponse + var data getBranchCountResponse resp := &graphql.Response{Data: &data} err = client.MakeRequest( @@ -1784,100 +1079,51 @@ func getOrgRepoBranchInformation( return &data, err } -// The query or mutation executed by getOrgRepoData. -const getOrgRepoData_Operation = ` -query getOrgRepoData ($login: String!, $repoCursor: String) { - organization(login: $login) { - repositories(affiliations: OWNER, first: 100, after: $repoCursor, isArchived: false, isFork: false) { +// The query or mutation executed by getBranchData. +const getBranchData_Operation = ` +query getBranchData ($name: String!, $owner: String!, $branchFirst: Int!, $targetBranch: String!, $branchCursor: String) { + repository(name: $name, owner: $owner) { + refs(refPrefix: "refs/heads/", first: $branchFirst, after: $branchCursor) { totalCount - pageInfo { - endCursor - hasNextPage - } - edges { - node { - id - name - defaultBranchRef { - name - } + nodes { + name + compare(headRef: $targetBranch) { + aheadBy + behindBy } } - } - } -} -` - -func getOrgRepoData( - ctx context.Context, - client graphql.Client, - login string, - repoCursor *string, -) (*getOrgRepoDataResponse, error) { - req := &graphql.Request{ - OpName: "getOrgRepoData", - Query: getOrgRepoData_Operation, - Variables: &__getOrgRepoDataInput{ - Login: login, - RepoCursor: repoCursor, - }, - } - var err error - - var data getOrgRepoDataResponse - resp := &graphql.Response{Data: &data} - - err = client.MakeRequest( - ctx, - req, - resp, - ) - - return &data, err -} - -// The query or mutation executed by getRepoDataBySearch. -const getRepoDataBySearch_Operation = ` -query getRepoDataBySearch ($searchQuery: String!, $repoCursor: String) { - search(query: $searchQuery, type: REPOSITORY, first: 100, after: $repoCursor) { - repositoryCount - edges { - node { - __typename - ... on Repository { - id - name - defaultBranchRef { - name - } - } + pageInfo { + endCursor + startCursor } } - pageInfo { - hasNextPage - endCursor - } } } ` -func getRepoDataBySearch( +func getBranchData( ctx context.Context, client graphql.Client, - searchQuery string, - repoCursor *string, -) (*getRepoDataBySearchResponse, error) { + name string, + owner string, + branchFirst int, + targetBranch string, + branchCursor *string, +) (*getBranchDataResponse, error) { req := &graphql.Request{ - OpName: "getRepoDataBySearch", - Query: getRepoDataBySearch_Operation, - Variables: &__getRepoDataBySearchInput{ - SearchQuery: searchQuery, - RepoCursor: repoCursor, + OpName: "getBranchData", + Query: getBranchData_Operation, + Variables: &__getBranchDataInput{ + Name: name, + Owner: owner, + BranchFirst: branchFirst, + TargetBranch: targetBranch, + BranchCursor: branchCursor, }, } var err error - var data getRepoDataBySearchResponse + var data getBranchDataResponse resp := &graphql.Response{Data: &data} err = client.MakeRequest( @@ -1889,39 +1135,26 @@ func getRepoDataBySearch( return &data, err } -// The query or mutation executed by getUserRepoBranchInformation. -const getUserRepoBranchInformation_Operation = ` -query getUserRepoBranchInformation ($login: String!) { - organization(login: $login) { - repositories(affiliations: OWNER, first: 10) { - edges { - node { - name - refs(refPrefix: "refs/heads/", first: 10) { - totalCount - nodes { - name - target { - __typename - ... on Commit { - id - history { - totalCount - edges { - node { - committedDate - } - } - pageInfo { - endCursor - } - } +// The query or mutation executed by getCommitData. +const getCommitData_Operation = ` +query getCommitData ($name: String!, $owner: String!, $branchFirst: Int!, $commitFirst: Int!, $commitCursor: String, $branchName: String!) { + repository(name: $name, owner: $owner) { + refs(refPrefix: "refs/heads/", first: $branchFirst, query: $branchName) { + nodes { + target { + __typename + ... on Commit { + id + history(first: $commitFirst, after: $commitCursor) { + edges { + node { + committedDate } } - } - pageInfo { - endCursor - startCursor + pageInfo { + endCursor + hasNextPage + } } } } @@ -1931,21 +1164,31 @@ query getUserRepoBranchInformation ($login: String!) { } ` -func getUserRepoBranchInformation( +func getCommitData( ctx context.Context, client graphql.Client, - login string, -) (*getUserRepoBranchInformationResponse, error) { + name string, + owner string, + branchFirst int, + commitFirst int, + commitCursor *string, + branchName string, +) (*getCommitDataResponse, error) { req := &graphql.Request{ - OpName: "getUserRepoBranchInformation", - Query: getUserRepoBranchInformation_Operation, - Variables: &__getUserRepoBranchInformationInput{ - Login: login, + OpName: "getCommitData", + Query: getCommitData_Operation, + Variables: &__getCommitDataInput{ + Name: name, + Owner: owner, + BranchFirst: branchFirst, + CommitFirst: commitFirst, + CommitCursor: commitCursor, + BranchName: branchName, }, } var err error - var data getUserRepoBranchInformationResponse + var data getCommitDataResponse resp := &graphql.Response{Data: &data} err = client.MakeRequest( @@ -1957,14 +1200,15 @@ func getUserRepoBranchInformation( return &data, err } -// The query or mutation executed by getUserRepoData. -const getUserRepoData_Operation = ` -query getUserRepoData ($login: String!, $repoCursor: String) { - user(login: $login) { - repositories(affiliations: OWNER, first: 100, after: $repoCursor, isArchived: false, isFork: false) { - totalCount - edges { - node { +// The query or mutation executed by getRepoDataBySearch. +const getRepoDataBySearch_Operation = ` +query getRepoDataBySearch ($searchQuery: String!, $repoCursor: String) { + search(query: $searchQuery, type: REPOSITORY, first: 100, after: $repoCursor) { + repositoryCount + edges { + node { + __typename + ... on Repository { id name defaultBranchRef { @@ -1972,32 +1216,32 @@ query getUserRepoData ($login: String!, $repoCursor: String) { } } } - pageInfo { - endCursor - hasNextPage - } + } + pageInfo { + hasNextPage + endCursor } } } ` -func getUserRepoData( +func getRepoDataBySearch( ctx context.Context, client graphql.Client, - login string, + searchQuery string, repoCursor *string, -) (*getUserRepoDataResponse, error) { +) (*getRepoDataBySearchResponse, error) { req := &graphql.Request{ - OpName: "getUserRepoData", - Query: getUserRepoData_Operation, - Variables: &__getUserRepoDataInput{ - Login: login, - RepoCursor: repoCursor, + OpName: "getRepoDataBySearch", + Query: getRepoDataBySearch_Operation, + Variables: &__getRepoDataBySearchInput{ + SearchQuery: searchQuery, + RepoCursor: repoCursor, }, } var err error - var data getUserRepoDataResponse + var data getRepoDataBySearchResponse resp := &graphql.Response{Data: &data} err = client.MakeRequest( diff --git a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/genqlient.graphql b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/genqlient.graphql index cb34616e..06aa28ba 100644 --- a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/genqlient.graphql +++ b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/genqlient.graphql @@ -1,66 +1,14 @@ -query getUserRepoData( - $login: String! - # @genqlient(pointer: true) - $repoCursor: String) { - user(login: $login) { - repositories( - affiliations: OWNER, - first: 100, - after: $repoCursor - isArchived: false, - isFork: false) { - totalCount - edges { - node { - id - name - defaultBranchRef { - name - } - } - } - pageInfo { - endCursor - hasNextPage - } - } - } -} - -query getOrgRepoData( - $login: String!, - # @genqlient(pointer: true) - $repoCursor: String) { - organization(login: $login) { - repositories( - affiliations: OWNER, - first: 100, - after: $repoCursor, - isArchived: false, - isFork: false) { - totalCount - pageInfo { - endCursor - hasNextPage - } - edges { - node { - id - name - defaultBranchRef { - name - } - } - } - } - } -} - query getRepoDataBySearch( - $searchQuery: String!, - # @genqlient(pointer: true) - $repoCursor: String) { - search(query: $searchQuery, type: REPOSITORY, first: 100, after: $repoCursor) { + $searchQuery: String! + # @genqlient(pointer: true) + $repoCursor: String +) { + search( + query: $searchQuery + type: REPOSITORY + first: 100 + after: $repoCursor + ) { repositoryCount edges { # @genqlient(typename: "SearchNode") @@ -81,7 +29,7 @@ query getRepoDataBySearch( } } -query checkLogin($login: String!){ +query checkLogin($login: String!) { user(login: $login) { login } @@ -90,46 +38,32 @@ query checkLogin($login: String!){ } } -query getOrgRepoBranchInformation( - $login: String! - # @genqlient(pointer: true) - $repoCursor: String, - # @genqlient(pointer: true) - $branchCursor: String) { - organization(login: $login) { - repositories( - affiliations: OWNER, - first: 100, - after: $repoCursor, - isArchived: false, - isFork: false) { - edges { - node { - name - refs(refPrefix: "refs/heads/", first: 100, after: $branchCursor) { - totalCount - nodes { - name - target { - ... on Commit { - id - history { - totalCount - edges { - node { - committedDate - } - } - pageInfo { - endCursor - } - } +query getCommitData( + $name: String! + $owner: String! + $branchFirst: Int! + $commitFirst: Int! + # @genqlient(pointer: true) + $commitCursor: String + $branchName: String! +) { + repository(name: $name, owner: $owner) { + refs(refPrefix: "refs/heads/", first: $branchFirst, query: $branchName) { + # @genqlient(typename: "CommitNode") + nodes { + target { + ... on Commit { + id + history(first: $commitFirst, after: $commitCursor) { + edges { + node { + committedDate } } - } - pageInfo { - endCursor - startCursor + pageInfo { + endCursor + hasNextPage + } } } } @@ -138,40 +72,37 @@ query getOrgRepoBranchInformation( } } -query getUserRepoBranchInformation($login: String!) { - organization(login: $login) { - repositories(affiliations: OWNER, first: 10) { - edges { - node { - name - refs(refPrefix: "refs/heads/", first: 10) { - totalCount - nodes { - name - target { - ... on Commit { - id - history { - totalCount - edges { - node { - committedDate - } - } - pageInfo { - endCursor - } - } - } - } - } - pageInfo { - endCursor - startCursor - } - } +query getBranchData( + $name: String! + $owner: String! + $branchFirst: Int! + $targetBranch: String! + # @genqlient(pointer: true) + $branchCursor: String +) { + repository(name: $name, owner: $owner) { + refs(refPrefix: "refs/heads/", first: $branchFirst, after: $branchCursor) { + totalCount + # @genqlient(typename: "BranchNode") + nodes { + name + compare(headRef: $targetBranch) { + aheadBy + behindBy } } + pageInfo { + endCursor + startCursor + } + } + } +} + +query getBranchCount($name: String!, $owner: String!) { + repository(name: $name, owner: $owner) { + refs(refPrefix: "refs/heads/") { + totalCount } } } diff --git a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/github_scraper.go b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/github_scraper.go index 936be403..1a756f03 100644 --- a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/github_scraper.go +++ b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/github_scraper.go @@ -1,6 +1,3 @@ -// Copyright The OpenTelemetry Authors -// SPDX-License-Identifier: Apache-2.0 - package githubscraper import ( @@ -24,32 +21,21 @@ var ( errClientNotInitErr = errors.New("http client not initialized") ) -type Commit struct { - Date string -} - -type Branch struct { - Name string - CommitCount int - CreatedDate time.Time - LastUpdatedDate string - EndCursor string -} - type PullRequest struct { Title string CreatedDate time.Time ClosedDate time.Time } +// TODO: Keep this type Repo struct { Name string Owner string DefaultBranch string - Branches []Branch PullRequests []PullRequest } +// TODO: Keep this type githubScraper struct { client *http.Client cfg *Config @@ -86,109 +72,6 @@ func newGitHubScraper( } } -func (ghs *githubScraper) getRepoBranchInformation(repo *Repo) { - graphqlClient := githubv4.NewClient(ghs.client) - - var query struct { - Repository struct { - Refs struct { - TotalCount int - Nodes []struct { - Name string - Target struct { - Commit struct { - History struct { - TotalCount int - Edges []struct { - Node struct { - CommittedDate string - } - } - PageInfo struct { - EndCursor string - } - } - } `graphql:"... on Commit"` - } - } - } `graphql:"refs(refPrefix: \"refs/heads/\", first: 100)"` - } `graphql:"repository(name: $repoName, owner: $owner)"` - } - - variables := map[string]interface{}{ - "repoName": githubv4.String(repo.Name), - "owner": githubv4.String(repo.Owner), - } - - err := graphqlClient.Query(context.Background(), &query, variables) - - if err != nil { - ghs.logger.Sugar().Errorf("Error getting branch details", zap.Error(err)) - } - - for _, branch := range query.Repository.Refs.Nodes { - newBranch := &Branch{ - Name: branch.Name, - CommitCount: branch.Target.Commit.History.TotalCount, - LastUpdatedDate: branch.Target.Commit.History.Edges[0].Node.CommittedDate, - EndCursor: branch.Target.Commit.History.PageInfo.EndCursor, - } - repo.Branches = append(repo.Branches, *newBranch) - } -} - -// func (ghs *githubScraper) getOldestBranchCommit(repo *Repo, branch *Branch) { -func (ghs *githubScraper) getOldestBranchCommit(repo *Repo, branch *Branch) { - graphqlClient := githubv4.NewClient(ghs.client) - - var query struct { - Repository struct { - Ref struct { - Target struct { - Commit struct { - History struct { - Edges []struct { - Node struct { - CommittedDate string - } - } - PageInfo struct { - EndCursor string - } - } `graphql:"history(last: 1, before: $endCursor)"` - } `graphql:"... on Commit"` - } - } `graphql:"ref(qualifiedName: $branchName)"` - } `graphql:"repository(name: $repoName, owner: $owner)"` - } - - variables := map[string]interface{}{ - "repoName": githubv4.String(repo.Name), - "owner": githubv4.String(repo.Owner), - "branchName": githubv4.String(branch.Name), - "endCursor": githubv4.String(branch.EndCursor), - } - - err := graphqlClient.Query(context.Background(), &query, variables) - - if err != nil { - ghs.logger.Sugar().Errorf("Error getting oldest commit", zap.Error(err)) - } - - if len(query.Repository.Ref.Target.Commit.History.Edges) > 0 { - oldestCommit, err := time.Parse(time.RFC3339, query.Repository.Ref.Target.Commit.History.Edges[0].Node.CommittedDate) - - if err != nil { - ghs.logger.Sugar().Errorf("Error converting timestamp for oldest commit", zap.Error(err)) - } - - branch.CreatedDate = oldestCommit - } else { - branch.CreatedDate = time.Now() - } - -} - func (ghs *githubScraper) getRepoPullRequestInformation(repo *Repo) { graphqlClient := githubv4.NewClient(ghs.client) @@ -291,11 +174,14 @@ func (ghs *githubScraper) scrape(ctx context.Context) (pmetric.Metrics, error) { return ghs.mb.Emit(), err } + sq := genDefaultSearchQuery(ownertype, ghs.cfg.GitHubOrg) + if ghs.cfg.SearchQuery != "" { + sq = ghs.cfg.SearchQuery ghs.logger.Sugar().Debugf("using search query where query is: %v", ghs.cfg.SearchQuery) } - data, err = getRepoData(ctx, genClient, ghs.cfg, ownertype, repoCursor) + data, err = getRepoData(ctx, genClient, sq, ownertype, repoCursor) if err != nil { ghs.logger.Sugar().Errorf("Error getting repo data", zap.Error(err)) return ghs.mb.Emit(), err @@ -303,174 +189,120 @@ func (ghs *githubScraper) scrape(ctx context.Context) (pmetric.Metrics, error) { // TODO: setting this here for access from the proceeding for statement // gathering repo data - var orgRepos []getOrgRepoDataOrganizationRepositoriesRepositoryConnectionEdgesRepositoryEdge - var userRepos []getUserRepoDataUserRepositoriesRepositoryConnectionEdgesRepositoryEdge var searchRepos []getRepoDataBySearchSearchSearchResultItemConnectionEdgesSearchResultItemEdge - if ghs.cfg.SearchQuery != "" { - if searchData, ok := data.(*getRepoDataBySearchResponse); ok { - ghs.logger.Sugar().Debug("successful search response") - ghs.mb.RecordGitRepositoryCountDataPoint(now, int64(searchData.Search.RepositoryCount)) - - pages := getNumPages(float64(searchData.Search.RepositoryCount)) - ghs.logger.Sugar().Debugf("pages: %v", pages) - - for i := 0; i < pages; i++ { - results := searchData.GetSearch() - searchRepos = append(searchRepos, results.Edges...) + if searchData, ok := data.(*getRepoDataBySearchResponse); ok { + ghs.logger.Sugar().Debug("successful search response") + ghs.mb.RecordGitRepositoryCountDataPoint(now, int64(searchData.Search.RepositoryCount)) - repoCursor = &searchData.Search.PageInfo.EndCursor - data, err = getRepoData(ctx, genClient, ghs.cfg, ownertype, repoCursor) - if err != nil { - ghs.logger.Sugar().Errorf("Error getting repo data", zap.Error(err)) - } - } - - ghs.logger.Sugar().Debugf("repos: %v", searchRepos) - - } - } else if orgData, ok := data.(*getOrgRepoDataResponse); ok { - ghs.logger.Sugar().Debug("successful response for organization") - ghs.mb.RecordGitRepositoryCountDataPoint(now, int64(orgData.Organization.Repositories.TotalCount)) - - pages := getNumPages(float64(orgData.Organization.Repositories.TotalCount)) + pages := getNumPages(float64(100), float64(searchData.Search.RepositoryCount)) ghs.logger.Sugar().Debugf("pages: %v", pages) for i := 0; i < pages; i++ { - orgRepos = append(orgRepos, orgData.Organization.Repositories.Edges...) + results := searchData.GetSearch() + searchRepos = append(searchRepos, results.Edges...) - repoCursor = &orgData.Organization.Repositories.PageInfo.EndCursor - data, err = getRepoData(ctx, genClient, ghs.cfg, ownertype, repoCursor) + repoCursor = &searchData.Search.PageInfo.EndCursor + data, err = getRepoData(ctx, genClient, sq, ownertype, repoCursor) if err != nil { ghs.logger.Sugar().Errorf("Error getting repo data", zap.Error(err)) } } - ghs.logger.Sugar().Debugf("repos: %v", orgRepos) - - } else if userData, ok := data.(*getUserRepoDataResponse); ok { - ghs.logger.Sugar().Debug("successful response for organization") - ghs.mb.RecordGitRepositoryCountDataPoint(now, int64(userData.User.Repositories.TotalCount)) - - pages := getNumPages(float64(userData.User.Repositories.TotalCount)) - ghs.logger.Sugar().Debugf("pages: %v", pages) - - for i := 0; i < pages; i++ { - userRepos = append(userRepos, userData.User.Repositories.GetEdges()...) - - repoCursor = &userData.User.Repositories.PageInfo.EndCursor - data, err = getRepoData(ctx, genClient, ghs.cfg, ownertype, repoCursor) - if err != nil { - ghs.logger.Sugar().Errorf("Error getting repo data", zap.Error(err)) - } - } - - ghs.logger.Sugar().Debugf("repos: %v", userRepos) + ghs.logger.Sugar().Debugf("repos: %v", searchRepos) } + // TODO: End of refactor to using genqlient // Slightly refactoring this and making it more nested during the refactor // to maintain parady with the original code while using genqlient and // not having to use the original query login interspection and types - if ghs.cfg.SearchQuery != "" { - if _, ok := data.(*getRepoDataBySearchResponse); ok { - for _, repo := range searchRepos { - var name string - var defaultBranch string - - if n, ok := repo.Node.(*SearchNodeRepository); ok { - name = n.Name - defaultBranch = n.DefaultBranchRef.Name - } + var branchCursor *string + var branches []BranchNode - repoInfo := &Repo{ - Name: name, - Owner: ghs.cfg.GitHubOrg, - DefaultBranch: defaultBranch, - } - - ghs.getRepoBranchInformation(repoInfo) - - numOfBranches := len(repoInfo.Branches) + if _, ok := data.(*getRepoDataBySearchResponse); ok { + for _, repo := range searchRepos { + var name string + var defaultBranch string - ghs.logger.Sugar().Debugf("Repo Name: %v", repoInfo.Name) - ghs.logger.Sugar().Debugf("Num of Branches: %v", numOfBranches) - - ghs.mb.RecordGitRepositoryBranchCountDataPoint(now, int64(numOfBranches), repoInfo.Name) + if n, ok := repo.Node.(*SearchNodeRepository); ok { + name = n.Name + defaultBranch = n.DefaultBranchRef.Name + } - if numOfBranches > 1 { - for _, branch := range repoInfo.Branches { - if branch.Name != repoInfo.DefaultBranch { - branch := branch - ghs.getOldestBranchCommit(repoInfo, &branch) - branchAge := int64(time.Since(branch.CreatedDate).Hours()) - ghs.mb.RecordGitRepositoryBranchTimeDataPoint(now, branchAge, repoInfo.Name, branch.Name) - } - } - } + // TODO: I don't think there's a need for this if we've stored the + // entirety of the data previously & can iterate through the slice + // directly. Might consider refactoring this later. + repoInfo := &Repo{ + Name: name, + Owner: ghs.cfg.GitHubOrg, + DefaultBranch: defaultBranch, + } - ghs.getRepoPullRequestInformation(repoInfo) + count, err := getBranchCount(ctx, genClient, name, ghs.cfg.GitHubOrg) + if err != nil { + ghs.logger.Sugar().Errorf("error getting branch count", zap.Error(err)) } + ghs.logger.Sugar().Debugf("branch count: %v for repo %v", count.Repository.Refs.TotalCount, repo) - } - } else if _, ok := data.(*getOrgRepoDataResponse); ok { - for _, repo := range orgRepos { - repoInfo := &Repo{Name: repo.Node.Name, Owner: ghs.cfg.GitHubOrg, DefaultBranch: repo.Node.DefaultBranchRef.Name} + ghs.mb.RecordGitRepositoryBranchCountDataPoint(now, int64(count.Repository.Refs.TotalCount), name) - ghs.getRepoBranchInformation(repoInfo) + bp := getNumPages(float64(50), float64(count.Repository.Refs.TotalCount)) + ghs.logger.Sugar().Debugf("branch pages: %v for repo %v", bp, repo) - numOfBranches := len(repoInfo.Branches) + for i := 0; i < bp; i++ { + r, err := getBranchData(ctx, genClient, name, ghs.cfg.GitHubOrg, 50, defaultBranch, branchCursor) + if err != nil { + ghs.logger.Sugar().Errorf("error getting branch data", zap.Error(err)) + } - ghs.logger.Sugar().Debugf("Repo Name: %v", repoInfo.Name) - ghs.logger.Sugar().Debugf("Num of Branches: %v", numOfBranches) + branches = append(branches, r.Repository.Refs.Nodes...) - ghs.mb.RecordGitRepositoryBranchCountDataPoint(now, int64(numOfBranches), repoInfo.Name) + branchCursor = &r.Repository.Refs.PageInfo.EndCursor - for _, branch := range repoInfo.Branches { - if branch.Name != repoInfo.DefaultBranch { - branch := branch - ghs.getOldestBranchCommit(repoInfo, &branch) - branchAge := int64(time.Since(branch.CreatedDate).Hours()) - ghs.mb.RecordGitRepositoryBranchTimeDataPoint(now, branchAge, repoInfo.Name, branch.Name) - } } - ghs.getRepoPullRequestInformation(repoInfo) + for _, branch := range branches { + // We're using BehindBy here because we're comparing against the target + // branch, which is the default branch. In essence the response is saying + // the default branch is behind the queried branch by X commits which is + // the number of commits made to the queried branch but not merged into + // the default branch. Doing it this way involves less queries because + // we don't have to know the queried branch name ahead of time. + cp := getNumPages(float64(100), float64(branch.Compare.BehindBy)) - for _, pr := range repoInfo.PullRequests { - ghs.logger.Sugar().Debugf("PR Creation Date: %v PR Closed Date %v", pr.CreatedDate.Format(time.RFC3339), pr.ClosedDate.Format(time.RFC3339)) - } - } + var cc *string - } else if _, ok := data.(*getUserRepoDataResponse); ok { - for _, repo := range userRepos { - repoInfo := &Repo{Name: repo.Node.Name, Owner: ghs.cfg.GitHubOrg, DefaultBranch: repo.Node.DefaultBranchRef.Name} + for i := 0; i < cp; i++ { + if branch.Name == defaultBranch || branch.Compare.BehindBy == 0 { + break + } - ghs.getRepoBranchInformation(repoInfo) + c, err := getCommitData(ctx, genClient, name, ghs.cfg.GitHubOrg, 1, 100, cc, branch.Name) + if err != nil { + ghs.logger.Sugar().Errorf("error getting commit data", zap.Error(err)) + } - numOfBranches := len(repoInfo.Branches) + tar := c.Repository.GetRefs().Nodes[0].GetTarget() + if ct, ok := tar.(*CommitNodeTargetCommit); ok { + cc = &ct.History.PageInfo.EndCursor - ghs.logger.Sugar().Debugf("Repo Name: %v", repoInfo.Name) - ghs.logger.Sugar().Debugf("Num of Branches: %v", numOfBranches) + if i == cp-1 { + e := ct.History.GetEdges() - ghs.mb.RecordGitRepositoryBranchCountDataPoint(now, int64(numOfBranches), repoInfo.Name) + oldest := e[len(e)-1].Node.GetCommittedDate() + age := int64(time.Since(oldest).Hours()) - for _, branch := range repoInfo.Branches { - if branch.Name != repoInfo.DefaultBranch { - branch := branch - ghs.getOldestBranchCommit(repoInfo, &branch) - branchAge := int64(time.Since(branch.CreatedDate).Hours()) - ghs.mb.RecordGitRepositoryBranchTimeDataPoint(now, branchAge, repoInfo.Name, branch.Name) + ghs.mb.RecordGitRepositoryBranchTimeDataPoint(now, age, name, branch.Name) + } + } } } ghs.getRepoPullRequestInformation(repoInfo) - - for _, pr := range repoInfo.PullRequests { - ghs.logger.Sugar().Debugf("PR Creation Date: %v PR Closed Date %v", pr.CreatedDate.Format(time.RFC3339), pr.ClosedDate.Format(time.RFC3339)) - } } + } return ghs.mb.Emit(), nil diff --git a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/graphql_helpers.go b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/graphql_helpers.go index 442eabcf..85aa0a22 100644 --- a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/graphql_helpers.go +++ b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/graphql_helpers.go @@ -3,10 +3,10 @@ package githubscraper import ( "context" "errors" + "fmt" "math" "github.com/Khan/genqlient/graphql" - //"go.uber.org/zap" ) // TODO: getRepoData and getBranchData should be a singular function since we can @@ -15,7 +15,7 @@ import ( func getRepoData( ctx context.Context, client graphql.Client, - cfg *Config, + searchQuery string, ownertype string, // here we use a pointer to a string so that graphql will receive null if the // value is not set since the after: $repoCursor is optional to graphql @@ -23,33 +23,15 @@ func getRepoData( // since we're using a interface{} here we do type checking when data // is returned to the calling function ) (interface{}, error) { - if cfg.SearchQuery != "" { - data, err := getRepoDataBySearch(ctx, client, cfg.SearchQuery, repoCursor) - if err != nil { - return nil, err - } - return data, nil - } else if ownertype == "user" { - data, err := getUserRepoData(ctx, client, cfg.GitHubOrg, repoCursor) - if err != nil { - return nil, err - } - return data, nil - } else if ownertype == "org" { - data, err := getOrgRepoData(ctx, client, cfg.GitHubOrg, repoCursor) - if err != nil { - return nil, err - } - return data, nil + data, err := getRepoDataBySearch(ctx, client, searchQuery, repoCursor) + if err != nil { + return nil, err } - - return nil, errors.New("not able to get repo count") + return data, nil } -func getNumPages(n float64) int { - pageCap := 100.0 - - numPages := math.Ceil(n / pageCap) +func getNumPages(p float64, n float64) int { + numPages := math.Ceil(n / p) return int(numPages) } @@ -71,6 +53,8 @@ func (ghs *githubScraper) checkOwnerExists(ctx context.Context, client graphql.C exists = false ownerType = "" + // These types are used later to generate the default string for the search query + // and thus must match the convention for user: and org: searches in GitHub if loginResp.User.Login == owner { exists = true ownerType = "user" @@ -85,3 +69,9 @@ func (ghs *githubScraper) checkOwnerExists(ctx context.Context, client graphql.C return } + +// Returns the default search query string based on input of owner type +// and GitHubOrg name with a default of archived:false to ignore archived repos +func genDefaultSearchQuery(ownertype string, ghorg string) string { + return fmt.Sprintf("%s:%s archived:false", ownertype, ghorg) +} diff --git a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/graphql_helpers_test.go b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/graphql_helpers_test.go index f5d8f707..645eb491 100644 --- a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/graphql_helpers_test.go +++ b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/graphql_helpers_test.go @@ -6,12 +6,57 @@ import ( "github.com/stretchr/testify/assert" ) -func TestGetNumPages(t *testing.T) { +func TestGetNumPages100(t *testing.T) { + p := float64(100) n := float64(375) + expected := 4 - num := getNumPages(n) + num := getNumPages(p, n) + + assert.Equal(t, expected, num) +} + +func TestGetNumPages10(t *testing.T) { + p := float64(10) + n := float64(375) + + expected := 38 + + num := getNumPages(p, n) assert.Equal(t, expected, num) +} + +func TestGetNumPages1(t *testing.T) { + p := float64(10) + n := float64(1) + + expected := 1 + + num := getNumPages(p, n) + + assert.Equal(t, expected, num) +} + +func TestGenDefaultSearchQueryOrg(t *testing.T) { + st := "org" + org := "empire" + + expected := "org:empire archived:false" + + actual := genDefaultSearchQuery(st, org) + + assert.Equal(t, expected, actual) +} + +func TestGenDefaultSearchQueryUser(t *testing.T) { + st := "user" + org := "vader" + + expected := "user:vader archived:false" + + actual := genDefaultSearchQuery(st, org) + assert.Equal(t, expected, actual) } diff --git a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/schema.graphql b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/schema.graphql index 87ef9746..ea2879e4 100644 --- a/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/schema.graphql +++ b/pkg/receiver/gitproviderreceiver/internal/scraper/githubscraper/schema.graphql @@ -238,23 +238,20 @@ type App implements Node { "The IP addresses of the app." ipAllowListEntries( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for IP allow list entries returned." - orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} + orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC } ): IpAllowListEntryConnection! "The hex color code, without the leading '#', for the logo background." logoBackgroundColor: String! "A URL pointing to the app's logo." - logoUrl( - "The size of the resulting image." - size: Int - ): URI! + logoUrl("The size of the resulting image." size: Int): URI! "The name of the app." name: String! "A slug based on the name of the app for use in URLs." @@ -304,7 +301,10 @@ type AssignedEvent implements Node { createdAt: DateTime! id: ID! "Identifies the user who was assigned." - user: User @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.") + user: User + @deprecated( + reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC." + ) } "Represents a 'auto_merge_disabled' event on a given pull request." type AutoMergeDisabledEvent implements Node { @@ -488,10 +488,7 @@ type Blob implements GitObject & Node { "A special type of user which takes actions on behalf of GitHub Apps." type Bot implements Node & Actor & UniformResourceLocatable { "A URL pointing to the GitHub App's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! "Identifies the date and time when the object was created." createdAt: DateTime! "Identifies the primary key from the database." @@ -528,33 +525,33 @@ type BranchProtectionRule implements Node { "A list of conflicts matching branches protection rule and other branch protection rules" branchProtectionRuleConflicts( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): BranchProtectionRuleConflictConnection! "A list of actors able to force push for this branch protection rule." bypassForcePushAllowances( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): BypassForcePushAllowanceConnection! "A list of actors able to bypass PRs for this branch protection rule." bypassPullRequestAllowances( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): BypassPullRequestAllowanceConnection! @@ -574,13 +571,13 @@ type BranchProtectionRule implements Node { "Repository refs that are protected by this rule" matchingRefs( "Filters refs with query on name" - query: String, + query: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RefConnection! @@ -589,11 +586,11 @@ type BranchProtectionRule implements Node { "A list push allowances for this branch protection rule." pushAllowances( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PushAllowanceConnection! @@ -632,11 +629,11 @@ type BranchProtectionRule implements Node { "A list review dismissal allowances for this branch protection rule." reviewDismissalAllowances( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ReviewDismissalAllowanceConnection! @@ -852,11 +849,11 @@ type CheckRun implements Node & UniformResourceLocatable & RequirableByPullReque "The check run's annotations" annotations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): CheckAnnotationConnection @@ -878,7 +875,7 @@ type CheckRun implements Node & UniformResourceLocatable & RequirableByPullReque "Whether this is required to pass before merging for a specific pull request." isRequired( "The id of the pull request this is required for" - pullRequestId: ID, + pullRequestId: ID "The number of the pull request this is required for" pullRequestNumber: Int ): Boolean! @@ -899,13 +896,13 @@ type CheckRun implements Node & UniformResourceLocatable & RequirableByPullReque "The check run's steps" steps( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Step number" number: Int ): CheckStepConnection @@ -989,13 +986,13 @@ type CheckSuite implements Node { "The check runs associated with a check suite." checkRuns( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filters the check runs by this type." filterBy: CheckRunFilter ): CheckRunConnection @@ -1013,21 +1010,21 @@ type CheckSuite implements Node { "A list of open pull requests matching the check suite." matchingPullRequests( "A list of states to filter the pull requests by." - states: [PullRequestState!], + states: [PullRequestState!] "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "The head ref name to filter the pull requests by." - headRefName: String, + headRefName: String "The base ref name to filter the pull requests by." - baseRefName: String, + baseRefName: String "Ordering options for pull requests returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestConnection @@ -1168,15 +1165,15 @@ type Commit implements Node & GitObject & Subscribable & UniformResourceLocatabl "The merged Pull Request that introduced the commit to the repository. If the commit is not present in the default branch, additionally returns open Pull Requests associated with the commit" associatedPullRequests( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for pull requests." - orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC} + orderBy: PullRequestOrder = { field: CREATED_AT, direction: ASC } ): PullRequestConnection "Authorship details of the commit." author: GitActor @@ -1190,44 +1187,44 @@ type Commit implements Node & GitObject & Subscribable & UniformResourceLocatabl """ authors( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): GitActorConnection! "Fetches `git blame` information." - blame( - "The file whose Git blame information you want." - path: String! - ): Blame! + blame("The file whose Git blame information you want." path: String!): Blame! "We recommend using the `changedFilesIfAvailable` field instead of `changedFiles`, as `changedFiles` will cause your request to return an error if GitHub is unable to calculate the number of changed files." - changedFiles: Int! @deprecated(reason: "`changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC.") + changedFiles: Int! + @deprecated( + reason: "`changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC." + ) "The number of changed files in this commit. If GitHub is unable to calculate the number of changed files (for example due to a timeout), this will return `null`. We recommend using this field instead of `changedFiles`." changedFilesIfAvailable: Int "The check suites associated with a commit." checkSuites( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filters the check suites by this type." filterBy: CheckSuiteFilter ): CheckSuiteConnection "Comments made on the commit." comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): CommitCommentConnection! @@ -1246,39 +1243,36 @@ type Commit implements Node & GitObject & Subscribable & UniformResourceLocatabl "The deployments associated with a commit." deployments( "Environments to list deployments for" - environments: [String!], + environments: [String!] "Ordering options for deployments returned from the connection." - orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC}, + orderBy: DeploymentOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeploymentConnection "The tree entry representing the file located at the given path." - file( - "The path for the file" - path: String! - ): TreeEntry + file("The path for the file" path: String!): TreeEntry "The linear commit history starting from (and including) this commit, in the same order as `git log`." history( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If non-null, filters history to only show commits touching files under this path." - path: String, + path: String "If non-null, filters history to only show commits with matching authorship." - author: CommitAuthor, + author: CommitAuthor "Allows specifying a beginning time or date for fetching commits." - since: GitTimestamp, + since: GitTimestamp "Allows specifying an ending time or date for fetching commits." until: GitTimestamp ): CommitHistoryConnection! @@ -1300,16 +1294,19 @@ type Commit implements Node & GitObject & Subscribable & UniformResourceLocatabl "The parents of a commit." parents( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): CommitConnection! "The datetime when this commit was pushed." - pushedDate: DateTime @deprecated(reason: "`pushedDate` is no longer supported. Removal on 2023-07-01 UTC.") + pushedDate: DateTime + @deprecated( + reason: "`pushedDate` is no longer supported. Removal on 2023-07-01 UTC." + ) "The Repository this commit belongs to" repository: Repository! "The HTTP path for this commit" @@ -1323,11 +1320,11 @@ type Commit implements Node & GitObject & Subscribable & UniformResourceLocatabl "Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file." submodules( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): SubmoduleConnection! @@ -1407,15 +1404,15 @@ type CommitComment implements Node & Comment & Deletable & Minimizable & Updatab "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! @@ -1430,11 +1427,11 @@ type CommitComment implements Node & Comment & Deletable & Minimizable & Updatab "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -1474,11 +1471,11 @@ type CommitCommentThread implements Node & RepositoryNode { "The comments that exist in this thread." comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): CommitCommentConnection! @@ -1508,15 +1505,15 @@ type CommitContributionsByRepository { "The commit contributions, each representing a day." contributions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for commit contributions returned from the connection." - orderBy: CommitContributionOrder = {field: OCCURRED_AT, direction: DESC} + orderBy: CommitContributionOrder = { field: OCCURRED_AT, direction: DESC } ): CreatedCommitContributionConnection! "The repository in which the commits were made." repository: Repository! @@ -1576,11 +1573,11 @@ type Comparison implements Node { "The commits which compose this comparison." commits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ComparisonCommitConnection! @@ -1697,26 +1694,26 @@ type ContributionsCollection { "A list of issues the user opened." issueContributions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Should the user's first issue ever be excluded from the result." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Should the user's most commented issue be excluded from the result." - excludePopular: Boolean = false, + excludePopular: Boolean = false "Ordering options for contributions returned from the connection." - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedIssueContributionConnection! "Issue contributions made by the user, grouped by repository." issueContributionsByRepository( "How many repositories should be included." - maxRepositories: Int = 25, + maxRepositories: Int = 25 "Should the user's first issue ever be excluded from the result." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Should the user's most commented issue be excluded from the result." excludePopular: Boolean = false ): [IssueContributionsByRepository!]! @@ -1747,26 +1744,26 @@ type ContributionsCollection { "Pull request contributions made by the user." pullRequestContributions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Should the user's first pull request ever be excluded from the result." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Should the user's most commented pull request be excluded from the result." - excludePopular: Boolean = false, + excludePopular: Boolean = false "Ordering options for contributions returned from the connection." - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedPullRequestContributionConnection! "Pull request contributions made by the user, grouped by repository." pullRequestContributionsByRepository( "How many repositories should be included." - maxRepositories: Int = 25, + maxRepositories: Int = 25 "Should the user's first pull request ever be excluded from the result." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Should the user's most commented pull request be excluded from the result." excludePopular: Boolean = false ): [PullRequestContributionsByRepository!]! @@ -1776,15 +1773,15 @@ type ContributionsCollection { """ pullRequestReviewContributions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for contributions returned from the connection." - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedPullRequestReviewContributionConnection! "Pull request review contributions made by the user, grouped by repository." pullRequestReviewContributionsByRepository( @@ -1794,17 +1791,17 @@ type ContributionsCollection { "A list of repositories owned by the user that the user created in this time range." repositoryContributions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Should the user's first repository ever be excluded from the result." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Ordering options for contributions returned from the connection." - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedRepositoryContributionConnection! "A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts." restrictedContributionsCount: Int! @@ -1815,14 +1812,14 @@ type ContributionsCollection { "How many issues the user opened." totalIssueContributions( "Should the user's first issue ever be excluded from this count." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Should the user's most commented issue be excluded from this count." excludePopular: Boolean = false ): Int! "How many pull requests the user opened." totalPullRequestContributions( "Should the user's first pull request ever be excluded from this count." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Should the user's most commented pull request be excluded from this count." excludePopular: Boolean = false ): Int! @@ -1833,7 +1830,7 @@ type ContributionsCollection { "How many different repositories the user opened issues in." totalRepositoriesWithContributedIssues( "Should the user's first issue ever be excluded from this count." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Should the user's most commented issue be excluded from this count." excludePopular: Boolean = false ): Int! @@ -1842,7 +1839,7 @@ type ContributionsCollection { "How many different repositories the user opened pull requests in." totalRepositoriesWithContributedPullRequests( "Should the user's first pull request ever be excluded from this count." - excludeFirst: Boolean = false, + excludeFirst: Boolean = false "Should the user's most commented pull request be excluded from this count." excludePopular: Boolean = false ): Int! @@ -2083,14 +2080,20 @@ type CreateTeamDiscussionCommentPayload { "A unique identifier for the client performing the mutation." clientMutationId: String "The new comment." - teamDiscussionComment: TeamDiscussionComment @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + teamDiscussionComment: TeamDiscussionComment + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) } "Autogenerated return type of CreateTeamDiscussion" type CreateTeamDiscussionPayload { "A unique identifier for the client performing the mutation." clientMutationId: String "The new discussion." - teamDiscussion: TeamDiscussion @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + teamDiscussion: TeamDiscussion + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) } "Represents the contribution a user made by committing to a repository." type CreatedCommitContribution implements Contribution { @@ -2589,11 +2592,11 @@ type Deployment implements Node { "A list of statuses associated with the deployment." statuses( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeploymentStatusConnection @@ -2639,11 +2642,11 @@ type DeploymentProtectionRule { "The teams or users that can review the deployment" reviewers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeploymentReviewerConnection! @@ -2679,11 +2682,11 @@ type DeploymentRequest { "The teams or users that can review the deployment" reviewers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeploymentReviewerConnection! @@ -2719,11 +2722,11 @@ type DeploymentReview implements Node { "The environments approved or rejected" environments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnvironmentConnection! @@ -2866,11 +2869,11 @@ type Discussion implements Closable & Comment & Updatable & Deletable & Labelabl "The replies to the discussion." comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DiscussionCommentConnection! @@ -2888,13 +2891,13 @@ type Discussion implements Closable & Comment & Updatable & Deletable & Labelabl "A list of labels associated with the object." labels( "Ordering options for labels returned from the connection." - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}, + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): LabelConnection @@ -2913,15 +2916,15 @@ type Discussion implements Closable & Comment & Updatable & Deletable & Labelabl "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! @@ -2942,11 +2945,11 @@ type Discussion implements Closable & Comment & Updatable & Deletable & Labelabl "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -3053,26 +3056,26 @@ type DiscussionComment implements Comment & Deletable & Minimizable & Updatable "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! "The threaded replies to this comment." replies( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DiscussionCommentConnection! @@ -3089,11 +3092,11 @@ type DiscussionComment implements Comment & Deletable & Minimizable & Updatable "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -3162,15 +3165,18 @@ type DiscussionPoll implements Node { "The options for this poll." options( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "How to order the options for the discussion poll." - orderBy: DiscussionPollOptionOrder = {field: AUTHORED_ORDER, direction: ASC} + orderBy: DiscussionPollOptionOrder = { + field: AUTHORED_ORDER + direction: ASC + } ): DiscussionPollOptionConnection "The question that is being asked by this poll." question: String! @@ -3230,11 +3236,11 @@ type DraftIssue implements Node { "A list of users to assigned to this draft issue." assignees( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -3252,22 +3258,22 @@ type DraftIssue implements Node { "List of items linked with the draft issue (currently draft issue can be linked to only one item)." projectV2Items( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2ItemConnection! "Projects that link to this draft issue (currently draft issue can be linked to only one project)." projectsV2( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! @@ -3301,10 +3307,7 @@ type Enterprise implements Node & AnnouncementBanner { "Whether the announcement can be dismissed by the user" announcementUserDismissible: Boolean "A URL pointing to the enterprise's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! "Enterprise billing information visible to enterprise billing managers." billingInfo: EnterpriseBillingInfo "Identifies the date and time when the object was created." @@ -3321,23 +3324,23 @@ type Enterprise implements Node & AnnouncementBanner { "A list of users who are members of this enterprise." members( "Only return members within the organizations with these logins" - organizationLogins: [String!], + organizationLogins: [String!] "The search string to look for." - query: String, + query: String "Ordering options for members returned from the connection." - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}, + orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC } "The role of the user in the enterprise organization or server." - role: EnterpriseUserAccountMembershipRole, + role: EnterpriseUserAccountMembershipRole "Only return members within the selected GitHub Enterprise deployment" - deployment: EnterpriseUserDeployment, + deployment: EnterpriseUserDeployment "Only return members with this two-factor authentication status. Does not include members who only have an account on a GitHub Enterprise Server instance." - hasTwoFactorEnabled: Boolean = null, + hasTwoFactorEnabled: Boolean = null "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseMemberConnection! @@ -3346,17 +3349,17 @@ type Enterprise implements Node & AnnouncementBanner { "A list of organizations that belong to this enterprise." organizations( "The search string to look for." - query: String, + query: String "The viewer's role in an organization." - viewerOrganizationRole: RoleInOrganization, + viewerOrganizationRole: RoleInOrganization "Ordering options for organizations returned from the connection." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}, + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): OrganizationConnection! @@ -3479,17 +3482,17 @@ type EnterpriseIdentityProvider implements Node { "ExternalIdentities provisioned by this identity provider." externalIdentities( "Filter to external identities with valid org membership only" - membersOnly: Boolean, + membersOnly: Boolean "Filter to external identities with the users login" - login: String, + login: String "Filter to external identities with the users userName/NameID attribute" - userName: String, + userName: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ExternalIdentityConnection! @@ -3563,15 +3566,15 @@ type EnterpriseOutsideCollaboratorEdge { "The enterprise organization repositories this user is a member of." repositories( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for repositories." - orderBy: RepositoryOrder = {field: NAME, direction: ASC} + orderBy: RepositoryOrder = { field: NAME, direction: ASC } ): EnterpriseRepositoryInfoConnection! } "Enterprise information visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope." @@ -3579,32 +3582,32 @@ type EnterpriseOwnerInfo { "A list of all of the administrators for this enterprise." admins( "Only return members within the organizations with these logins" - organizationLogins: [String!], + organizationLogins: [String!] "The search string to look for." - query: String, + query: String "The role to filter by." - role: EnterpriseAdministratorRole, + role: EnterpriseAdministratorRole "Ordering options for administrators returned from the connection." - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}, + orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC } "Only return administrators with this two-factor authentication status." - hasTwoFactorEnabled: Boolean = null, + hasTwoFactorEnabled: Boolean = null "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseAdministratorConnection! "A list of users in the enterprise who currently have two-factor authentication disabled." affiliatedUsersWithTwoFactorDisabled( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -3615,17 +3618,17 @@ type EnterpriseOwnerInfo { "A list of enterprise organizations configured with the provided private repository forking setting value." allowPrivateRepositoryForkingSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "The value for the allow private repository forking policy on the enterprise." allowPrivateRepositoryForkingSettingPolicyValue: EnterpriseAllowPrivateRepositoryForkingPolicyValue @@ -3634,60 +3637,63 @@ type EnterpriseOwnerInfo { "A list of enterprise organizations configured with the provided base repository permission." defaultRepositoryPermissionSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The permission to find organizations for." - value: DefaultRepositoryPermissionField!, + value: DefaultRepositoryPermissionField! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "A list of domains owned by the enterprise. Visible to enterprise owners or enterprise owners' personal access tokens (classic) with admin:enterprise scope." domains( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter whether or not the domain is verified." - isVerified: Boolean = null, + isVerified: Boolean = null "Filter whether or not the domain is approved." - isApproved: Boolean = null, + isApproved: Boolean = null "Ordering options for verifiable domains returned." - orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC} + orderBy: VerifiableDomainOrder = { field: DOMAIN, direction: ASC } ): VerifiableDomainConnection! "Enterprise Server installations owned by the enterprise." enterpriseServerInstallations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Whether or not to only return installations discovered via GitHub Connect." - connectedOnly: Boolean = false, + connectedOnly: Boolean = false "Ordering options for Enterprise Server installations returned." - orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} + orderBy: EnterpriseServerInstallationOrder = { + field: HOST_NAME + direction: ASC + } ): EnterpriseServerInstallationConnection! "A list of failed invitations in the enterprise." failedInvitations( "The search string to look for." - query: String, + query: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseFailedInvitationConnection! @@ -3696,15 +3702,15 @@ type EnterpriseOwnerInfo { "The IP addresses that are allowed to access resources owned by the enterprise. Visible to enterprise owners or enterprise owners' personal access tokens (classic) with admin:enterprise scope." ipAllowListEntries( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for IP allow list entries returned." - orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} + orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC } ): IpAllowListEntryConnection! "The setting value for whether the enterprise has IP allow list configuration for installed GitHub Apps enabled." ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue! @@ -3717,17 +3723,17 @@ type EnterpriseOwnerInfo { "A list of enterprise organizations configured with the provided can change repository visibility setting value." membersCanChangeRepositoryVisibilitySettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "The setting value for whether members of organizations in the enterprise can create internal repositories." membersCanCreateInternalRepositoriesSetting: Boolean @@ -3740,68 +3746,68 @@ type EnterpriseOwnerInfo { "A list of enterprise organizations configured with the provided repository creation setting value." membersCanCreateRepositoriesSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting to find organizations for." - value: OrganizationMembersCanCreateRepositoriesSettingValue!, + value: OrganizationMembersCanCreateRepositoriesSettingValue! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "The setting value for whether members with admin permissions for repositories can delete issues." membersCanDeleteIssuesSetting: EnterpriseEnabledDisabledSettingValue! "A list of enterprise organizations configured with the provided members can delete issues setting value." membersCanDeleteIssuesSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "The setting value for whether members with admin permissions for repositories can delete or transfer repositories." membersCanDeleteRepositoriesSetting: EnterpriseEnabledDisabledSettingValue! "A list of enterprise organizations configured with the provided members can delete repositories setting value." membersCanDeleteRepositoriesSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "The setting value for whether members of organizations in the enterprise can invite outside collaborators." membersCanInviteCollaboratorsSetting: EnterpriseEnabledDisabledSettingValue! "A list of enterprise organizations configured with the provided members can invite collaborators setting value." membersCanInviteCollaboratorsSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "Indicates whether members of this enterprise's organizations can purchase additional services for those organizations." membersCanMakePurchasesSetting: EnterpriseMembersCanMakePurchasesSettingValue! @@ -3810,34 +3816,34 @@ type EnterpriseOwnerInfo { "A list of enterprise organizations configured with the provided members can update protected branches setting value." membersCanUpdateProtectedBranchesSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "The setting value for whether members can view dependency insights." membersCanViewDependencyInsightsSetting: EnterpriseEnabledDisabledSettingValue! "A list of enterprise organizations configured with the provided members can view dependency insights setting value." membersCanViewDependencyInsightsSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "Indicates if email notification delivery for this enterprise is restricted to verified or approved domains." notificationDeliveryRestrictionEnabledSetting: NotificationRestrictionSettingValue! @@ -3848,87 +3854,90 @@ type EnterpriseOwnerInfo { "A list of enterprise organizations configured with the provided organization projects setting value." organizationProjectsSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "A list of outside collaborators across the repositories in the enterprise." outsideCollaborators( "The login of one specific outside collaborator." - login: String, + login: String "The search string to look for." - query: String, + query: String "Ordering options for outside collaborators returned from the connection." - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}, + orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC } "Only return outside collaborators on repositories with this visibility." - visibility: RepositoryVisibility, + visibility: RepositoryVisibility "Only return outside collaborators with this two-factor authentication status." - hasTwoFactorEnabled: Boolean = null, + hasTwoFactorEnabled: Boolean = null "Only return outside collaborators within the organizations with these logins" - organizationLogins: [String!], + organizationLogins: [String!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseOutsideCollaboratorConnection! "A list of pending administrator invitations for the enterprise." pendingAdminInvitations( "The search string to look for." - query: String, + query: String "Ordering options for pending enterprise administrator invitations returned from the connection." - orderBy: EnterpriseAdministratorInvitationOrder = {field: CREATED_AT, direction: DESC}, + orderBy: EnterpriseAdministratorInvitationOrder = { + field: CREATED_AT + direction: DESC + } "The role to filter by." - role: EnterpriseAdministratorRole, + role: EnterpriseAdministratorRole "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseAdministratorInvitationConnection! "A list of pending collaborator invitations across the repositories in the enterprise." pendingCollaboratorInvitations( "The search string to look for." - query: String, + query: String "Ordering options for pending repository collaborator invitations returned from the connection." - orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC}, + orderBy: RepositoryInvitationOrder = { field: CREATED_AT, direction: DESC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RepositoryInvitationConnection! "A list of pending member invitations for organizations in the enterprise." pendingMemberInvitations( "The search string to look for." - query: String, + query: String "Only return invitations within the organizations with these logins" - organizationLogins: [String!], + organizationLogins: [String!] "Only return invitations matching this invitation source" - invitationSource: OrganizationInvitationSource, + invitationSource: OrganizationInvitationSource "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterprisePendingMemberInvitationConnection! @@ -3937,45 +3946,45 @@ type EnterpriseOwnerInfo { "A list of enterprise organizations configured with the provided repository projects setting value." repositoryProjectsSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "The SAML Identity Provider for the enterprise." samlIdentityProvider: EnterpriseIdentityProvider "A list of enterprise organizations configured with the SAML single sign-on setting value." samlIdentityProviderSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: IdentityProviderConfigurationState!, + value: IdentityProviderConfigurationState! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "A list of members with a support entitlement." supportEntitlements( "Ordering options for support entitlement users returned from the connection." - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}, + orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseMemberConnection! @@ -3984,34 +3993,34 @@ type EnterpriseOwnerInfo { "A list of enterprise organizations configured with the provided team discussions setting value." teamDiscussionsSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! "The setting value for whether the enterprise requires two-factor authentication for its organizations and users." twoFactorRequiredSetting: EnterpriseEnabledSettingValue! "A list of enterprise organizations configured with the two-factor authentication setting value." twoFactorRequiredSettingOrganizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The setting value to find organizations for." - value: Boolean!, + value: Boolean! "Ordering options for organizations with this setting." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } ): OrganizationConnection! } "The connection type for OrganizationInvitation." @@ -4078,26 +4087,29 @@ type EnterpriseServerInstallation implements Node { "User accounts on this Enterprise Server installation." userAccounts( "Ordering options for Enterprise Server user accounts returned from the connection." - orderBy: EnterpriseServerUserAccountOrder = {field: LOGIN, direction: ASC}, + orderBy: EnterpriseServerUserAccountOrder = { field: LOGIN, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseServerUserAccountConnection! "User accounts uploads for the Enterprise Server installation." userAccountsUploads( "Ordering options for Enterprise Server user accounts uploads returned from the connection." - orderBy: EnterpriseServerUserAccountsUploadOrder = {field: CREATED_AT, direction: DESC}, + orderBy: EnterpriseServerUserAccountsUploadOrder = { + field: CREATED_AT + direction: DESC + } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseServerUserAccountsUploadConnection! @@ -4147,13 +4159,16 @@ type EnterpriseServerUserAccount implements Node { "User emails belonging to this user account." emails( "Ordering options for Enterprise Server user account emails returned from the connection." - orderBy: EnterpriseServerUserAccountEmailOrder = {field: EMAIL, direction: ASC}, + orderBy: EnterpriseServerUserAccountEmailOrder = { + field: EMAIL + direction: ASC + } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseServerUserAccountEmailConnection! @@ -4260,10 +4275,7 @@ type EnterpriseServerUserAccountsUploadEdge { "An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations." type EnterpriseUserAccount implements Actor & Node { "A URL pointing to the enterprise user account's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! "Identifies the date and time when the object was created." createdAt: DateTime! "The enterprise in which this user account exists." @@ -4271,17 +4283,20 @@ type EnterpriseUserAccount implements Actor & Node { "A list of Enterprise Server installations this user is a member of." enterpriseInstallations( "The search string to look for." - query: String, + query: String "Ordering options for installations returned from the connection." - orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC}, + orderBy: EnterpriseServerInstallationOrder = { + field: HOST_NAME + direction: ASC + } "The role of the user in the installation." - role: EnterpriseUserAccountMembershipRole, + role: EnterpriseUserAccountMembershipRole "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseServerInstallationMembershipConnection! @@ -4293,17 +4308,17 @@ type EnterpriseUserAccount implements Actor & Node { "A list of enterprise organizations this user is a member of." organizations( "The search string to look for." - query: String, + query: String "Ordering options for organizations returned from the connection." - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}, + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } "The role of the user in the enterprise organization." - role: EnterpriseUserAccountMembershipRole, + role: EnterpriseUserAccountMembershipRole "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): EnterpriseOrganizationMembershipConnection! @@ -4326,11 +4341,11 @@ type Environment implements Node { "The protection rules defined for this environment" protectionRules( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeploymentProtectionRuleConnection! @@ -4479,11 +4494,11 @@ type Gist implements Node & Starrable & UniformResourceLocatable { "A list of comments associated with the gist" comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): GistCommentConnection! @@ -4494,20 +4509,20 @@ type Gist implements Node & Starrable & UniformResourceLocatable { "The files in this gist." files( "The maximum number of files to return." - limit: Int = 10, + limit: Int = 10 "The oid of the files to return" oid: GitObjectID ): [GistFile] "A list of forks associated with the gist" forks( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for gists returned from the connection" orderBy: GistOrder ): GistConnection! @@ -4531,13 +4546,13 @@ type Gist implements Node & Starrable & UniformResourceLocatable { "A list of users who have starred this starrable." stargazers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Order for connection" orderBy: StarOrder ): StargazerConnection! @@ -4586,11 +4601,11 @@ type GistComment implements Node & Comment & Deletable & Minimizable & Updatable "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -4668,10 +4683,7 @@ type GistFile { "Represents an actor in a Git commit (ie. an author or committer)." type GitActor { "A URL pointing to the author's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! "The timestamp of the Git action (authoring or committing)." date: GitTimestamp "The email in the Git commit." @@ -4740,11 +4752,11 @@ type GrantEnterpriseOrganizationsMigratorRolePayload { "The organizations that had the migrator role applied to for the given user." organizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): OrganizationConnection @@ -4849,11 +4861,11 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "A list of Users assigned to this object." assignees( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -4878,13 +4890,13 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "A list of comments associated with the Issue." comments( "Ordering options for issue comments returned from the connection." - orderBy: IssueCommentOrder, + orderBy: IssueCommentOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueCommentConnection! @@ -4913,13 +4925,13 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "A list of labels associated with the object." labels( "Ordering options for labels returned from the connection." - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}, + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): LabelConnection @@ -4928,11 +4940,11 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "Branches linked to this issue." linkedBranches( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): LinkedBranchConnection! @@ -4945,57 +4957,54 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "A list of Users that are participating in the Issue conversation." participants( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! "List of project cards associated with this issue." projectCards( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "A list of archived states to filter the cards by" archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] ): ProjectCardConnection! "List of project items associated with this issue." projectItems( "Include archived items." - includeArchived: Boolean = true, + includeArchived: Boolean = true "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2ItemConnection! "Find a project by number." - projectV2( - "The project number." - number: Int! - ): ProjectV2 + projectV2("The project number." number: Int!): ProjectV2 "A list of projects under the owner." projectsV2( "A project to search for under the the owner." - query: String, + query: String "How to order the returned projects." - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}, + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! @@ -5006,15 +5015,15 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! @@ -5029,30 +5038,33 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "A list of events, comments, commits, etc. associated with the issue." timeline( "Allows filtering timeline events by a `since` timestamp." - since: DateTime, + since: DateTime "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int - ): IssueTimelineConnection! @deprecated(reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.") + ): IssueTimelineConnection! + @deprecated( + reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC." + ) "A list of events, comments, commits, etc. associated with the issue." timelineItems( "Filter timeline items by a `since` timestamp." - since: DateTime, + since: DateTime "Skips the first _n_ elements in the list." - skip: Int, + skip: Int "Filter timeline items by type." - itemTypes: [IssueTimelineItemsItemType!], + itemTypes: [IssueTimelineItemsItemType!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueTimelineItemsConnection! @@ -5063,22 +5075,22 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "A list of issues that track this issue" trackedInIssues( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueConnection! "A list of issues tracked inside the current issue" trackedIssues( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueConnection! @@ -5094,11 +5106,11 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -5170,15 +5182,15 @@ type IssueComment implements Node & Comment & Deletable & Minimizable & Updatabl "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! @@ -5193,11 +5205,11 @@ type IssueComment implements Node & Comment & Deletable & Minimizable & Updatabl "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -5248,15 +5260,15 @@ type IssueContributionsByRepository { "The issue contributions." contributions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for contributions returned from the connection." - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedIssueContributionConnection! "The repository in which the issues were opened." repository: Repository! @@ -5275,11 +5287,11 @@ type IssueTemplate { "The suggested assignees." assignees( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -5290,13 +5302,13 @@ type IssueTemplate { "The suggested issue labels" labels( "Ordering options for labels returned from the connection." - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}, + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): LabelConnection @@ -5380,19 +5392,19 @@ type Label implements Node { "A list of issues associated with this label." issues( "Ordering options for issues returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "A list of states to filter the issues by." - states: [IssueState!], + states: [IssueState!] "Filtering options for issues returned from the connection." - filterBy: IssueFilters, + filterBy: IssueFilters "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueConnection! @@ -5401,21 +5413,21 @@ type Label implements Node { "A list of pull requests associated with this label." pullRequests( "A list of states to filter the pull requests by." - states: [PullRequestState!], + states: [PullRequestState!] "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "The head ref name to filter the pull requests by." - headRefName: String, + headRefName: String "The base ref name to filter the pull requests by." - baseRefName: String, + baseRefName: String "Ordering options for pull requests returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestConnection! @@ -5598,10 +5610,7 @@ type LockedEvent implements Node { "A placeholder user for attribution of imported data on GitHub." type Mannequin implements Node & Actor & UniformResourceLocatable { "A URL pointing to the GitHub App's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! "The user that has claimed the data attributed to this mannequin." claimant: User "Identifies the date and time when the object was created." @@ -6019,11 +6028,11 @@ type MergeQueue implements Node { "The entries in the queue" entries( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): MergeQueueEntryConnection @@ -6146,19 +6155,19 @@ type Milestone implements Node & Closable & UniformResourceLocatable { "A list of issues associated with the milestone." issues( "Ordering options for issues returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "A list of states to filter the issues by." - states: [IssueState!], + states: [IssueState!] "Filtering options for issues returned from the connection." - filterBy: IssueFilters, + filterBy: IssueFilters "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueConnection! @@ -6169,21 +6178,21 @@ type Milestone implements Node & Closable & UniformResourceLocatable { "A list of pull requests associated with the milestone." pullRequests( "A list of states to filter the pull requests by." - states: [PullRequestState!], + states: [PullRequestState!] "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "The head ref name to filter the pull requests by." - headRefName: String, + headRefName: String "The base ref name to filter the pull requests by." - baseRefName: String, + baseRefName: String "Ordering options for pull requests returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestConnection! @@ -6358,15 +6367,9 @@ type Mutation { input: AddReactionInput! ): AddReactionPayload "Adds a star to a Starrable." - addStar( - "Parameters for AddStar" - input: AddStarInput! - ): AddStarPayload + addStar("Parameters for AddStar" input: AddStarInput!): AddStarPayload "Add an upvote to a discussion or discussion comment." - addUpvote( - "Parameters for AddUpvote" - input: AddUpvoteInput! - ): AddUpvotePayload + addUpvote("Parameters for AddUpvote" input: AddUpvoteInput!): AddUpvotePayload "Adds a verifiable domain to an owning account." addVerifiableDomain( "Parameters for AddVerifiableDomain" @@ -6479,45 +6482,45 @@ type Mutation { ): CreateCheckSuitePayload """ Appends a commit to the given branch as the authenticated user. - + This mutation creates a commit whose parent is the HEAD of the provided branch and also updates that branch to point to the new commit. It can be thought of as similar to `git commit`. - + ### Locating a Branch - + Commits are appended to a `branch` of type `Ref`. This must refer to a git branch (i.e. the fully qualified path must begin with `refs/heads/`, although including this prefix is optional. - + Callers may specify the `branch` to commit to either by its global node ID or by passing both of `repositoryNameWithOwner` and `refName`. For more details see the documentation for `CommittableBranch`. - + ### Describing Changes - + `fileChanges` are specified as a `FilesChanges` object describing `FileAdditions` and `FileDeletions`. - + Please see the documentation for `FileChanges` for more information on how to use this argument to describe any set of file changes. - + ### Authorship - + Similar to the web commit interface, this mutation does not support specifying the author or committer of the commit and will not add support for this in the future. - + A commit created by a successful execution of this mutation will be authored by the owner of the credential which authenticates the API request. The committer will be identical to that of commits authored using the web interface. - + If you need full control over author and committer information, please use the Git Database REST API instead. - + ### Commit Signing - + Commits made using this mutation are automatically signed by GitHub if supported and will be marked as verified in the user interface. """ @@ -6581,10 +6584,7 @@ type Mutation { input: CreatePullRequestInput! ): CreatePullRequestPayload "Create a new Git Ref." - createRef( - "Parameters for CreateRef" - input: CreateRefInput! - ): CreateRefPayload + createRef("Parameters for CreateRef" input: CreateRefInput!): CreateRefPayload "Create a new repository." createRepository( "Parameters for CreateRepository" @@ -6721,10 +6721,7 @@ type Mutation { input: DeletePullRequestReviewCommentInput! ): DeletePullRequestReviewCommentPayload "Delete a Git Ref." - deleteRef( - "Parameters for DeleteRef" - input: DeleteRefInput! - ): DeleteRefPayload + deleteRef("Parameters for DeleteRef" input: DeleteRefInput!): DeleteRefPayload "Delete a repository ruleset" deleteRepositoryRuleset( "Parameters for DeleteRepositoryRuleset" @@ -6866,10 +6863,7 @@ type Mutation { input: MoveProjectColumnInput! ): MoveProjectColumnPayload "Pin an issue to a repository" - pinIssue( - "Parameters for PinIssue" - input: PinIssueInput! - ): PinIssuePayload + pinIssue("Parameters for PinIssue" input: PinIssueInput!): PinIssuePayload "Publish an existing sponsorship tier that is currently still a draft to a GitHub Sponsors profile." publishSponsorsTier( "Parameters for PublishSponsorsTier" @@ -7331,10 +7325,7 @@ type Mutation { input: UpdatePullRequestReviewCommentInput! ): UpdatePullRequestReviewCommentPayload "Update a Git Ref." - updateRef( - "Parameters for UpdateRef" - input: UpdateRefInput! - ): UpdateRefPayload + updateRef("Parameters for UpdateRef" input: UpdateRefInput!): UpdateRefPayload "Update information about a repository." updateRepository( "Parameters for UpdateRepository" @@ -7393,17 +7384,17 @@ type OIDCProvider implements Node { "ExternalIdentities provisioned by this identity provider." externalIdentities( "Filter to external identities with valid org membership only" - membersOnly: Boolean, + membersOnly: Boolean "Filter to external identities with the users login" - login: String, + login: String "Filter to external identities with the users userName/NameID attribute" - userName: String, + userName: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ExternalIdentityConnection! @@ -8694,23 +8685,20 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "Audit log entries of the organization" auditLog( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The query string to filter audit entries" - query: String, + query: String "Ordering options for the returned audit log entries." - orderBy: AuditLogOrder = {field: CREATED_AT, direction: DESC} + orderBy: AuditLogOrder = { field: CREATED_AT, direction: DESC } ): OrganizationAuditEntryConnection! "A URL pointing to the organization's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! "Identifies the date and time when the object was created." createdAt: DateTime! "Identifies the primary key from the database." @@ -8722,36 +8710,36 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "A list of domains owned by the organization." domains( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter by if the domain is verified." - isVerified: Boolean = null, + isVerified: Boolean = null "Filter by if the domain is approved." - isApproved: Boolean = null, + isApproved: Boolean = null "Ordering options for verifiable domains returned." - orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC} + orderBy: VerifiableDomainOrder = { field: DOMAIN, direction: ASC } ): VerifiableDomainConnection "The organization's public email." email: String "A list of owners of the organization's enterprise account." enterpriseOwners( "The search string to look for." - query: String, + query: String "The organization role to filter by." - organizationRole: RoleInOrganization, + organizationRole: RoleInOrganization "Ordering options for enterprise owners returned from the connection." - orderBy: OrgEnterpriseOwnerOrder = {field: LOGIN, direction: ASC}, + orderBy: OrgEnterpriseOwnerOrder = { field: LOGIN, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): OrganizationEnterpriseOwnerConnection! @@ -8767,23 +8755,20 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "The IP addresses that are allowed to access resources owned by the organization." ipAllowListEntries( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for IP allow list entries returned." - orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} + orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC } ): IpAllowListEntryConnection! "The setting value for whether the organization has IP allow list configuration for installed GitHub Apps enabled." ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue! "Whether the given account is sponsoring this user/organization." - isSponsoredBy( - "The target account's login." - accountLogin: String! - ): Boolean! + isSponsoredBy("The target account's login." accountLogin: String!): Boolean! "True if the viewer is sponsored by this user/organization." isSponsoringViewer: Boolean! "Whether the organization has verified its profile email and website." @@ -8797,41 +8782,41 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "A list of all mannequins for this organization." mannequins( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter mannequins by login." - login: String, + login: String "Ordering options for mannequins returned from the connection." - orderBy: MannequinOrder = {field: CREATED_AT, direction: ASC} + orderBy: MannequinOrder = { field: CREATED_AT, direction: ASC } ): MannequinConnection! "Get the status messages members of this entity have set that are either public or visible only to the organization." memberStatuses( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for user statuses returned from the connection." - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} + orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC } ): UserStatusConnection! "Members can fork private repositories in this organization" membersCanForkPrivateRepositories: Boolean! "A list of users who are members of this organization." membersWithRole( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): OrganizationMemberConnection! @@ -8850,85 +8835,79 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "A list of packages under the owner." packages( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Find packages by their names." - names: [String], + names: [String] "Find packages in a repository by ID." - repositoryId: ID, + repositoryId: ID "Filter registry package by type." - packageType: PackageType, + packageType: PackageType "Ordering of the returned packages." - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageOrder = { field: CREATED_AT, direction: DESC } ): PackageConnection! "A list of users who have been invited to join this organization." pendingMembers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! "A list of repositories and gists this profile owner can pin to their profile." pinnableItems( "Filter the types of pinnable items that are returned." - types: [PinnableItemType!], + types: [PinnableItemType!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnableItemConnection! "A list of repositories and gists this profile owner has pinned to their profile" pinnedItems( "Filter the types of pinned items that are returned." - types: [PinnableItemType!], + types: [PinnableItemType!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnableItemConnection! "Returns how many more items this profile owner can pin to their profile." pinnedItemsRemaining: Int! "Find project by number." - project( - "The project number to find." - number: Int! - ): Project + project("The project number to find." number: Int!): Project "Find a project by number." - projectV2( - "The project number." - number: Int! - ): ProjectV2 + projectV2("The project number." number: Int!): ProjectV2 "A list of projects under the owner." projects( "Ordering options for projects returned from the connection" - orderBy: ProjectOrder, + orderBy: ProjectOrder "Query to search projects by, currently only searching by name." - search: String, + search: String "A list of states to filter the projects by." - states: [ProjectState!], + states: [ProjectState!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectConnection! @@ -8939,111 +8918,111 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "A list of projects under the owner." projectsV2( "A project to search for under the the owner." - query: String, + query: String "How to order the returned projects." - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}, + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! "Recent projects that this user has modified in the context of the owner." recentProjects( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! "A list of repositories that the user owns." repositories( "If non-null, filters repositories according to privacy" - privacy: RepositoryPrivacy, + privacy: RepositoryPrivacy "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder, + orderBy: RepositoryOrder "Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns." - affiliations: [RepositoryAffiliation], + affiliations: [RepositoryAffiliation] "Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns." - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR], + ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] "If non-null, filters repositories according to whether they have been locked" - isLocked: Boolean, + isLocked: Boolean "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If non-null, filters repositories according to whether they are archived and not maintained" - isArchived: Boolean, + isArchived: Boolean "If non-null, filters repositories according to whether they are forks of another repository" isFork: Boolean ): RepositoryConnection! "Find Repository." repository( "Name of Repository to find." - name: String!, + name: String! "Follow repository renames. If disabled, a repository referenced by its old name will return an error." followRenames: Boolean = true ): Repository "Discussion comments this user has authored." repositoryDiscussionComments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter discussion comments to only those in a specific repository." - repositoryId: ID, + repositoryId: ID "Filter discussion comments to only those that were marked as the answer" onlyAnswers: Boolean = false ): DiscussionCommentConnection! "Discussions this user has started." repositoryDiscussions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for discussions returned from the connection." - orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC}, + orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC } "Filter discussions to only those in a specific repository." - repositoryId: ID, + repositoryId: ID "Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions." - answered: Boolean = null, + answered: Boolean = null "A list of states to filter the discussions by." states: [DiscussionState!] = [] ): DiscussionConnection! "A list of all repository migrations for this organization." repositoryMigrations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter repository migrations by state." - state: MigrationState, + state: MigrationState "Filter repository migrations by repository name." - repositoryName: String, + repositoryName: String "Ordering options for repository migrations returned." - orderBy: RepositoryMigrationOrder = {field: CREATED_AT, direction: ASC} + orderBy: RepositoryMigrationOrder = { field: CREATED_AT, direction: ASC } ): RepositoryMigrationConnection! "When true the organization requires all members, billing managers, and outside collaborators to enable two-factor authentication." requiresTwoFactorAuthentication: Boolean @@ -9057,13 +9036,13 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "A list of rulesets for this organization." rulesets( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Return rulesets configured at higher levels that apply to this organization" includeParents: Boolean = true ): RepositoryRulesetConnection @@ -9072,53 +9051,53 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "List of users and organizations this entity is sponsoring." sponsoring( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the users and organizations returned from the connection." - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! "List of sponsors for this user or organization." sponsors( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see." - tierId: ID, + tierId: ID "Ordering options for sponsors returned from the connection." - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! "Events involving this sponsorable, such as new sponsorships." sponsorsActivities( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given." - period: SponsorsActivityPeriod = MONTH, + period: SponsorsActivityPeriod = MONTH "Filter activities to those that occurred on or after this time." - since: DateTime, + since: DateTime "Filter activities to those that occurred before this time." - until: DateTime, + until: DateTime "Ordering options for activity returned from the connection." - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC}, + orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC } "Filter activities to only the specified actions." - actions: [SponsorsActivityAction!] = [], + actions: [SponsorsActivityAction!] = [] "Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship." - includeAsSponsor: Boolean = false, + includeAsSponsor: Boolean = false "Whether or not to include private activities in the result set. Defaults to including public and private activities." includePrivate: Boolean = true ): SponsorsActivityConnection! @@ -9137,79 +9116,76 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "List of sponsorship updates sent from this sponsorable to sponsors." sponsorshipNewsletters( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for sponsorship updates returned from the connection." - orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} + orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC } ): SponsorshipNewsletterConnection! "The sponsorships where this user or organization is the maintainer receiving the funds." sponsorshipsAsMaintainer( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Whether or not to include private sponsorships in the result set" - includePrivate: Boolean = false, + includePrivate: Boolean = false "Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer." - orderBy: SponsorshipOrder, + orderBy: SponsorshipOrder "Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received." activeOnly: Boolean = true ): SponsorshipConnection! "The sponsorships where this user or organization is the funder." sponsorshipsAsSponsor( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer." - orderBy: SponsorshipOrder, + orderBy: SponsorshipOrder "Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins." - maintainerLogins: [String!], + maintainerLogins: [String!] "Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made." activeOnly: Boolean = true ): SponsorshipConnection! "Find an organization's team by its slug." - team( - "The name or slug of the team to find." - slug: String! - ): Team + team("The name or slug of the team to find." slug: String!): Team "A list of teams in this organization." teams( "If non-null, filters teams according to privacy" - privacy: TeamPrivacy, + privacy: TeamPrivacy "If non-null, filters teams according to notification setting" - notificationSetting: TeamNotificationSetting, + notificationSetting: TeamNotificationSetting "If non-null, filters teams according to whether the viewer is an admin or member on team" - role: TeamRole, + role: TeamRole "If non-null, filters teams with query on team name and team slug" - query: String, + query: String "User logins to filter by" - userLogins: [String!], + userLogins: [String!] "Ordering options for teams returned from the connection" - orderBy: TeamOrder, + orderBy: TeamOrder "If true, filters teams that are mapped to an LDAP Group (Enterprise only)" - ldapMapped: Boolean, + ldapMapped: Boolean "If true, restrict to only root teams" - rootTeamsOnly: Boolean = false, + rootTeamsOnly: Boolean = false "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): TeamConnection! @@ -9220,9 +9196,9 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec "The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has spent on GitHub to fund sponsorships. Only returns a value when viewed by the user themselves or by a user who can manage sponsorships for the requested organization." totalSponsorshipAmountAsSponsorInCents( "Filter payments to those that occurred on or after this time." - since: DateTime, + since: DateTime "Filter payments to those that occurred before this time." - until: DateTime, + until: DateTime "Filter payments to those made to the users or organizations with the specified usernames." sponsorableLogins: [String!] = [] ): Int @@ -9318,17 +9294,17 @@ type OrganizationIdentityProvider implements Node { "External Identities provisioned by this Identity Provider" externalIdentities( "Filter to external identities with valid org membership only" - membersOnly: Boolean, + membersOnly: Boolean "Filter to external identities with the users login" - login: String, + login: String "Filter to external identities with the users userName/NameID attribute" - userName: String, + userName: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ExternalIdentityConnection! @@ -9435,11 +9411,11 @@ type OrganizationTeamsHovercardContext implements HovercardContext { "Teams in this organization the user is a member of that are relevant" relevantTeams( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): TeamConnection! @@ -9459,13 +9435,13 @@ type OrganizationsHovercardContext implements HovercardContext { "Organizations this user is a member of that are relevant" relevantOrganizations( "Ordering options for the User's organizations." - orderBy: OrganizationOrder = null, + orderBy: OrganizationOrder = null "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): OrganizationConnection! @@ -9486,20 +9462,17 @@ type Package implements Node { "Statistics about package activity." statistics: PackageStatistics "Find package version by version string." - version( - "The package version." - version: String! - ): PackageVersion + version("The package version." version: String!): PackageVersion "list of versions for this package" versions( "Ordering of the returned packages." - orderBy: PackageVersionOrder = {field: CREATED_AT, direction: DESC}, + orderBy: PackageVersionOrder = { field: CREATED_AT, direction: DESC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PackageVersionConnection! @@ -9578,13 +9551,13 @@ type PackageVersion implements Node { "List of files associated with this package version" files( "Ordering of the returned package files." - orderBy: PackageFileOrder = {field: CREATED_AT, direction: ASC}, + orderBy: PackageFileOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PackageFileConnection! @@ -9867,11 +9840,11 @@ type ProfileItemShowcase { "The repositories and gists in the showcase. If the profile owner has any pinned items, those will be returned. Otherwise, the profile owner's popular repositories will be returned." items( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnableItemConnection! @@ -9889,11 +9862,11 @@ type Project implements Node & Closable & Updatable { "List of columns in the project" columns( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectColumnConnection! @@ -9913,13 +9886,13 @@ type Project implements Node & Closable & Updatable { "List of pending cards in this project" pendingCards( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "A list of archived states to filter the cards by" archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] ): ProjectCardConnection! @@ -9996,13 +9969,13 @@ type ProjectColumn implements Node { "List of cards in the column" cards( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "A list of archived states to filter the cards by" archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] ): ProjectCardConnection! @@ -10090,36 +10063,33 @@ type ProjectV2 implements Closable & Updatable & Node { "Identifies the primary key from the database." databaseId: Int "A field of the project" - field( - "The name of the field" - name: String! - ): ProjectV2FieldConfiguration + field("The name of the field" name: String!): ProjectV2FieldConfiguration "List of fields and their constraints in the project" fields( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for project v2 fields returned from the connection" - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConfigurationConnection! id: ID! "List of items in the project" items( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for project v2 items returned from the connection" - orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2ItemOrder = { field: POSITION, direction: ASC } ): ProjectV2ItemConnection! "The project's number." number: Int! @@ -10132,15 +10102,15 @@ type ProjectV2 implements Closable & Updatable & Node { "The repositories the project is linked to." repositories( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder = {field: CREATED_AT, direction: DESC} + orderBy: RepositoryOrder = { field: CREATED_AT, direction: DESC } ): RepositoryConnection! "The HTTP path for this project" resourcePath: URI! @@ -10149,15 +10119,15 @@ type ProjectV2 implements Closable & Updatable & Node { "The teams the project is linked to." teams( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for teams returned from this connection." - orderBy: TeamOrder = {field: NAME, direction: ASC} + orderBy: TeamOrder = { field: NAME, direction: ASC } ): TeamConnection! "Returns true if this project is a template." template: Boolean! @@ -10181,15 +10151,15 @@ type ProjectV2 implements Closable & Updatable & Node { "List of views in the project" views( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for project v2 views returned from the connection" - orderBy: ProjectV2ViewOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2ViewOrder = { field: POSITION, direction: ASC } ): ProjectV2ViewConnection! "A workflow of the project" workflow( @@ -10199,15 +10169,15 @@ type ProjectV2 implements Closable & Updatable & Node { "List of the workflows in the project" workflows( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for project v2 workflows returned from the connection" - orderBy: ProjectV2WorkflowOrder = {field: NAME, direction: ASC} + orderBy: ProjectV2WorkflowOrder = { field: NAME, direction: ASC } ): ProjectV2WorkflowConnection! } "The connection type for ProjectV2Actor." @@ -10316,15 +10286,15 @@ type ProjectV2Item implements Node { "The field values that are set on the item." fieldValues( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for project v2 item field values returned from the connection" - orderBy: ProjectV2ItemFieldValueOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2ItemFieldValueOrder = { field: POSITION, direction: ASC } ): ProjectV2ItemFieldValueConnection! id: ID! "Whether the item is archived." @@ -10405,11 +10375,11 @@ type ProjectV2ItemFieldLabelValue { "Labels value of a field" labels( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): LabelConnection @@ -10446,15 +10416,15 @@ type ProjectV2ItemFieldPullRequestValue { "The pull requests for this field" pullRequests( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for pull requests." - orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC} + orderBy: PullRequestOrder = { field: CREATED_AT, direction: ASC } ): PullRequestConnection } "The value of a repository field in a Project item." @@ -10471,11 +10441,11 @@ type ProjectV2ItemFieldReviewerValue { "The reviewers for this field." reviewers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RequestedReviewerConnection @@ -10533,11 +10503,11 @@ type ProjectV2ItemFieldUserValue { "The users for this field" users( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection @@ -10697,43 +10667,46 @@ type ProjectV2View implements Node { "The view's visible fields." fields( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the project v2 fields returned from the connection." - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConfigurationConnection "The project view's filter." filter: String "The view's group-by field." groupBy( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the project v2 fields returned from the connection." - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} - ): ProjectV2FieldConnection @deprecated(reason: "The `ProjectV2View#order_by` API is deprecated in favour of the more capable `ProjectV2View#group_by_field` API. Check out the `ProjectV2View#group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC.") + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } + ): ProjectV2FieldConnection + @deprecated( + reason: "The `ProjectV2View#order_by` API is deprecated in favour of the more capable `ProjectV2View#group_by_field` API. Check out the `ProjectV2View#group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC." + ) "The view's group-by field." groupByFields( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the project v2 fields returned from the connection." - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConfigurationConnection id: ID! "The project view's layout." @@ -10747,22 +10720,25 @@ type ProjectV2View implements Node { "The view's sort-by config." sortBy( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int - ): ProjectV2SortByConnection @deprecated(reason: "The `ProjectV2View#sort_by` API is deprecated in favour of the more capable `ProjectV2View#sort_by_fields` API. Check out the `ProjectV2View#sort_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC.") + ): ProjectV2SortByConnection + @deprecated( + reason: "The `ProjectV2View#sort_by` API is deprecated in favour of the more capable `ProjectV2View#sort_by_fields` API. Check out the `ProjectV2View#sort_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC." + ) "The view's sort-by config." sortByFields( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2SortByFieldConnection @@ -10771,42 +10747,48 @@ type ProjectV2View implements Node { "The view's vertical-group-by field." verticalGroupBy( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the project v2 fields returned from the connection." - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} - ): ProjectV2FieldConnection @deprecated(reason: "The `ProjectV2View#vertical_group_by` API is deprecated in favour of the more capable `ProjectV2View#vertical_group_by_fields` API. Check out the `ProjectV2View#vertical_group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC.") + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } + ): ProjectV2FieldConnection + @deprecated( + reason: "The `ProjectV2View#vertical_group_by` API is deprecated in favour of the more capable `ProjectV2View#vertical_group_by_fields` API. Check out the `ProjectV2View#vertical_group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC." + ) "The view's vertical-group-by field." verticalGroupByFields( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the project v2 fields returned from the connection." - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConfigurationConnection "The view's visible fields." visibleFields( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the project v2 fields returned from the connection." - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} - ): ProjectV2FieldConnection @deprecated(reason: "The `ProjectV2View#visibleFields` API is deprecated in favour of the more capable `ProjectV2View#fields` API. Check out the `ProjectV2View#fields` API as an example for the more capable alternative. Removal on 2023-01-01 UTC.") + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } + ): ProjectV2FieldConnection + @deprecated( + reason: "The `ProjectV2View#visibleFields` API is deprecated in favour of the more capable `ProjectV2View#fields` API. Check out the `ProjectV2View#fields` API as an example for the more capable alternative. Removal on 2023-01-01 UTC." + ) } "The connection type for ProjectV2View." type ProjectV2ViewConnection { @@ -10912,11 +10894,11 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "A list of Users assigned to this object." assignees( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -10953,39 +10935,39 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "List of issues that were may be closed by this pull request" closingIssuesReferences( "Return only manually linked Issues" - userLinkedOnly: Boolean = false, + userLinkedOnly: Boolean = false "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for issues returned from the connection" orderBy: IssueOrder ): IssueConnection "A list of comments associated with the pull request." comments( "Ordering options for issue comments returned from the connection." - orderBy: IssueCommentOrder, + orderBy: IssueCommentOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueCommentConnection! "A list of commits present in this pull request's head branch not present in the base branch." commits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestCommitConnection! @@ -11002,11 +10984,11 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "Lists the files changed within this pull request." files( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestChangedFileConnection @@ -11037,13 +11019,13 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "A list of labels associated with the object." labels( "Ordering options for labels returned from the connection." - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}, + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): LabelConnection @@ -11052,24 +11034,24 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "A list of latest reviews per user associated with the pull request." latestOpinionatedReviews( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Only return reviews from user who have write access to the repository" writersOnly: Boolean = false ): PullRequestReviewConnection "A list of latest reviews per user associated with the pull request that are not also pending review." latestReviews( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestReviewConnection @@ -11096,11 +11078,11 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "A list of Users that are participating in the Pull Request conversation." participants( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -11111,46 +11093,43 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "List of project cards associated with this pull request." projectCards( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "A list of archived states to filter the cards by" archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] ): ProjectCardConnection! "List of project items associated with this pull request." projectItems( "Include archived items." - includeArchived: Boolean = true, + includeArchived: Boolean = true "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2ItemConnection! "Find a project by number." - projectV2( - "The project number." - number: Int! - ): ProjectV2 + projectV2("The project number." number: Int!): ProjectV2 "A list of projects under the owner." projectsV2( "A project to search for under the the owner." - query: String, + query: String "How to order the returned projects." - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}, + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! @@ -11161,15 +11140,15 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! @@ -11186,37 +11165,37 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "A list of review requests associated with the pull request." reviewRequests( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ReviewRequestConnection "The list of all review threads for this pull request." reviewThreads( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestReviewThreadConnection! "A list of reviews associated with the pull request." reviews( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "A list of states to filter the reviews." - states: [PullRequestReviewState!], + states: [PullRequestReviewState!] "Filter by author of the review." author: String ): PullRequestReviewConnection @@ -11227,30 +11206,33 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "A list of events, comments, commits, etc. associated with the pull request." timeline( "Allows filtering timeline events by a `since` timestamp." - since: DateTime, + since: DateTime "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int - ): PullRequestTimelineConnection! @deprecated(reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.") + ): PullRequestTimelineConnection! + @deprecated( + reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC." + ) "A list of events, comments, commits, etc. associated with the pull request." timelineItems( "Filter timeline items by a `since` timestamp." - since: DateTime, + since: DateTime "Skips the first _n_ elements in the list." - skip: Int, + skip: Int "Filter timeline items by type." - itemTypes: [PullRequestTimelineItemsItemType!], + itemTypes: [PullRequestTimelineItemsItemType!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestTimelineItemsConnection! @@ -11267,11 +11249,11 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -11371,11 +11353,11 @@ type PullRequestCommitCommentThread implements RepositoryNode & Node { "The comments that exist in this thread." comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): CommitCommentConnection! @@ -11425,15 +11407,15 @@ type PullRequestContributionsByRepository { "The pull request contributions." contributions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for contributions returned from the connection." - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedPullRequestContributionConnection! "The repository in which the pull requests were opened." repository: Repository! @@ -11475,11 +11457,11 @@ type PullRequestReview implements Node & Comment & Deletable & Updatable & Updat "A list of review comments for the current pull request review." comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestReviewCommentConnection! @@ -11501,11 +11483,11 @@ type PullRequestReview implements Node & Comment & Deletable & Updatable & Updat "A list of teams that this review was made on behalf of." onBehalfOf( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): TeamConnection! @@ -11518,15 +11500,15 @@ type PullRequestReview implements Node & Comment & Deletable & Updatable & Updat "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! @@ -11545,11 +11527,11 @@ type PullRequestReview implements Node & Comment & Deletable & Updatable & Updat "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -11606,7 +11588,10 @@ type PullRequestReviewComment implements Node & Comment & Deletable & Minimizabl "The end line number on the file to which the comment applied when it was first created" originalLine: Int "The original line index in the diff to which the comment applies." - originalPosition: Int! @deprecated(reason: "We are phasing out diff-relative positioning for PR comments Removal on 2023-10-01 UTC.") + originalPosition: Int! + @deprecated( + reason: "We are phasing out diff-relative positioning for PR comments Removal on 2023-10-01 UTC." + ) "The start line number on the file to which the comment applied when it was first created" originalStartLine: Int "Identifies when the comment body is outdated" @@ -11614,7 +11599,10 @@ type PullRequestReviewComment implements Node & Comment & Deletable & Minimizabl "The path to which the comment applies." path: String! "The line index in the diff to which the comment applies." - position: Int @deprecated(reason: "We are phasing out diff-relative positioning for PR comments Use the `line` and `startLine` fields instead, which are file line numbers instead of diff line numbers Removal on 2023-10-01 UTC.") + position: Int + @deprecated( + reason: "We are phasing out diff-relative positioning for PR comments Use the `line` and `startLine` fields instead, which are file line numbers instead of diff line numbers Removal on 2023-10-01 UTC." + ) "Identifies when the comment was published at." publishedAt: DateTime "The pull request associated with this review comment." @@ -11626,15 +11614,15 @@ type PullRequestReviewComment implements Node & Comment & Deletable & Minimizabl "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! @@ -11657,11 +11645,11 @@ type PullRequestReviewComment implements Node & Comment & Deletable & Minimizabl "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -11712,15 +11700,15 @@ type PullRequestReviewContributionsByRepository { "The pull request review contributions." contributions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for contributions returned from the connection." - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedPullRequestReviewContributionConnection! "The repository in which the pull request reviews were made." repository: Repository! @@ -11737,13 +11725,13 @@ type PullRequestReviewThread implements Node { "A list of pull request comments associated with the thread." comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Skips the first _n_ elements in the list." skip: Int ): PullRequestReviewCommentConnection! @@ -11824,13 +11812,13 @@ type PullRequestThread implements Node { "A list of pull request comments associated with the thread." comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Skips the first _n_ elements in the list." skip: Int ): PullRequestReviewCommentConnection! @@ -11951,25 +11939,22 @@ type PushAllowanceEdge { "The query root of GitHub's GraphQL interface." type Query { "Look up a code of conduct by its key" - codeOfConduct( - "The code of conduct's key" - key: String! - ): CodeOfConduct + codeOfConduct("The code of conduct's key" key: String!): CodeOfConduct "Look up a code of conduct by its key" codesOfConduct: [CodeOfConduct] "Look up an enterprise by URL slug." enterprise( "The enterprise URL slug." - slug: String!, + slug: String! "The enterprise invitation token." invitationToken: String ): Enterprise "Look up a pending enterprise administrator invitation by invitee, enterprise and role." enterpriseAdministratorInvitation( "The login of the user invited to join the business." - userLogin: String!, + userLogin: String! "The slug of the enterprise the user was invited to join." - enterpriseSlug: String!, + enterpriseSlug: String! "The role for the business member invitation." role: EnterpriseAdministratorRole! ): EnterpriseAdministratorInvitation @@ -11979,25 +11964,22 @@ type Query { invitationToken: String! ): EnterpriseAdministratorInvitation "Look up an open source license by its key" - license( - "The license's downcased SPDX ID" - key: String! - ): License + license("The license's downcased SPDX ID" key: String!): License "Return a list of known open source licenses" licenses: [License]! "Get alphabetically sorted list of Marketplace categories" marketplaceCategories( "Return only the specified categories." - includeCategories: [String!], + includeCategories: [String!] "Exclude categories with no listings." - excludeEmpty: Boolean, + excludeEmpty: Boolean "Returns top level categories only, excluding any subcategories." excludeSubcategories: Boolean ): [MarketplaceCategory!]! "Look up a Marketplace category by its slug." marketplaceCategory( "The URL slug of the category." - slug: String!, + slug: String! "Also check topic aliases for the category slug" useTopicAliases: Boolean ): MarketplaceCategory @@ -12009,55 +11991,46 @@ type Query { "Look up Marketplace listings" marketplaceListings( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Select only listings with the given category." - categorySlug: String, + categorySlug: String "Also check topic aliases for the category slug" - useTopicAliases: Boolean, + useTopicAliases: Boolean """ Select listings to which user has admin access. If omitted, listings visible to the viewer are returned. """ - viewerCanAdmin: Boolean, + viewerCanAdmin: Boolean "Select listings that can be administered by the specified user." - adminId: ID, + adminId: ID "Select listings for products owned by the specified organization." - organizationId: ID, + organizationId: ID """ Select listings visible to the viewer even if they are not approved. If omitted or false, only approved listings will be returned. """ - allStates: Boolean, + allStates: Boolean "Select the listings with these slugs, if they are visible to the viewer." - slugs: [String], + slugs: [String] "Select only listings where the primary category matches the given category slug." - primaryCategoryOnly: Boolean = false, + primaryCategoryOnly: Boolean = false "Select only listings that offer a free trial." withFreeTrialsOnly: Boolean = false ): MarketplaceListingConnection! "Return information about the GitHub instance" meta: GitHubMetadata! "Fetches an object given its ID." - node( - "ID of the object." - id: ID! - ): Node + node("ID of the object." id: ID!): Node "Lookup nodes by a list of IDs." - nodes( - "The list of node IDs." - ids: [ID!]! - ): [Node]! + nodes("The list of node IDs." ids: [ID!]!): [Node]! "Lookup a organization by login." - organization( - "The organization's login." - login: String! - ): Organization + organization("The organization's login." login: String!): Organization "The client's rate limit information." rateLimit( "If true, calculate the cost for the query without evaluating it" @@ -12068,9 +12041,9 @@ type Query { "Lookup a given repository by the owner and repository name." repository( "The login field of a user or organization" - owner: String!, + owner: String! "The name of the repository" - name: String!, + name: String! "Follow repository renames. If disabled, a repository referenced by its old name will return an error." followRenames: Boolean = true ): Repository @@ -12080,43 +12053,40 @@ type Query { login: String! ): RepositoryOwner "Lookup resource by a URL." - resource( - "The URL." - url: URI! - ): UniformResourceLocatable + resource("The URL." url: URI!): UniformResourceLocatable "Perform a search across resources, returning a maximum of 1,000 results." search( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The search string to look for." - query: String!, + query: String! "The types of search items to search within." type: SearchType! ): SearchResultItemConnection! "GitHub Security Advisories" securityAdvisories( "Ordering options for the returned topics." - orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC}, + orderBy: SecurityAdvisoryOrder = { field: UPDATED_AT, direction: DESC } "Filter advisories by identifier, e.g. GHSA or CVE." - identifier: SecurityAdvisoryIdentifierFilter, + identifier: SecurityAdvisoryIdentifierFilter "Filter advisories to those published since a time in the past." - publishedSince: DateTime, + publishedSince: DateTime "Filter advisories to those updated since a time in the past." - updatedSince: DateTime, + updatedSince: DateTime "A list of classifications to filter advisories by." - classifications: [SecurityAdvisoryClassification!], + classifications: [SecurityAdvisoryClassification!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): SecurityAdvisoryConnection! @@ -12128,61 +12098,55 @@ type Query { "Software Vulnerabilities documented by GitHub Security Advisories" securityVulnerabilities( "Ordering options for the returned topics." - orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC}, + orderBy: SecurityVulnerabilityOrder = { field: UPDATED_AT, direction: DESC } "An ecosystem to filter vulnerabilities by." - ecosystem: SecurityAdvisoryEcosystem, + ecosystem: SecurityAdvisoryEcosystem "A package name to filter vulnerabilities by." - package: String, + package: String "A list of severities to filter vulnerabilities by." - severities: [SecurityAdvisorySeverity!], + severities: [SecurityAdvisorySeverity!] "A list of advisory classifications to filter vulnerabilities by." - classifications: [SecurityAdvisoryClassification!], + classifications: [SecurityAdvisoryClassification!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): SecurityVulnerabilityConnection! "Users and organizations who can be sponsored via GitHub Sponsors." sponsorables( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for users and organizations returned from the connection." - orderBy: SponsorableOrder = {field: LOGIN, direction: ASC}, + orderBy: SponsorableOrder = { field: LOGIN, direction: ASC } "Whether only sponsorables who own the viewer's dependencies will be returned. Must be authenticated to use. Can check an organization instead for their dependencies owned by sponsorables by passing orgLoginForDependencies." - onlyDependencies: Boolean = false, + onlyDependencies: Boolean = false "Optional organization username for whose dependencies should be checked. Used when onlyDependencies = true. Omit to check your own dependencies. If you are not an administrator of the organization, only dependencies from its public repositories will be considered." - orgLoginForDependencies: String, + orgLoginForDependencies: String """ Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true. - + **Upcoming Change on 2022-07-01 UTC** **Description:** `dependencyEcosystem` will be removed. Use the ecosystem argument instead. **Reason:** The type is switching from SecurityAdvisoryEcosystem to DependencyGraphEcosystem. """ - dependencyEcosystem: SecurityAdvisoryEcosystem, + dependencyEcosystem: SecurityAdvisoryEcosystem "Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true." ecosystem: DependencyGraphEcosystem ): SponsorableItemConnection! "Look up a topic by name." - topic( - "The topic's name." - name: String! - ): Topic + topic("The topic's name." name: String!): Topic "Lookup a user by login." - user( - "The user's login." - login: String! - ): User + user("The user's login." login: String!): User "The currently authenticated user." viewer: User! } @@ -12263,11 +12227,11 @@ type ReactionGroup { "Reactors to the reaction subject with the emotion represented by this reaction group." reactors( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ReactorConnection! @@ -12276,14 +12240,17 @@ type ReactionGroup { "Users who have reacted to the reaction subject with the emotion represented by this reaction group" users( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int - ): ReactingUserConnection! @deprecated(reason: "Reactors can now be mannequins, bots, and organizations. Use the `reactors` field instead. Removal on 2021-10-01 UTC.") + ): ReactingUserConnection! + @deprecated( + reason: "Reactors can now be mannequins, bots, and organizations. Use the `reactors` field instead. Removal on 2021-10-01 UTC." + ) "Whether or not the authenticated user has left a reaction on the subject." viewerHasReacted: Boolean! } @@ -12326,31 +12293,28 @@ type Ref implements Node { "A list of pull requests with this ref as the head ref." associatedPullRequests( "A list of states to filter the pull requests by." - states: [PullRequestState!], + states: [PullRequestState!] "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "The head ref name to filter the pull requests by." - headRefName: String, + headRefName: String "The base ref name to filter the pull requests by." - baseRefName: String, + baseRefName: String "Ordering options for pull requests returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestConnection! "Branch protection rules for this ref" branchProtectionRule: BranchProtectionRule "Compares the current ref as a base ref to another head ref, if the comparison can be made." - compare( - "The head ref to compare against." - headRef: String! - ): Comparison + compare("The head ref to compare against." headRef: String!): Comparison id: ID! "The ref name." name: String! @@ -12476,11 +12440,11 @@ type Release implements Node & UniformResourceLocatable & Reactable { "A list of users mentioned in the release description" mentions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection @@ -12493,28 +12457,28 @@ type Release implements Node & UniformResourceLocatable & Reactable { "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! "List of releases assets which are dependent on this release." releaseAssets( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "A list of names to filter the assets by." name: String ): ReleaseAssetConnection! @@ -12523,10 +12487,7 @@ type Release implements Node & UniformResourceLocatable & Reactable { "The HTTP path for this issue" resourcePath: URI! "A description of the release, rendered to HTML without any links in it." - shortDescriptionHTML( - "How many characters to return." - limit: Int = 200 - ): HTML + shortDescriptionHTML("How many characters to return." limit: Int = 200): HTML "The Git tag the release points to" tag: Ref "The tag commit for this release." @@ -13681,13 +13642,13 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of users that can be assigned to issues in this repository." assignableUsers( "Filters users with query on user name and login." - query: String, + query: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -13696,11 +13657,11 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of branch protection rules for this repository." branchProtectionRules( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): BranchProtectionRuleConnection! @@ -13714,28 +13675,28 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of collaborators associated with the repository." collaborators( "Collaborators affiliation level with a repository." - affiliation: CollaboratorAffiliation, + affiliation: CollaboratorAffiliation "The login of one specific collaborator." - login: String, + login: String "Filters users with query on user name and login" - query: String, + query: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RepositoryCollaboratorConnection "A list of commit comments associated with the repository." commitComments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): CommitCommentConnection! @@ -13752,26 +13713,26 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of deploy keys that are on this repository." deployKeys( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeployKeyConnection! "Deployments associated with the repository" deployments( "Environments to list deployments for" - environments: [String!], + environments: [String!] "Ordering options for deployments returned from the connection." - orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC}, + orderBy: DeploymentOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeploymentConnection! @@ -13787,13 +13748,13 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of discussion categories that are available in the repository." discussionCategories( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter by categories that are assignable by the viewer." filterByAssignable: Boolean = false ): DiscussionCategoryConnection! @@ -13805,19 +13766,19 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of discussions that have been opened in the repository." discussions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Only include discussions that belong to the category with this ID." - categoryId: ID = null, + categoryId: ID = null "A list of states to filter the discussions by." - states: [DiscussionState!] = [], + states: [DiscussionState!] = [] "Ordering options for discussions returned from the connection." - orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC} + orderBy: DiscussionOrder = { field: UPDATED_AT, direction: DESC } ): DiscussionConnection! "The number of kilobytes this repository occupies on disk." diskUsage: Int @@ -13829,15 +13790,15 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of environments that are in this repository." environments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the environments" - orderBy: Environments = {field: NAME, direction: ASC} + orderBy: Environments = { field: NAME, direction: ASC } ): EnvironmentConnection! "Returns how many forks there are of this repository in the whole network." forkCount: Int! @@ -13846,21 +13807,21 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of direct forked repositories." forks( "If non-null, filters repositories according to privacy" - privacy: RepositoryPrivacy, + privacy: RepositoryPrivacy "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder, + orderBy: RepositoryOrder "Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns." - affiliations: [RepositoryAffiliation], + affiliations: [RepositoryAffiliation] "Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns." - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR], + ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] "If non-null, filters repositories according to whether they have been locked" - isLocked: Boolean, + isLocked: Boolean "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RepositoryConnection! @@ -13906,10 +13867,7 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "Is this repository a user configuration repository?" isUserConfigurationRepository: Boolean! "Returns a single issue from the current repository by number." - issue( - "The number for the issue to be returned." - number: Int! - ): Issue + issue("The number for the issue to be returned." number: Int!): Issue "Returns a single issue-like object from the current repository by number." issueOrPullRequest( "The number for the issue to be returned." @@ -13920,52 +13878,49 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of issues that have been opened in the repository." issues( "Ordering options for issues returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "A list of states to filter the issues by." - states: [IssueState!], + states: [IssueState!] "Filtering options for issues returned from the connection." - filterBy: IssueFilters, + filterBy: IssueFilters "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueConnection! "Returns a single label by name" - label( - "Label name" - name: String! - ): Label + label("Label name" name: String!): Label "A list of labels associated with the repository." labels( "Ordering options for labels returned from the connection." - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}, + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If provided, searches labels by name and description." query: String ): LabelConnection "A list containing a breakdown of the language composition of the repository." languages( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Order for connection" orderBy: LanguageOrder ): LanguageConnection @@ -13978,13 +13933,13 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of Users that can be mentioned in the context of the repository." mentionableUsers( "Filters users with query on user name and login" - query: String, + query: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -14007,17 +13962,17 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of milestones associated with the repository." milestones( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter by the state of the milestones." - states: [MilestoneState!], + states: [MilestoneState!] "Ordering options for milestones." - orderBy: MilestoneOrder, + orderBy: MilestoneOrder "Filters milestones with a query on the title" query: String ): MilestoneConnection @@ -14030,7 +13985,7 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A Git object in the repository" object( "The Git object ID" - oid: GitObjectID, + oid: GitObjectID "A Git revision expression suitable for rev-parse" expression: String ): GitObject @@ -14041,72 +13996,66 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of packages under the owner." packages( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Find packages by their names." - names: [String], + names: [String] "Find packages in a repository by ID." - repositoryId: ID, + repositoryId: ID "Filter registry package by type." - packageType: PackageType, + packageType: PackageType "Ordering of the returned packages." - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageOrder = { field: CREATED_AT, direction: DESC } ): PackageConnection! "The repository parent, if this is a fork." parent: Repository "A list of discussions that have been pinned in this repository." pinnedDiscussions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnedDiscussionConnection! "A list of pinned issues for this repository." pinnedIssues( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnedIssueConnection "The primary language of the repository's code." primaryLanguage: Language "Find project by number." - project( - "The project number to find." - number: Int! - ): Project + project("The project number to find." number: Int!): Project "Finds and returns the Project according to the provided Project number." - projectV2( - "The Project number." - number: Int! - ): ProjectV2 + projectV2("The Project number." number: Int!): ProjectV2 "A list of projects under the owner." projects( "Ordering options for projects returned from the connection" - orderBy: ProjectOrder, + orderBy: ProjectOrder "Query to search projects by, currently only searching by name." - search: String, + search: String "A list of states to filter the projects by." - states: [ProjectState!], + states: [ProjectState!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectConnection! @@ -14117,17 +14066,17 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "List of projects linked to this repository." projectsV2( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "A project to search for linked to the repo." - query: String, + query: String "How to order the returned projects." - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } ): ProjectV2Connection! "Returns a single pull request from the current repository by number." pullRequest( @@ -14139,21 +14088,21 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of pull requests that have been opened in the repository." pullRequests( "A list of states to filter the pull requests by." - states: [PullRequestState!], + states: [PullRequestState!] "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "The head ref name to filter the pull requests by." - headRefName: String, + headRefName: String "The base ref name to filter the pull requests by." - baseRefName: String, + baseRefName: String "Ordering options for pull requests returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestConnection! @@ -14164,11 +14113,11 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "Recent projects that this user has modified in the context of the owner." recentProjects( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! @@ -14180,19 +14129,19 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "Fetch a list of refs from the repository" refs( "Filters refs with query on name" - query: String, + query: String "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "A ref name prefix like `refs/heads/`, `refs/tags/`, etc." - refPrefix: String!, + refPrefix: String! "DEPRECATED: use orderBy. The ordering direction." - direction: OrderDirection, + direction: OrderDirection "Ordering options for refs returned from the connection." orderBy: RefOrder ): RefConnection @@ -14204,24 +14153,24 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "List of releases which are dependent on this repository." releases( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Order for connection" orderBy: ReleaseOrder ): ReleaseConnection! "A list of applied repository-topic associations for this repository." repositoryTopics( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RepositoryTopicConnection! @@ -14230,30 +14179,27 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "Returns a single ruleset from the current repository by ID." ruleset( "Include rulesets configured at higher levels that apply to this repository" - includeParents: Boolean = true, + includeParents: Boolean = true "The ID of the ruleset to be returned." databaseId: Int! ): RepositoryRuleset "A list of rulesets for this repository." rulesets( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Return rulesets configured at higher levels that apply to this repository" includeParents: Boolean = true ): RepositoryRulesetConnection "The security policy URL." securityPolicyUrl: URI "A description of the repository, rendered to HTML without any links in it." - shortDescriptionHTML( - "How many characters to return." - limit: Int = 200 - ): HTML! + shortDescriptionHTML("How many characters to return." limit: Int = 200): HTML! "Whether or not squash-merging is enabled on this repository." squashMergeAllowed: Boolean! "How the default commit message will be generated when squash merging a pull request." @@ -14261,7 +14207,10 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "How the default commit title will be generated when squash merging a pull request." squashMergeCommitTitle: SquashMergeCommitTitle! "Whether a squash merge commit can use the pull request title as default." - squashPrTitleUsedAsDefault: Boolean! @deprecated(reason: "`squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC.") + squashPrTitleUsedAsDefault: Boolean! + @deprecated( + reason: "`squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC." + ) "The SSH URL to clone this repository" sshUrl: GitSSHRemote! """ @@ -14271,24 +14220,24 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of users who have starred this starrable." stargazers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Order for connection" orderBy: StarOrder ): StargazerConnection! "Returns a list of all submodules in this repository parsed from the .gitmodules file as of the default branch's HEAD commit." submodules( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): SubmoduleConnection! @@ -14332,26 +14281,26 @@ type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner "A list of vulnerability alerts that are on this repository." vulnerabilityAlerts( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter by the state of the alert" - states: [RepositoryVulnerabilityAlertState!], + states: [RepositoryVulnerabilityAlertState!] "Filter by the scope of the alert's dependency" dependencyScopes: [RepositoryVulnerabilityAlertDependencyScope!] ): RepositoryVulnerabilityAlertConnection "A list of users watching the repository." watchers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -14569,11 +14518,11 @@ type RepositoryRuleset implements Node { "The actors that can bypass this ruleset" bypassActors( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RepositoryRulesetBypassActorConnection @@ -14591,13 +14540,13 @@ type RepositoryRuleset implements Node { "List of rules." rules( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The type of rule." type: RepositoryRuleType ): RepositoryRuleConnection @@ -15038,7 +14987,6 @@ type ReviewRequestedEvent implements Node { """ A hovercard context with a message describing the current code review state of the pull request. - """ type ReviewStatusHovercardContext implements HovercardContext { "A string describing this context" @@ -15055,11 +15003,11 @@ type RevokeEnterpriseOrganizationsMigratorRolePayload { "The organizations that had the migrator role revoked for the given user." organizations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): OrganizationConnection @@ -15142,11 +15090,11 @@ type SecurityAdvisory implements Node { "CWEs associated with this Advisory" cwes( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): CWEConnection! @@ -15178,21 +15126,21 @@ type SecurityAdvisory implements Node { "Vulnerabilities associated with this Advisory" vulnerabilities( "Ordering options for the returned topics." - orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC}, + orderBy: SecurityVulnerabilityOrder = { field: UPDATED_AT, direction: DESC } "An ecosystem to filter vulnerabilities by." - ecosystem: SecurityAdvisoryEcosystem, + ecosystem: SecurityAdvisoryEcosystem "A package name to filter vulnerabilities by." - package: String, + package: String "A list of severities to filter vulnerabilities by." - severities: [SecurityAdvisorySeverity!], + severities: [SecurityAdvisorySeverity!] "A list of advisory classifications to filter vulnerabilities by." - classifications: [SecurityAdvisoryClassification!], + classifications: [SecurityAdvisoryClassification!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): SecurityVulnerabilityConnection! @@ -15460,7 +15408,10 @@ type SponsorsListing implements Node { "The records featured on the GitHub Sponsors profile." featuredItems( "The types of featured items to return." - featureableTypes: [SponsorsListingFeaturedItemFeatureableType!] = [REPOSITORY, USER] + featureableTypes: [SponsorsListingFeaturedItemFeatureableType!] = [ + REPOSITORY + USER + ] ): [SponsorsListingFeaturedItem!]! "The fiscal host used for payments, if any. Will only return a value when queried by the maintainer themselves, or by an admin of the sponsorable organization." fiscalHost: Organization @@ -15488,15 +15439,18 @@ type SponsorsListing implements Node { "The tiers for this GitHub Sponsors profile." tiers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for Sponsors tiers returned from the connection." - orderBy: SponsorsTierOrder = {field: MONTHLY_PRICE_IN_CENTS, direction: ASC}, + orderBy: SponsorsTierOrder = { + field: MONTHLY_PRICE_IN_CENTS + direction: ASC + } "Whether to include tiers that aren't published. Only admins of the Sponsors listing can see draft tiers. Only admins of the Sponsors listing and viewers who are currently sponsoring on a retired tier can see those retired tiers. Defaults to including only published tiers, which are visible to anyone who can see the GitHub Sponsors profile." includeUnpublished: Boolean = false ): SponsorsTierConnection @@ -15558,15 +15512,15 @@ type SponsorsTierAdminInfo { "The sponsorships using this tier." sponsorships( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Whether or not to return private sponsorships using this tier. Defaults to only returning public sponsorships on this tier." - includePrivate: Boolean = false, + includePrivate: Boolean = false "Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer." orderBy: SponsorshipOrder ): SponsorshipConnection! @@ -15601,11 +15555,17 @@ type Sponsorship implements Node { "Whether the sponsor has chosen to receive sponsorship update emails sent from the sponsorable. Only returns a non-null value when the viewer has permission to know this." isSponsorOptedIntoEmail: Boolean "The entity that is being sponsored" - maintainer: User! @deprecated(reason: "`Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC.") + maintainer: User! + @deprecated( + reason: "`Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC." + ) "The privacy level for this sponsorship." privacyLevel: SponsorshipPrivacy! "The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user." - sponsor: User @deprecated(reason: "`Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC.") + sponsor: User + @deprecated( + reason: "`Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC." + ) "The user or organization that is sponsoring, if you have permission to view them." sponsorEntity: Sponsor "The entity that is being sponsored" @@ -15751,21 +15711,18 @@ type Status implements Node { "A list of status contexts and check runs for this commit." combinedContexts( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): StatusCheckRollupContextConnection! "The commit this status is attached to." commit: Commit "Looks up an individual status context by context name." - context( - "The context name." - name: String! - ): StatusContext + context("The context name." name: String!): StatusContext "The individual status contexts for this commit." contexts: [StatusContext!]! id: ID! @@ -15786,11 +15743,11 @@ type StatusCheckRollup implements Node { "A list of status contexts and check runs for this commit." contexts( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): StatusCheckRollupContextConnection! @@ -15827,10 +15784,7 @@ type StatusCheckRollupContextEdge { "Represents an individual commit status context" type StatusContext implements RequirableByPullRequest & Node { "The avatar of the OAuth application or the user that created the status" - avatarUrl( - "The size of the resulting square image." - size: Int = 40 - ): URI + avatarUrl("The size of the resulting square image." size: Int = 40): URI "This commit this status context is attached to." commit: Commit "The name of this status context." @@ -15845,7 +15799,7 @@ type StatusContext implements RequirableByPullRequest & Node { "Whether this is required to pass before merging for a specific pull request." isRequired( "The id of the pull request this is required for" - pullRequestId: ID, + pullRequestId: ID "The number of the pull request this is required for" pullRequestNumber: Int ): Boolean! @@ -15975,11 +15929,11 @@ type Team implements Node & Subscribable & MemberStatusable { "A list of teams that are ancestors of this team." ancestors( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): TeamConnection! @@ -15991,17 +15945,17 @@ type Team implements Node & Subscribable & MemberStatusable { "List of child teams belonging to this team" childTeams( "Order for connection" - orderBy: TeamOrder, + orderBy: TeamOrder "User logins to filter by" - userLogins: [String!], + userLogins: [String!] "Whether to list immediate child teams or all descendant child teams." - immediateOnly: Boolean = true, + immediateOnly: Boolean = true "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): TeamConnection! @@ -16021,15 +15975,15 @@ type Team implements Node & Subscribable & MemberStatusable { "A list of team discussions." discussions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If provided, filters discussions according to whether or not they are pinned." - isPinned: Boolean, + isPinned: Boolean "Order for connection" orderBy: TeamDiscussionOrder ): TeamDiscussionConnection! @@ -16045,43 +15999,43 @@ type Team implements Node & Subscribable & MemberStatusable { "A list of pending invitations for users to this team" invitations( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): OrganizationInvitationConnection "Get the status messages members of this entity have set that are either public or visible only to the organization." memberStatuses( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for user statuses returned from the connection." - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} + orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC } ): UserStatusConnection! "A list of users who are members of this team." members( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The search string to look for." - query: String, + query: String "Filter by membership type" - membership: TeamMembershipType = ALL, + membership: TeamMembershipType = ALL "Filter by team member role" - role: TeamMemberRole, + role: TeamMemberRole "Order for the connection." orderBy: TeamMemberOrder ): TeamMemberConnection! @@ -16104,39 +16058,36 @@ type Team implements Node & Subscribable & MemberStatusable { "The level of privacy the team has." privacy: TeamPrivacy! "Finds and returns the project according to the provided project number." - projectV2( - "The Project number." - number: Int! - ): ProjectV2 + projectV2("The Project number." number: Int!): ProjectV2 "List of projects this team has collaborator access to." projectsV2( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "How to order the returned projects." - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}, + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } "Filtering options for projects returned from this connection" - filterBy: ProjectV2Filters = {}, + filterBy: ProjectV2Filters = {} "The query to search projects by." query: String = "" ): ProjectV2Connection! "A list of repositories this team has access to." repositories( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The search string to look for. Repositories will be returned where the name contains your search string." - query: String, + query: String "Order for the connection." orderBy: TeamRepositoryOrder ): TeamRepositoryConnection! @@ -16347,7 +16298,10 @@ type TeamDiscussion implements Node & Comment & Deletable & Reactable & Subscrib "The actor who authored the comment." author: Actor "Author's association with the discussion's team." - authorAssociation: CommentAuthorAssociation! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + authorAssociation: CommentAuthorAssociation! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "The body as Markdown." body: String! "The body rendered to HTML." @@ -16355,26 +16309,38 @@ type TeamDiscussion implements Node & Comment & Deletable & Reactable & Subscrib "The body rendered to text." bodyText: String! "Identifies the discussion body hash." - bodyVersion: String! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + bodyVersion: String! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "A list of comments on this discussion." comments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Order for connection" - orderBy: TeamDiscussionCommentOrder, + orderBy: TeamDiscussionCommentOrder "When provided, filters the connection such that results begin with the comment with this number." fromComment: Int - ): TeamDiscussionCommentConnection! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + ): TeamDiscussionCommentConnection! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "The HTTP path for discussion comments" - commentsResourcePath: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + commentsResourcePath: URI! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "The HTTP URL for discussion comments" - commentsUrl: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + commentsUrl: URI! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "Identifies the date and time when the object was created." createdAt: DateTime! "Check if this comment was created via an email reply." @@ -16387,13 +16353,22 @@ type TeamDiscussion implements Node & Comment & Deletable & Reactable & Subscrib "Check if this comment was edited and includes an edit with the creation data" includesCreatedEdit: Boolean! "Whether or not the discussion is pinned." - isPinned: Boolean! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + isPinned: Boolean! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "Whether or not the discussion is only visible to team members and org admins." - isPrivate: Boolean! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + isPrivate: Boolean! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "The moment the editor made the last edit" lastEditedAt: DateTime "Identifies the discussion within its team." - number: Int! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + number: Int! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "Identifies when the comment was published at." publishedAt: DateTime "A list of reactions grouped by content left on the subject." @@ -16401,43 +16376,58 @@ type TeamDiscussion implements Node & Comment & Deletable & Reactable & Subscrib "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! "The HTTP path for this discussion" - resourcePath: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + resourcePath: URI! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "The team that defines the context of this discussion." - team: Team! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + team: Team! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "The title of the discussion" - title: String! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + title: String! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "Identifies the date and time when the object was last updated." updatedAt: DateTime! "The HTTP URL for this discussion" - url: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + url: URI! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection "Check if the current viewer can delete this object." viewerCanDelete: Boolean! "Whether or not the current viewer can pin this discussion." - viewerCanPin: Boolean! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + viewerCanPin: Boolean! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "Can user react to this subject" viewerCanReact: Boolean! "Check if the viewer is able to change their subscription status for the repository." @@ -16456,7 +16446,10 @@ type TeamDiscussionComment implements Node & Comment & Deletable & Reactable & U "The actor who authored the comment." author: Actor "Author's association with the comment's team." - authorAssociation: CommentAuthorAssociation! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + authorAssociation: CommentAuthorAssociation! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "The body as Markdown." body: String! "The body rendered to HTML." @@ -16464,7 +16457,10 @@ type TeamDiscussionComment implements Node & Comment & Deletable & Reactable & U "The body rendered to text." bodyText: String! "The current version of the body content." - bodyVersion: String! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + bodyVersion: String! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "Identifies the date and time when the object was created." createdAt: DateTime! "Check if this comment was created via an email reply." @@ -16472,7 +16468,10 @@ type TeamDiscussionComment implements Node & Comment & Deletable & Reactable & U "Identifies the primary key from the database." databaseId: Int "The discussion this comment is about." - discussion: TeamDiscussion! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + discussion: TeamDiscussion! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "The actor who edited the comment." editor: Actor id: ID! @@ -16481,7 +16480,10 @@ type TeamDiscussionComment implements Node & Comment & Deletable & Reactable & U "The moment the editor made the last edit" lastEditedAt: DateTime "Identifies the comment number." - number: Int! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + number: Int! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "Identifies when the comment was published at." publishedAt: DateTime "A list of reactions grouped by content left on the subject." @@ -16489,32 +16491,38 @@ type TeamDiscussionComment implements Node & Comment & Deletable & Reactable & U "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! "The HTTP path for this comment" - resourcePath: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + resourcePath: URI! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "Identifies the date and time when the object was last updated." updatedAt: DateTime! "The HTTP URL for this comment" - url: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.") + url: URI! + @deprecated( + reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." + ) "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -16745,30 +16753,27 @@ type Topic implements Node & Starrable { A list of related topics, including aliases of this topic, sorted with the most relevant first. Returns up to 10 Topics. """ - relatedTopics( - "How many topics to return." - first: Int = 3 - ): [Topic!]! + relatedTopics("How many topics to return." first: Int = 3): [Topic!]! "A list of repositories." repositories( "If non-null, filters repositories according to privacy" - privacy: RepositoryPrivacy, + privacy: RepositoryPrivacy "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder, + orderBy: RepositoryOrder "Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns." - affiliations: [RepositoryAffiliation], + affiliations: [RepositoryAffiliation] "Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns." - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR], + ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] "If non-null, filters repositories according to whether they have been locked" - isLocked: Boolean, + isLocked: Boolean "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If true, only repositories whose owner can be sponsored via GitHub Sponsors will be returned." sponsorableOnly: Boolean = false ): RepositoryConnection! @@ -16779,13 +16784,13 @@ type Topic implements Node & Starrable { "A list of users who have starred this starrable." stargazers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Order for connection" orderBy: StarOrder ): StargazerConnection! @@ -16893,7 +16898,10 @@ type UnassignedEvent implements Node { createdAt: DateTime! id: ID! "Identifies the subject (user) who was unassigned." - user: User @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.") + user: User + @deprecated( + reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC." + ) } "Autogenerated return type of UnfollowOrganization" type UnfollowOrganizationPayload { @@ -17347,11 +17355,11 @@ type UpdateProjectV2CollaboratorsPayload { "The collaborators granted a role" collaborators( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2ActorConnection @@ -17377,11 +17385,11 @@ type UpdateProjectV2ItemPositionPayload { "The items in the new order" items( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2ItemConnection @@ -17507,10 +17515,7 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner type: PinnableItemType ): Boolean! "A URL pointing to the user's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! "The user's public profile bio." bio: String "The user's public profile bio as HTML." @@ -17523,11 +17528,11 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "A list of commit comments made by this user." commitComments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): CommitCommentConnection! @@ -17538,9 +17543,9 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "The collection of contributions this user has made to different repositories." contributionsCollection( "The ID of the organization used to filter contributions." - organizationID: ID, + organizationID: ID "Only contributions made at this time or later will be counted. If omitted, defaults to a year ago." - from: DateTime, + from: DateTime "Only contributions made before and up to (including) this time will be counted. If omitted, defaults to the current time or one year from the provided from argument." to: DateTime ): ContributionsCollection! @@ -17555,53 +17560,50 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "A list of users the given user is followed by." followers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): FollowerConnection! "A list of users the given user is following." following( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): FollowingConnection! "Find gist by repo name." - gist( - "The gist name to find." - name: String! - ): Gist + gist("The gist name to find." name: String!): Gist "A list of gist comments made by this user." gistComments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): GistCommentConnection! "A list of the Gists the user has created." gists( "Filters Gists according to privacy." - privacy: GistPrivacy, + privacy: GistPrivacy "Ordering options for gists returned from the connection" - orderBy: GistOrder, + orderBy: GistOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): GistConnection! @@ -17632,10 +17634,7 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "Whether or not this user is a site administrator." isSiteAdmin: Boolean! "Whether the given account is sponsoring this user/organization." - isSponsoredBy( - "The target account's login." - accountLogin: String! - ): Boolean! + isSponsoredBy("The target account's login." accountLogin: String!): Boolean! "True if the viewer is sponsored by this user/organization." isSponsoringViewer: Boolean! "Whether or not this user is the viewing user." @@ -17643,32 +17642,32 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "A list of issue comments made by this user." issueComments( "Ordering options for issue comments returned from the connection." - orderBy: IssueCommentOrder, + orderBy: IssueCommentOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueCommentConnection! "A list of issues associated with this user." issues( "Ordering options for issues returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "A list of states to filter the issues by." - states: [IssueState!], + states: [IssueState!] "Filtering options for issues returned from the connection." - filterBy: IssueFilters, + filterBy: IssueFilters "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): IssueConnection! @@ -17695,87 +17694,81 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "A list of organizations the user belongs to." organizations( "Ordering options for the User's organizations." - orderBy: OrganizationOrder = null, + orderBy: OrganizationOrder = null "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): OrganizationConnection! "A list of packages under the owner." packages( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Find packages by their names." - names: [String], + names: [String] "Find packages in a repository by ID." - repositoryId: ID, + repositoryId: ID "Filter registry package by type." - packageType: PackageType, + packageType: PackageType "Ordering of the returned packages." - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageOrder = { field: CREATED_AT, direction: DESC } ): PackageConnection! "A list of repositories and gists this profile owner can pin to their profile." pinnableItems( "Filter the types of pinnable items that are returned." - types: [PinnableItemType!], + types: [PinnableItemType!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnableItemConnection! "A list of repositories and gists this profile owner has pinned to their profile" pinnedItems( "Filter the types of pinned items that are returned." - types: [PinnableItemType!], + types: [PinnableItemType!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnableItemConnection! "Returns how many more items this profile owner can pin to their profile." pinnedItemsRemaining: Int! "Find project by number." - project( - "The project number to find." - number: Int! - ): Project + project("The project number to find." number: Int!): Project "Find a project by number." - projectV2( - "The project number." - number: Int! - ): ProjectV2 + projectV2("The project number." number: Int!): ProjectV2 "A list of projects under the owner." projects( "Ordering options for projects returned from the connection" - orderBy: ProjectOrder, + orderBy: ProjectOrder "Query to search projects by, currently only searching by name." - search: String, + search: String "A list of states to filter the projects by." - states: [ProjectState!], + states: [ProjectState!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectConnection! @@ -17786,15 +17779,15 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "A list of projects under the owner." projectsV2( "A project to search for under the the owner." - query: String, + query: String "How to order the returned projects." - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}, + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! @@ -17803,130 +17796,130 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "A list of public keys associated with this user." publicKeys( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PublicKeyConnection! "A list of pull requests associated with this user." pullRequests( "A list of states to filter the pull requests by." - states: [PullRequestState!], + states: [PullRequestState!] "A list of label names to filter the pull requests by." - labels: [String!], + labels: [String!] "The head ref name to filter the pull requests by." - headRefName: String, + headRefName: String "The base ref name to filter the pull requests by." - baseRefName: String, + baseRefName: String "Ordering options for pull requests returned from the connection." - orderBy: IssueOrder, + orderBy: IssueOrder "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PullRequestConnection! "Recent projects that this user has modified in the context of the owner." recentProjects( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! "A list of repositories that the user owns." repositories( "If non-null, filters repositories according to privacy" - privacy: RepositoryPrivacy, + privacy: RepositoryPrivacy "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder, + orderBy: RepositoryOrder "Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns." - affiliations: [RepositoryAffiliation], + affiliations: [RepositoryAffiliation] "Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns." - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR], + ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] "If non-null, filters repositories according to whether they have been locked" - isLocked: Boolean, + isLocked: Boolean "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If non-null, filters repositories according to whether they are archived and not maintained" - isArchived: Boolean, + isArchived: Boolean "If non-null, filters repositories according to whether they are forks of another repository" isFork: Boolean ): RepositoryConnection! "A list of repositories that the user recently contributed to." repositoriesContributedTo( "If non-null, filters repositories according to privacy" - privacy: RepositoryPrivacy, + privacy: RepositoryPrivacy "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder, + orderBy: RepositoryOrder "If non-null, filters repositories according to whether they have been locked" - isLocked: Boolean, + isLocked: Boolean "If true, include user repositories" - includeUserRepositories: Boolean, + includeUserRepositories: Boolean "If non-null, include only the specified types of contributions. The GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]" - contributionTypes: [RepositoryContributionType], + contributionTypes: [RepositoryContributionType] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RepositoryConnection! "Find Repository." repository( "Name of Repository to find." - name: String!, + name: String! "Follow repository renames. If disabled, a repository referenced by its old name will return an error." followRenames: Boolean = true ): Repository "Discussion comments this user has authored." repositoryDiscussionComments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter discussion comments to only those in a specific repository." - repositoryId: ID, + repositoryId: ID "Filter discussion comments to only those that were marked as the answer" onlyAnswers: Boolean = false ): DiscussionCommentConnection! "Discussions this user has started." repositoryDiscussions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for discussions returned from the connection." - orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC}, + orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC } "Filter discussions to only those in a specific repository." - repositoryId: ID, + repositoryId: ID "Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions." - answered: Boolean = null, + answered: Boolean = null "A list of states to filter the discussions by." states: [DiscussionState!] = [] ): DiscussionConnection! @@ -17935,77 +17928,77 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "Replies this user has saved" savedReplies( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "The field to order saved replies by." - orderBy: SavedReplyOrder = {field: UPDATED_AT, direction: DESC} + orderBy: SavedReplyOrder = { field: UPDATED_AT, direction: DESC } ): SavedReplyConnection "The user's social media accounts, ordered as they appear on the user's profile." socialAccounts( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): SocialAccountConnection! "List of users and organizations this entity is sponsoring." sponsoring( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the users and organizations returned from the connection." - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! "List of sponsors for this user or organization." sponsors( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see." - tierId: ID, + tierId: ID "Ordering options for sponsors returned from the connection." - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! "Events involving this sponsorable, such as new sponsorships." sponsorsActivities( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given." - period: SponsorsActivityPeriod = MONTH, + period: SponsorsActivityPeriod = MONTH "Filter activities to those that occurred on or after this time." - since: DateTime, + since: DateTime "Filter activities to those that occurred before this time." - until: DateTime, + until: DateTime "Ordering options for activity returned from the connection." - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC}, + orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC } "Filter activities to only the specified actions." - actions: [SponsorsActivityAction!] = [], + actions: [SponsorsActivityAction!] = [] "Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship." - includeAsSponsor: Boolean = false, + includeAsSponsor: Boolean = false "Whether or not to include private activities in the result set. Defaults to including public and private activities." includePrivate: Boolean = true ): SponsorsActivityConnection! @@ -18024,62 +18017,62 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "List of sponsorship updates sent from this sponsorable to sponsors." sponsorshipNewsletters( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for sponsorship updates returned from the connection." - orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} + orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC } ): SponsorshipNewsletterConnection! "The sponsorships where this user or organization is the maintainer receiving the funds." sponsorshipsAsMaintainer( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Whether or not to include private sponsorships in the result set" - includePrivate: Boolean = false, + includePrivate: Boolean = false "Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer." - orderBy: SponsorshipOrder, + orderBy: SponsorshipOrder "Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received." activeOnly: Boolean = true ): SponsorshipConnection! "The sponsorships where this user or organization is the funder." sponsorshipsAsSponsor( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer." - orderBy: SponsorshipOrder, + orderBy: SponsorshipOrder "Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins." - maintainerLogins: [String!], + maintainerLogins: [String!] "Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made." activeOnly: Boolean = true ): SponsorshipConnection! "Repositories the user has starred." starredRepositories( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filters starred repositories to only return repositories owned by the viewer." - ownedByViewer: Boolean, + ownedByViewer: Boolean "Order for connection" orderBy: StarOrder ): StarredRepositoryConnection! @@ -18090,24 +18083,24 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner """ topRepositories( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder!, + orderBy: RepositoryOrder! "How far back in time to fetch contributed repositories" since: DateTime ): RepositoryConnection! "The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has spent on GitHub to fund sponsorships. Only returns a value when viewed by the user themselves or by a user who can manage sponsorships for the requested organization." totalSponsorshipAmountAsSponsorInCents( "Filter payments to those that occurred on or after this time." - since: DateTime, + since: DateTime "Filter payments to those that occurred before this time." - until: DateTime, + until: DateTime "Filter payments to those made to the users or organizations with the specified usernames." sponsorableLogins: [String!] = [] ): Int @@ -18132,21 +18125,21 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner "A list of repositories the given user is watching." watching( "If non-null, filters repositories according to privacy" - privacy: RepositoryPrivacy, + privacy: RepositoryPrivacy "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder, + orderBy: RepositoryOrder "Affiliation options for repositories returned from the connection. If none specified, the results will include repositories for which the current viewer is an owner or collaborator, or member." - affiliations: [RepositoryAffiliation], + affiliations: [RepositoryAffiliation] "Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns." - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR], + ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] "If non-null, filters repositories according to whether they have been locked" - isLocked: Boolean, + isLocked: Boolean "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): RepositoryConnection! @@ -18348,15 +18341,15 @@ type Workflow implements Node & UniformResourceLocatable { "The runs of the workflow." runs( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the connection" - orderBy: WorkflowRunOrder = {field: CREATED_AT, direction: DESC} + orderBy: WorkflowRunOrder = { field: CREATED_AT, direction: DESC } ): WorkflowRunConnection! "The state of the workflow." state: WorkflowState! @@ -18376,11 +18369,11 @@ type WorkflowRun implements Node & UniformResourceLocatable { "The log of deployment reviews" deploymentReviews( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeploymentReviewConnection! @@ -18392,11 +18385,11 @@ type WorkflowRun implements Node & UniformResourceLocatable { "The pending deployment requests of all check runs in this workflow run" pendingDeploymentRequests( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): DeploymentRequestConnection! @@ -18452,10 +18445,7 @@ type WorkflowRunFile implements UniformResourceLocatable & Node { "Represents an object which can take actions on GitHub. Typically a User or Bot." interface Actor { "A URL pointing to the actor's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! "The username of the actor." login: String! "The HTTP path for this actor." @@ -18477,11 +18467,11 @@ interface Assignable { "A list of Users assigned to this object." assignees( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserConnection! @@ -18556,11 +18546,11 @@ interface Comment { "A list of edits to this content." userContentEdits( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): UserContentEditConnection @@ -18643,13 +18633,13 @@ interface Labelable { "A list of labels associated with the object." labels( "Ordering options for labels returned from the connection." - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}, + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): LabelConnection @@ -18666,15 +18656,15 @@ interface MemberStatusable { "Get the status messages members of this entity have set that are either public or visible only to the organization." memberStatuses( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for user statuses returned from the connection." - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} + orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC } ): UserStatusConnection! } "Represents a GitHub Enterprise Importer (GEI) migration." @@ -18741,21 +18731,21 @@ interface PackageOwner { "A list of packages under the owner." packages( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Find packages by their names." - names: [String], + names: [String] "Find packages in a repository by ID." - repositoryId: ID, + repositoryId: ID "Filter registry package by type." - packageType: PackageType, + packageType: PackageType "Ordering of the returned packages." - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageOrder = { field: CREATED_AT, direction: DESC } ): PackageConnection! } "Represents any entity on GitHub that has a profile page." @@ -18779,26 +18769,26 @@ interface ProfileOwner { "A list of repositories and gists this profile owner can pin to their profile." pinnableItems( "Filter the types of pinnable items that are returned." - types: [PinnableItemType!], + types: [PinnableItemType!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnableItemConnection! "A list of repositories and gists this profile owner has pinned to their profile" pinnedItems( "Filter the types of pinned items that are returned." - types: [PinnableItemType!], + types: [PinnableItemType!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): PinnableItemConnection! @@ -18813,24 +18803,21 @@ interface ProfileOwner { interface ProjectOwner { id: ID! "Find project by number." - project( - "The project number to find." - number: Int! - ): Project + project("The project number to find." number: Int!): Project "A list of projects under the owner." projects( "Ordering options for projects returned from the connection" - orderBy: ProjectOrder, + orderBy: ProjectOrder "Query to search projects by, currently only searching by name." - search: String, + search: String "A list of states to filter the projects by." - states: [ProjectState!], + states: [ProjectState!] "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectConnection! @@ -18877,22 +18864,19 @@ interface ProjectV2ItemFieldValueCommon { interface ProjectV2Owner { id: ID! "Find a project by number." - projectV2( - "The project number." - number: Int! - ): ProjectV2 + projectV2("The project number." number: Int!): ProjectV2 "A list of projects under the owner." projectsV2( "A project to search for under the the owner." - query: String, + query: String "How to order the returned projects." - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}, + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! @@ -18902,11 +18886,11 @@ interface ProjectV2Recent { "Recent projects that this user has modified in the context of the owner." recentProjects( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." last: Int ): ProjectV2Connection! @@ -18921,15 +18905,15 @@ interface Reactable { "A list of Reactions left on the Issue." reactions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Allows filtering Reactions by emoji." - content: ReactionContent, + content: ReactionContent "Allows specifying the order in which reactions are returned." orderBy: ReactionOrder ): ReactionConnection! @@ -18952,19 +18936,19 @@ interface RepositoryDiscussionAuthor { "Discussions this user has started." repositoryDiscussions( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for discussions returned from the connection." - orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC}, + orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC } "Filter discussions to only those in a specific repository." - repositoryId: ID, + repositoryId: ID "Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions." - answered: Boolean = null, + answered: Boolean = null "A list of states to filter the discussions by." states: [DiscussionState!] = [] ): DiscussionConnection! @@ -18974,15 +18958,15 @@ interface RepositoryDiscussionCommentAuthor { "Discussion comments this user has authored." repositoryDiscussionComments( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter discussion comments to only those in a specific repository." - repositoryId: ID, + repositoryId: ID "Filter discussion comments to only those that were marked as the answer" onlyAnswers: Boolean = false ): DiscussionCommentConnection! @@ -19042,10 +19026,7 @@ interface RepositoryInfo { "The HTTP path for this repository" resourcePath: URI! "A description of the repository, rendered to HTML without any links in it." - shortDescriptionHTML( - "How many characters to return." - limit: Int = 200 - ): HTML! + shortDescriptionHTML("How many characters to return." limit: Int = 200): HTML! "Identifies the date and time when the object was last updated." updatedAt: DateTime! "The HTTP URL for this repository" @@ -19063,42 +19044,39 @@ interface RepositoryNode { "Represents an owner of a Repository." interface RepositoryOwner { "A URL pointing to the owner's public avatar." - avatarUrl( - "The size of the resulting square image." - size: Int - ): URI! + avatarUrl("The size of the resulting square image." size: Int): URI! id: ID! "The username used to login." login: String! "A list of repositories that the user owns." repositories( "If non-null, filters repositories according to privacy" - privacy: RepositoryPrivacy, + privacy: RepositoryPrivacy "Ordering options for repositories returned from the connection" - orderBy: RepositoryOrder, + orderBy: RepositoryOrder "Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns." - affiliations: [RepositoryAffiliation], + affiliations: [RepositoryAffiliation] "Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns." - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR], + ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] "If non-null, filters repositories according to whether they have been locked" - isLocked: Boolean, + isLocked: Boolean "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If non-null, filters repositories according to whether they are archived and not maintained" - isArchived: Boolean, + isArchived: Boolean "If non-null, filters repositories according to whether they are forks of another repository" isFork: Boolean ): RepositoryConnection! "Find Repository." repository( "Name of Repository to find." - name: String!, + name: String! "Follow repository renames. If disabled, a repository referenced by its old name will return an error." followRenames: Boolean = true ): Repository @@ -19112,7 +19090,7 @@ interface RequirableByPullRequest { "Whether this is required to pass before merging for a specific pull request." isRequired( "The id of the pull request this is required for" - pullRequestId: ID, + pullRequestId: ID "The number of the pull request this is required for" pullRequestNumber: Int ): Boolean! @@ -19124,10 +19102,7 @@ interface Sponsorable { "True if this user/organization has a GitHub Sponsors listing." hasSponsorsListing: Boolean! "Whether the given account is sponsoring this user/organization." - isSponsoredBy( - "The target account's login." - accountLogin: String! - ): Boolean! + isSponsoredBy("The target account's login." accountLogin: String!): Boolean! "True if the viewer is sponsored by this user/organization." isSponsoringViewer: Boolean! "The estimated monthly GitHub Sponsors income for this user/organization in cents (USD)." @@ -19135,53 +19110,53 @@ interface Sponsorable { "List of users and organizations this entity is sponsoring." sponsoring( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for the users and organizations returned from the connection." - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! "List of sponsors for this user or organization." sponsors( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see." - tierId: ID, + tierId: ID "Ordering options for sponsors returned from the connection." - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! "Events involving this sponsorable, such as new sponsorships." sponsorsActivities( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given." - period: SponsorsActivityPeriod = MONTH, + period: SponsorsActivityPeriod = MONTH "Filter activities to those that occurred on or after this time." - since: DateTime, + since: DateTime "Filter activities to those that occurred before this time." - until: DateTime, + until: DateTime "Ordering options for activity returned from the connection." - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC}, + orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC } "Filter activities to only the specified actions." - actions: [SponsorsActivityAction!] = [], + actions: [SponsorsActivityAction!] = [] "Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship." - includeAsSponsor: Boolean = false, + includeAsSponsor: Boolean = false "Whether or not to include private activities in the result set. Defaults to including public and private activities." includePrivate: Boolean = true ): SponsorsActivityConnection! @@ -19200,56 +19175,56 @@ interface Sponsorable { "List of sponsorship updates sent from this sponsorable to sponsors." sponsorshipNewsletters( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for sponsorship updates returned from the connection." - orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} + orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC } ): SponsorshipNewsletterConnection! "The sponsorships where this user or organization is the maintainer receiving the funds." sponsorshipsAsMaintainer( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Whether or not to include private sponsorships in the result set" - includePrivate: Boolean = false, + includePrivate: Boolean = false "Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer." - orderBy: SponsorshipOrder, + orderBy: SponsorshipOrder "Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received." activeOnly: Boolean = true ): SponsorshipConnection! "The sponsorships where this user or organization is the funder." sponsorshipsAsSponsor( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer." - orderBy: SponsorshipOrder, + orderBy: SponsorshipOrder "Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins." - maintainerLogins: [String!], + maintainerLogins: [String!] "Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made." activeOnly: Boolean = true ): SponsorshipConnection! "The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has spent on GitHub to fund sponsorships. Only returns a value when viewed by the user themselves or by a user who can manage sponsorships for the requested organization." totalSponsorshipAmountAsSponsorInCents( "Filter payments to those that occurred on or after this time." - since: DateTime, + since: DateTime "Filter payments to those that occurred before this time." - until: DateTime, + until: DateTime "Filter payments to those made to the users or organizations with the specified usernames." sponsorableLogins: [String!] = [] ): Int @@ -19268,13 +19243,13 @@ interface Starrable { "A list of users who have starred this starrable." stargazers( "Returns the elements in the list that come after the specified cursor." - after: String, + after: String "Returns the elements in the list that come before the specified cursor." - before: String, + before: String "Returns the first _n_ elements from the list." - first: Int, + first: Int "Returns the last _n_ elements from the list." - last: Int, + last: Int "Order for connection" orderBy: StarOrder ): StargazerConnection! @@ -19354,11 +19329,17 @@ union Claimable = Mannequin | User "The object which triggered a `ClosedEvent`." union Closer = Commit | PullRequest "Represents either a issue the viewer can access or a restricted contribution." -union CreatedIssueOrRestrictedContribution = CreatedIssueContribution | RestrictedContribution +union CreatedIssueOrRestrictedContribution = + CreatedIssueContribution + | RestrictedContribution "Represents either a pull request the viewer can access or a restricted contribution." -union CreatedPullRequestOrRestrictedContribution = CreatedPullRequestContribution | RestrictedContribution +union CreatedPullRequestOrRestrictedContribution = + CreatedPullRequestContribution + | RestrictedContribution "Represents either a repository the viewer can access or a restricted contribution." -union CreatedRepositoryOrRestrictedContribution = CreatedRepositoryContribution | RestrictedContribution +union CreatedRepositoryOrRestrictedContribution = + CreatedRepositoryContribution + | RestrictedContribution "Users and teams." union DeploymentReviewer = Team | User "An object that is a member of an enterprise." @@ -19368,15 +19349,128 @@ union IpAllowListOwner = App | Enterprise | Organization "Used for return value of Repository.issueOrPullRequest." union IssueOrPullRequest = Issue | PullRequest "An item in an issue timeline" -union IssueTimelineItem = AssignedEvent | ClosedEvent | Commit | CrossReferencedEvent | DemilestonedEvent | IssueComment | LabeledEvent | LockedEvent | MilestonedEvent | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent +union IssueTimelineItem = + AssignedEvent + | ClosedEvent + | Commit + | CrossReferencedEvent + | DemilestonedEvent + | IssueComment + | LabeledEvent + | LockedEvent + | MilestonedEvent + | ReferencedEvent + | RenamedTitleEvent + | ReopenedEvent + | SubscribedEvent + | TransferredEvent + | UnassignedEvent + | UnlabeledEvent + | UnlockedEvent + | UnsubscribedEvent + | UserBlockedEvent "An item in an issue timeline" -union IssueTimelineItems = AddedToProjectEvent | AssignedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertedNoteToIssueEvent | ConvertedToDiscussionEvent | CrossReferencedEvent | DemilestonedEvent | DisconnectedEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | ReferencedEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent +union IssueTimelineItems = + AddedToProjectEvent + | AssignedEvent + | ClosedEvent + | CommentDeletedEvent + | ConnectedEvent + | ConvertedNoteToIssueEvent + | ConvertedToDiscussionEvent + | CrossReferencedEvent + | DemilestonedEvent + | DisconnectedEvent + | IssueComment + | LabeledEvent + | LockedEvent + | MarkedAsDuplicateEvent + | MentionedEvent + | MilestonedEvent + | MovedColumnsInProjectEvent + | PinnedEvent + | ReferencedEvent + | RemovedFromProjectEvent + | RenamedTitleEvent + | ReopenedEvent + | SubscribedEvent + | TransferredEvent + | UnassignedEvent + | UnlabeledEvent + | UnlockedEvent + | UnmarkedAsDuplicateEvent + | UnpinnedEvent + | UnsubscribedEvent + | UserBlockedEvent "Types that can be inside a Milestone." union MilestoneItem = Issue | PullRequest "Types of memberships that can be restored for an Organization member." -union OrgRestoreMemberAuditEntryMembership = OrgRestoreMemberMembershipOrganizationAuditEntryData | OrgRestoreMemberMembershipRepositoryAuditEntryData | OrgRestoreMemberMembershipTeamAuditEntryData +union OrgRestoreMemberAuditEntryMembership = + OrgRestoreMemberMembershipOrganizationAuditEntryData + | OrgRestoreMemberMembershipRepositoryAuditEntryData + | OrgRestoreMemberMembershipTeamAuditEntryData "An audit entry in an organization audit log." -union OrganizationAuditEntry = MembersCanDeleteReposClearAuditEntry | MembersCanDeleteReposDisableAuditEntry | MembersCanDeleteReposEnableAuditEntry | OauthApplicationCreateAuditEntry | OrgAddBillingManagerAuditEntry | OrgAddMemberAuditEntry | OrgBlockUserAuditEntry | OrgConfigDisableCollaboratorsOnlyAuditEntry | OrgConfigEnableCollaboratorsOnlyAuditEntry | OrgCreateAuditEntry | OrgDisableOauthAppRestrictionsAuditEntry | OrgDisableSamlAuditEntry | OrgDisableTwoFactorRequirementAuditEntry | OrgEnableOauthAppRestrictionsAuditEntry | OrgEnableSamlAuditEntry | OrgEnableTwoFactorRequirementAuditEntry | OrgInviteMemberAuditEntry | OrgInviteToBusinessAuditEntry | OrgOauthAppAccessApprovedAuditEntry | OrgOauthAppAccessBlockedAuditEntry | OrgOauthAppAccessDeniedAuditEntry | OrgOauthAppAccessRequestedAuditEntry | OrgOauthAppAccessUnblockedAuditEntry | OrgRemoveBillingManagerAuditEntry | OrgRemoveMemberAuditEntry | OrgRemoveOutsideCollaboratorAuditEntry | OrgRestoreMemberAuditEntry | OrgUnblockUserAuditEntry | OrgUpdateDefaultRepositoryPermissionAuditEntry | OrgUpdateMemberAuditEntry | OrgUpdateMemberRepositoryCreationPermissionAuditEntry | OrgUpdateMemberRepositoryInvitationPermissionAuditEntry | PrivateRepositoryForkingDisableAuditEntry | PrivateRepositoryForkingEnableAuditEntry | RepoAccessAuditEntry | RepoAddMemberAuditEntry | RepoAddTopicAuditEntry | RepoArchivedAuditEntry | RepoChangeMergeSettingAuditEntry | RepoConfigDisableAnonymousGitAccessAuditEntry | RepoConfigDisableCollaboratorsOnlyAuditEntry | RepoConfigDisableContributorsOnlyAuditEntry | RepoConfigDisableSockpuppetDisallowedAuditEntry | RepoConfigEnableAnonymousGitAccessAuditEntry | RepoConfigEnableCollaboratorsOnlyAuditEntry | RepoConfigEnableContributorsOnlyAuditEntry | RepoConfigEnableSockpuppetDisallowedAuditEntry | RepoConfigLockAnonymousGitAccessAuditEntry | RepoConfigUnlockAnonymousGitAccessAuditEntry | RepoCreateAuditEntry | RepoDestroyAuditEntry | RepoRemoveMemberAuditEntry | RepoRemoveTopicAuditEntry | RepositoryVisibilityChangeDisableAuditEntry | RepositoryVisibilityChangeEnableAuditEntry | TeamAddMemberAuditEntry | TeamAddRepositoryAuditEntry | TeamChangeParentTeamAuditEntry | TeamRemoveMemberAuditEntry | TeamRemoveRepositoryAuditEntry +union OrganizationAuditEntry = + MembersCanDeleteReposClearAuditEntry + | MembersCanDeleteReposDisableAuditEntry + | MembersCanDeleteReposEnableAuditEntry + | OauthApplicationCreateAuditEntry + | OrgAddBillingManagerAuditEntry + | OrgAddMemberAuditEntry + | OrgBlockUserAuditEntry + | OrgConfigDisableCollaboratorsOnlyAuditEntry + | OrgConfigEnableCollaboratorsOnlyAuditEntry + | OrgCreateAuditEntry + | OrgDisableOauthAppRestrictionsAuditEntry + | OrgDisableSamlAuditEntry + | OrgDisableTwoFactorRequirementAuditEntry + | OrgEnableOauthAppRestrictionsAuditEntry + | OrgEnableSamlAuditEntry + | OrgEnableTwoFactorRequirementAuditEntry + | OrgInviteMemberAuditEntry + | OrgInviteToBusinessAuditEntry + | OrgOauthAppAccessApprovedAuditEntry + | OrgOauthAppAccessBlockedAuditEntry + | OrgOauthAppAccessDeniedAuditEntry + | OrgOauthAppAccessRequestedAuditEntry + | OrgOauthAppAccessUnblockedAuditEntry + | OrgRemoveBillingManagerAuditEntry + | OrgRemoveMemberAuditEntry + | OrgRemoveOutsideCollaboratorAuditEntry + | OrgRestoreMemberAuditEntry + | OrgUnblockUserAuditEntry + | OrgUpdateDefaultRepositoryPermissionAuditEntry + | OrgUpdateMemberAuditEntry + | OrgUpdateMemberRepositoryCreationPermissionAuditEntry + | OrgUpdateMemberRepositoryInvitationPermissionAuditEntry + | PrivateRepositoryForkingDisableAuditEntry + | PrivateRepositoryForkingEnableAuditEntry + | RepoAccessAuditEntry + | RepoAddMemberAuditEntry + | RepoAddTopicAuditEntry + | RepoArchivedAuditEntry + | RepoChangeMergeSettingAuditEntry + | RepoConfigDisableAnonymousGitAccessAuditEntry + | RepoConfigDisableCollaboratorsOnlyAuditEntry + | RepoConfigDisableContributorsOnlyAuditEntry + | RepoConfigDisableSockpuppetDisallowedAuditEntry + | RepoConfigEnableAnonymousGitAccessAuditEntry + | RepoConfigEnableCollaboratorsOnlyAuditEntry + | RepoConfigEnableContributorsOnlyAuditEntry + | RepoConfigEnableSockpuppetDisallowedAuditEntry + | RepoConfigLockAnonymousGitAccessAuditEntry + | RepoConfigUnlockAnonymousGitAccessAuditEntry + | RepoCreateAuditEntry + | RepoDestroyAuditEntry + | RepoRemoveMemberAuditEntry + | RepoRemoveTopicAuditEntry + | RepositoryVisibilityChangeDisableAuditEntry + | RepositoryVisibilityChangeEnableAuditEntry + | TeamAddMemberAuditEntry + | TeamAddRepositoryAuditEntry + | TeamChangeParentTeamAuditEntry + | TeamRemoveMemberAuditEntry + | TeamRemoveRepositoryAuditEntry "Used for argument of CreateProjectV2 mutation." union OrganizationOrUser = Organization | User "Types that can grant permissions on a repository to a user" @@ -19388,15 +19482,120 @@ union ProjectCardItem = Issue | PullRequest "Possible collaborators for a project." union ProjectV2Actor = Team | User "Configurations for project fields." -union ProjectV2FieldConfiguration = ProjectV2Field | ProjectV2IterationField | ProjectV2SingleSelectField +union ProjectV2FieldConfiguration = + ProjectV2Field + | ProjectV2IterationField + | ProjectV2SingleSelectField "Types that can be inside Project Items." union ProjectV2ItemContent = DraftIssue | Issue | PullRequest "Project field values" -union ProjectV2ItemFieldValue = ProjectV2ItemFieldDateValue | ProjectV2ItemFieldIterationValue | ProjectV2ItemFieldLabelValue | ProjectV2ItemFieldMilestoneValue | ProjectV2ItemFieldNumberValue | ProjectV2ItemFieldPullRequestValue | ProjectV2ItemFieldRepositoryValue | ProjectV2ItemFieldReviewerValue | ProjectV2ItemFieldSingleSelectValue | ProjectV2ItemFieldTextValue | ProjectV2ItemFieldUserValue +union ProjectV2ItemFieldValue = + ProjectV2ItemFieldDateValue + | ProjectV2ItemFieldIterationValue + | ProjectV2ItemFieldLabelValue + | ProjectV2ItemFieldMilestoneValue + | ProjectV2ItemFieldNumberValue + | ProjectV2ItemFieldPullRequestValue + | ProjectV2ItemFieldRepositoryValue + | ProjectV2ItemFieldReviewerValue + | ProjectV2ItemFieldSingleSelectValue + | ProjectV2ItemFieldTextValue + | ProjectV2ItemFieldUserValue "An item in a pull request timeline" -union PullRequestTimelineItem = AssignedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | Commit | CommitCommentThread | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MergedEvent | MilestonedEvent | PullRequestReview | PullRequestReviewComment | PullRequestReviewThread | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent +union PullRequestTimelineItem = + AssignedEvent + | BaseRefDeletedEvent + | BaseRefForcePushedEvent + | ClosedEvent + | Commit + | CommitCommentThread + | CrossReferencedEvent + | DemilestonedEvent + | DeployedEvent + | DeploymentEnvironmentChangedEvent + | HeadRefDeletedEvent + | HeadRefForcePushedEvent + | HeadRefRestoredEvent + | IssueComment + | LabeledEvent + | LockedEvent + | MergedEvent + | MilestonedEvent + | PullRequestReview + | PullRequestReviewComment + | PullRequestReviewThread + | ReferencedEvent + | RenamedTitleEvent + | ReopenedEvent + | ReviewDismissedEvent + | ReviewRequestRemovedEvent + | ReviewRequestedEvent + | SubscribedEvent + | UnassignedEvent + | UnlabeledEvent + | UnlockedEvent + | UnsubscribedEvent + | UserBlockedEvent "An item in a pull request timeline" -union PullRequestTimelineItems = AddedToMergeQueueEvent | AddedToProjectEvent | AssignedEvent | AutoMergeDisabledEvent | AutoMergeEnabledEvent | AutoRebaseEnabledEvent | AutoSquashEnabledEvent | AutomaticBaseChangeFailedEvent | AutomaticBaseChangeSucceededEvent | BaseRefChangedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertToDraftEvent | ConvertedNoteToIssueEvent | ConvertedToDiscussionEvent | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | DisconnectedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MergedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | PullRequestCommit | PullRequestCommitCommentThread | PullRequestReview | PullRequestReviewThread | PullRequestRevisionMarker | ReadyForReviewEvent | ReferencedEvent | RemovedFromMergeQueueEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent +union PullRequestTimelineItems = + AddedToMergeQueueEvent + | AddedToProjectEvent + | AssignedEvent + | AutoMergeDisabledEvent + | AutoMergeEnabledEvent + | AutoRebaseEnabledEvent + | AutoSquashEnabledEvent + | AutomaticBaseChangeFailedEvent + | AutomaticBaseChangeSucceededEvent + | BaseRefChangedEvent + | BaseRefDeletedEvent + | BaseRefForcePushedEvent + | ClosedEvent + | CommentDeletedEvent + | ConnectedEvent + | ConvertToDraftEvent + | ConvertedNoteToIssueEvent + | ConvertedToDiscussionEvent + | CrossReferencedEvent + | DemilestonedEvent + | DeployedEvent + | DeploymentEnvironmentChangedEvent + | DisconnectedEvent + | HeadRefDeletedEvent + | HeadRefForcePushedEvent + | HeadRefRestoredEvent + | IssueComment + | LabeledEvent + | LockedEvent + | MarkedAsDuplicateEvent + | MentionedEvent + | MergedEvent + | MilestonedEvent + | MovedColumnsInProjectEvent + | PinnedEvent + | PullRequestCommit + | PullRequestCommitCommentThread + | PullRequestReview + | PullRequestReviewThread + | PullRequestRevisionMarker + | ReadyForReviewEvent + | ReferencedEvent + | RemovedFromMergeQueueEvent + | RemovedFromProjectEvent + | RenamedTitleEvent + | ReopenedEvent + | ReviewDismissedEvent + | ReviewRequestRemovedEvent + | ReviewRequestedEvent + | SubscribedEvent + | TransferredEvent + | UnassignedEvent + | UnlabeledEvent + | UnlockedEvent + | UnmarkedAsDuplicateEvent + | UnpinnedEvent + | UnsubscribedEvent + | UserBlockedEvent "Types that can be an actor." union PushAllowanceActor = App | Team | User "Types that can be assigned to reactions." @@ -19410,11 +19609,28 @@ union RequestedReviewer = Bot | Mannequin | Team | User "Types that can be an actor." union ReviewDismissalAllowanceActor = App | Team | User "Types which can be parameters for `RepositoryRule` objects." -union RuleParameters = BranchNamePatternParameters | CommitAuthorEmailPatternParameters | CommitMessagePatternParameters | CommitterEmailPatternParameters | PullRequestParameters | RequiredDeploymentsParameters | RequiredStatusChecksParameters | TagNamePatternParameters | UpdateParameters +union RuleParameters = + BranchNamePatternParameters + | CommitAuthorEmailPatternParameters + | CommitMessagePatternParameters + | CommitterEmailPatternParameters + | PullRequestParameters + | RequiredDeploymentsParameters + | RequiredStatusChecksParameters + | TagNamePatternParameters + | UpdateParameters "Types which can have `RepositoryRule` objects." union RuleSource = Organization | Repository "The results of a search." -union SearchResultItem = App | Discussion | Issue | MarketplaceListing | Organization | PullRequest | Repository | User +union SearchResultItem = + App + | Discussion + | Issue + | MarketplaceListing + | Organization + | PullRequest + | Repository + | User "Entities that can sponsor others via GitHub Sponsors" union Sponsor = Organization | User "Entities that can be sponsored via GitHub Sponsors" @@ -20483,17 +20699,32 @@ enum PackageOrderField { "The possible types of a package." enum PackageType { "An npm package." - NPM @deprecated(reason: "NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC.") + NPM + @deprecated( + reason: "NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC." + ) "A rubygems package." - RUBYGEMS @deprecated(reason: "RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-12-28 UTC.") + RUBYGEMS + @deprecated( + reason: "RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-12-28 UTC." + ) "A maven package." - MAVEN @deprecated(reason: "MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2023-02-10 UTC.") + MAVEN + @deprecated( + reason: "MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2023-02-10 UTC." + ) "A docker image." - DOCKER @deprecated(reason: "DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2021-06-21 UTC.") + DOCKER + @deprecated( + reason: "DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2021-06-21 UTC." + ) "A debian package." DEBIAN "A nuget package." - NUGET @deprecated(reason: "NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC.") + NUGET + @deprecated( + reason: "NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC." + ) "A python package." PYPI } @@ -22345,7 +22576,7 @@ input AddProjectV2ItemByIdInput { input AddPullRequestReviewCommentInput { """ The node ID of the pull request reviewing - + **Upcoming Change on 2023-10-01 UTC** **Description:** `pullRequestId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation @@ -22353,7 +22584,7 @@ input AddPullRequestReviewCommentInput { pullRequestId: ID """ The Node ID of the review to modify. - + **Upcoming Change on 2023-10-01 UTC** **Description:** `pullRequestReviewId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation @@ -22361,7 +22592,7 @@ input AddPullRequestReviewCommentInput { pullRequestReviewId: ID """ The SHA of the commit to comment on. - + **Upcoming Change on 2023-10-01 UTC** **Description:** `commitOID` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation @@ -22369,7 +22600,7 @@ input AddPullRequestReviewCommentInput { commitOID: GitObjectID """ The text of the comment. This field is required - + **Upcoming Change on 2023-10-01 UTC** **Description:** `body` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation @@ -22377,7 +22608,7 @@ input AddPullRequestReviewCommentInput { body: String """ The relative path of the file to comment on. - + **Upcoming Change on 2023-10-01 UTC** **Description:** `path` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation @@ -22385,7 +22616,7 @@ input AddPullRequestReviewCommentInput { path: String """ The line index in the diff to comment on. - + **Upcoming Change on 2023-10-01 UTC** **Description:** `position` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation @@ -22393,7 +22624,7 @@ input AddPullRequestReviewCommentInput { position: Int """ The comment id to reply to. - + **Upcoming Change on 2023-10-01 UTC** **Description:** `inReplyTo` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation @@ -22414,7 +22645,7 @@ input AddPullRequestReviewInput { event: PullRequestReviewEvent """ The review line comments. - + **Upcoming Change on 2023-10-01 UTC** **Description:** `comments` will be removed. use the `threads` argument instead **Reason:** We are deprecating comment fields that use diff-relative positioning @@ -22804,8 +23035,6 @@ Specify a branch using `repositoryNameWithOwner` and `branchName`: "repositoryNameWithOwner": "github/graphql-client", "branchName": "main" } - - """ input CommittableBranch { "The Node ID of the Ref to be updated." @@ -23292,7 +23521,7 @@ input CreateSponsorshipsInput { input CreateTeamDiscussionCommentInput { """ The ID of the discussion to which the comment belongs. This field is required. - + **Upcoming Change on 2024-07-01 UTC** **Description:** `discussionId` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. @@ -23300,7 +23529,7 @@ input CreateTeamDiscussionCommentInput { discussionId: ID """ The content of the comment. This field is required. - + **Upcoming Change on 2024-07-01 UTC** **Description:** `body` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. @@ -23313,7 +23542,7 @@ input CreateTeamDiscussionCommentInput { input CreateTeamDiscussionInput { """ The ID of the team to which the discussion belongs. This field is required. - + **Upcoming Change on 2024-07-01 UTC** **Description:** `teamId` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. @@ -23321,7 +23550,7 @@ input CreateTeamDiscussionInput { teamId: ID """ The title of the discussion. This field is required. - + **Upcoming Change on 2024-07-01 UTC** **Description:** `title` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. @@ -23329,7 +23558,7 @@ input CreateTeamDiscussionInput { title: String """ The content of the discussion. This field is required. - + **Upcoming Change on 2024-07-01 UTC** **Description:** `body` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. @@ -23337,7 +23566,7 @@ input CreateTeamDiscussionInput { body: String """ If true, restricts the visibility of this discussion to team members and organization admins. If false or not specified, allows any organization member to view this discussion. - + **Upcoming Change on 2024-07-01 UTC** **Description:** `private` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. @@ -23795,7 +24024,6 @@ git commit can be described using the `FileChanges` type as follows: } ] } - """ input FileChanges { "Files to delete." @@ -25638,4 +25866,6 @@ input WorkflowRunOrder { "The direction in which to order workflow runs by the specified field." direction: OrderDirection! } -directive @requiredCapabilities(requiredCapabilities: [String!]) on OBJECT | SCALAR | ARGUMENT_DEFINITION | INTERFACE | INPUT_OBJECT | FIELD_DEFINITION | ENUM | ENUM_VALUE | UNION | INPUT_FIELD_DEFINITION +directive @requiredCapabilities( + requiredCapabilities: [String!] +) on OBJECT | SCALAR | ARGUMENT_DEFINITION | INTERFACE | INPUT_OBJECT | FIELD_DEFINITION | ENUM | ENUM_VALUE | UNION | INPUT_FIELD_DEFINITION