1type Repository {
2 """The name of the repository. Null for the default (unnamed) repository in a single-repo setup."""
3 name: String
4
5 """All the bugs"""
6 allBugs(
7 """Returns the elements in the list that come after the specified cursor."""
8 after: String
9 """Returns the elements in the list that come before the specified cursor."""
10 before: String
11 """Returns the first _n_ elements from the list."""
12 first: Int
13 """Returns the last _n_ elements from the list."""
14 last: Int
15 """A query to select and order bugs."""
16 query: String
17 ): BugConnection!
18
19 """Look up a bug by id prefix. Returns null if no bug matches the prefix."""
20 bug(prefix: String!): Bug
21
22 """All the identities"""
23 allIdentities(
24 """Returns the elements in the list that come after the specified cursor."""
25 after: String
26 """Returns the elements in the list that come before the specified cursor."""
27 before: String
28 """Returns the first _n_ elements from the list."""
29 first: Int
30 """Returns the last _n_ elements from the list."""
31 last: Int
32 ): IdentityConnection!
33
34 """Look up an identity by id prefix. Returns null if no identity matches the prefix."""
35 identity(prefix: String!): Identity
36
37 """The identity created or selected by the user as its own"""
38 userIdentity: Identity
39
40 """All branches and tags, optionally filtered by type. BRANCH and TAG are
41 the only accepted filter values; passing COMMIT returns an error."""
42 refs(
43 """Returns the elements in the list that come after the specified cursor."""
44 after: String
45 """Returns the elements in the list that come before the specified cursor."""
46 before: String
47 """Returns the first _n_ elements from the list."""
48 first: Int
49 """Returns the last _n_ elements from the list."""
50 last: Int
51 """Restrict to references of this type. Accepts BRANCH or TAG only."""
52 type: GitRefType
53 ): GitRefConnection!
54
55 """Directory listing at path under ref. An empty path returns the root tree."""
56 tree(ref: String!, path: String): [GitTreeEntry!]!
57
58 """Content of the file at path under ref. Null if the path does not exist
59 or resolves to a tree rather than a blob."""
60 blob(ref: String!, path: String!): GitBlob
61
62 """Paginated commit log reachable from ref, optionally filtered to commits
63 touching path."""
64 commits(
65 """Returns the elements in the list that come after the specified cursor."""
66 after: String
67 """Returns the first _n_ elements from the list (max 100, default 20)."""
68 first: Int
69 """Branch name, tag name, full ref (e.g. refs/heads/main), or commit hash
70 to start the log from."""
71 ref: String!
72 """Restrict to commits that touched this path."""
73 path: String
74 """Restrict to commits authored on or after this timestamp."""
75 since: Time
76 """Restrict to commits authored before or on this timestamp."""
77 until: Time
78 ): GitCommitConnection!
79
80 """A single commit by hash. Returns null if the hash does not exist in the repository."""
81 commit(hash: String!): GitCommit
82
83 """The most recent commit that touched each of the named entries in the
84 directory at path under ref. Use this to populate last-commit info on a
85 tree listing without blocking the initial tree fetch."""
86 lastCommits(ref: String!, path: String, names: [String!]!): [GitLastCommit!]!
87
88 """The reference pointed to by HEAD in the git repository.
89 Null if HEAD cannot be resolved, for example in an empty or unborn
90 repository, or if HEAD is missing or invalid."""
91 head: GitRef
92
93 """List of valid labels."""
94 validLabels(
95 """Returns the elements in the list that come after the specified cursor."""
96 after: String
97 """Returns the elements in the list that come before the specified cursor."""
98 before: String
99 """Returns the first _n_ elements from the list."""
100 first: Int
101 """Returns the last _n_ elements from the list."""
102 last: Int
103 ): LabelConnection!
104}
105
106type RepositoryConnection {
107 edges: [RepositoryEdge!]!
108 nodes: [Repository!]!
109 pageInfo: PageInfo!
110 totalCount: Int!
111}
112
113type RepositoryEdge {
114 cursor: String!
115 node: Repository!
116}