| 1 |
query repositoryIDByName($name: String!) { |
| 2 |
me { |
| 3 |
repository(name: $name) { |
| 4 |
id |
| 5 |
} |
| 6 |
} |
| 7 |
} |
| 8 |
|
| 9 |
query repositoryIDByUser($username: String!, $name: String!) { |
| 10 |
user(username: $username) { |
| 11 |
repository(name: $name) { |
| 12 |
id |
| 13 |
} |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
query repositories($cursor: Cursor) { |
| 18 |
repositories(cursor: $cursor) { |
| 19 |
...repos |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
query repositoriesByUser($username: String!, $cursor: Cursor) { |
| 24 |
user(username: $username) { |
| 25 |
repositories(cursor: $cursor) { |
| 26 |
...repos |
| 27 |
} |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
fragment repos on RepositoryCursor { |
| 32 |
results { |
| 33 |
name |
| 34 |
description |
| 35 |
visibility |
| 36 |
owner { |
| 37 |
canonicalName |
| 38 |
} |
| 39 |
} |
| 40 |
cursor |
| 41 |
} |
| 42 |
|
| 43 |
query exportRepository($username: String!, $name: String!) { |
| 44 |
user(username: $username) { |
| 45 |
repository(name: $name) { |
| 46 |
...repositoryExport |
| 47 |
} |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
query exportRepositories($cursor: Cursor) { |
| 52 |
repositories(cursor: $cursor) { |
| 53 |
results { |
| 54 |
...repositoryExport |
| 55 |
} |
| 56 |
cursor |
| 57 |
} |
| 58 |
} |
| 59 |
|
| 60 |
fragment repositoryExport on Repository { |
| 61 |
name |
| 62 |
owner { |
| 63 |
canonicalName |
| 64 |
} |
| 65 |
description |
| 66 |
visibility |
| 67 |
readme |
| 68 |
nonPublishing |
| 69 |
} |
| 70 |
|
| 71 |
query userWebhooks($cursor: Cursor) { |
| 72 |
userWebhooks(cursor: $cursor) { |
| 73 |
results { |
| 74 |
id |
| 75 |
url |
| 76 |
} |
| 77 |
cursor |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
query sshSettings { |
| 82 |
version { |
| 83 |
settings { |
| 84 |
sshUser |
| 85 |
} |
| 86 |
} |
| 87 |
} |
| 88 |
|
| 89 |
query completeRepositories { |
| 90 |
repositories { |
| 91 |
results { |
| 92 |
name |
| 93 |
} |
| 94 |
} |
| 95 |
} |
| 96 |
|
| 97 |
query aclByRepoName($name: String!, $cursor: Cursor) { |
| 98 |
me { |
| 99 |
...acl |
| 100 |
} |
| 101 |
} |
| 102 |
|
| 103 |
query aclByUser($username: String!, $name: String!, $cursor: Cursor) { |
| 104 |
user(username: $username) { |
| 105 |
...acl |
| 106 |
} |
| 107 |
} |
| 108 |
|
| 109 |
fragment acl on User { |
| 110 |
repository(name: $name) { |
| 111 |
accessControlList(cursor: $cursor) { |
| 112 |
results { |
| 113 |
id |
| 114 |
created |
| 115 |
entity { |
| 116 |
canonicalName |
| 117 |
} |
| 118 |
mode |
| 119 |
} |
| 120 |
cursor |
| 121 |
} |
| 122 |
} |
| 123 |
} |
| 124 |
|
| 125 |
mutation createRepository( |
| 126 |
$name: String! |
| 127 |
$visibility: Visibility! |
| 128 |
$description: String! |
| 129 |
) { |
| 130 |
createRepository( |
| 131 |
name: $name |
| 132 |
visibility: $visibility |
| 133 |
description: $description |
| 134 |
) { |
| 135 |
id |
| 136 |
name |
| 137 |
owner { |
| 138 |
canonicalName |
| 139 |
} |
| 140 |
} |
| 141 |
} |
| 142 |
|
| 143 |
mutation updateRepository($id: Int!, $input: RepoInput!) { |
| 144 |
updateRepository(id: $id, input: $input) { |
| 145 |
name |
| 146 |
} |
| 147 |
} |
| 148 |
|
| 149 |
mutation clearCustomReadme($id: Int!) { |
| 150 |
updateRepository(id: $id, input: { readme: null }) { |
| 151 |
name |
| 152 |
} |
| 153 |
} |
| 154 |
|
| 155 |
mutation clearDescription($id: Int!) { |
| 156 |
updateRepository(id: $id, input: { description: null }) { |
| 157 |
name |
| 158 |
} |
| 159 |
} |
| 160 |
|
| 161 |
mutation deleteRepository($id: Int!) { |
| 162 |
deleteRepository(id: $id) { |
| 163 |
name |
| 164 |
} |
| 165 |
} |
| 166 |
|
| 167 |
mutation createUserWebhook($config: UserWebhookInput!) { |
| 168 |
createUserWebhook(config: $config) { |
| 169 |
id |
| 170 |
} |
| 171 |
} |
| 172 |
|
| 173 |
mutation deleteUserWebhook($id: Int!) { |
| 174 |
deleteUserWebhook(id: $id) { |
| 175 |
id |
| 176 |
} |
| 177 |
} |
| 178 |
|
| 179 |
mutation updateACL($repoId: Int!, $mode: AccessMode!, $entity: String!) { |
| 180 |
updateACL(repoId: $repoId, mode: $mode, entity: $entity) { |
| 181 |
entity { |
| 182 |
canonicalName |
| 183 |
} |
| 184 |
} |
| 185 |
} |
| 186 |
|
| 187 |
mutation deleteACL($id: Int!) { |
| 188 |
deleteACL(id: $id) { |
| 189 |
entity { |
| 190 |
canonicalName |
| 191 |
} |
| 192 |
repository { |
| 193 |
name |
| 194 |
} |
| 195 |
} |
| 196 |
} |