g1t/apps/api/src/reference.json
Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1 | { |
| 2 | "device_code": { | |
| 3 | "request": { | |
| 4 | "client_name": "Claude Code" | |
| 5 | }, | |
| 6 | "response": { | |
| 7 | "device_code": "Gm3k…", | |
| 8 | "user_code": "WDJB-MJHT", | |
| 9 | "verification_uri": "https://g1t.sh/device", | |
| 10 | "verification_uri_complete": "https://g1t.sh/device?code=WDJB-MJHT", | |
| 11 | "expires_in": 900, | |
| 12 | "interval": 5 | |
| 13 | } | |
| 14 | }, | |
| 15 | "device_token": { | |
| 16 | "request": { | |
| 17 | "device_code": "Gm3k…" | |
| 18 | }, | |
| 19 | "response": { | |
| 20 | "status": "approved", | |
| 21 | "token": "g1t_…", | |
| 22 | "username": "syntaqx", | |
| 23 | "verified": true | |
| 24 | } | |
| 25 | }, | |
| 26 | "whoami": { | |
| 27 | "response": { | |
| 28 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 29 | "username": "syntaqx", | |
| 30 | "kind": "user", | |
| 31 | "verified": true, | |
| 32 | "workspaces": [ | |
| 33 | { | |
| 34 | "slug": "acme", | |
| 35 | "role": "member" | |
| 36 | }, | |
| 37 | { | |
| 38 | "slug": "syntaqx", | |
| 39 | "role": "owner" | |
| 40 | } | |
| 41 | ] | |
| 42 | }, | |
| 43 | "notes": "`kind` is `user`, `workspace` for a [workspace access token](/guides/workspaces/#workspace-access-tokens), or `agent` for the token a g1t agent works with. For a workspace token, `username` is the workspace's slug and `workspaces` holds only that workspace." | |
| 44 | }, | |
| 45 | "create_workspace": { | |
| 46 | "request": { | |
| 47 | "slug": "syntaqx-labs", | |
| 48 | "name": "Syntaqx Labs" | |
| 49 | }, | |
| 50 | "response": { | |
| 51 | "id": "wsp_01m43teqa9em6bje0bhvdj4jkb", | |
| 52 | "slug": "syntaqx-labs", | |
| 53 | "name": "Syntaqx Labs", | |
| 54 | "description": null, | |
| 55 | "createdAt": "2026-10-04T16:02:51.337Z", | |
| 56 | "memberCount": 1 | |
| 57 | } | |
| 58 | }, | |
| 59 | "list_repos": { | |
| 60 | "query": { | |
| 61 | "q": "hello" | |
| 62 | }, | |
| 63 | "response": [ | |
| 64 | { | |
| 65 | "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 66 | "namespace": "syntaqx", | |
| 67 | "name": "hello", | |
| 68 | "description": "A tiny service that says hello.", | |
| 69 | "isPrivate": false, | |
| 70 | "ownerId": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 71 | "defaultBranch": "main", | |
| 72 | "forkOf": null, | |
| 73 | "protected": true, | |
| 74 | "createdAt": "2026-09-28T14:11:52.640Z" | |
| 75 | } | |
| 76 | ], | |
| 77 | "notes": "Returns at most 50 repositories, newest first. Forks made for pull requests are left out." | |
| 78 | }, | |
| 79 | "create_repo": { | |
| 80 | "request": { | |
| 81 | "workspace": "syntaqx", | |
| 82 | "name": "hello-cli", | |
| 83 | "description": "Command-line client for hello.", | |
| 84 | "private": false | |
| 85 | }, | |
| 86 | "response": { | |
| 87 | "id": "rep_01m43tk1jhehztx23drs87f5fc", | |
| 88 | "namespace": "syntaqx", | |
| 89 | "name": "hello-cli", | |
| 90 | "description": "Command-line client for hello.", | |
| 91 | "isPrivate": false, | |
| 92 | "ownerId": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 93 | "defaultBranch": "main", | |
| 94 | "forkOf": null, | |
| 95 | "protected": false, | |
| 96 | "createdAt": "2026-10-04T16:05:12.913Z" | |
| 97 | }, | |
| 98 | "notes": "`ownerId` is the id of the person who created the repository. With `import_url`, `defaultBranch` is the default branch of the repository copied." | |
| 99 | }, | |
| 100 | "get_repo": { | |
| 101 | "response": { | |
| 102 | "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 103 | "namespace": "syntaqx", | |
| 104 | "name": "hello", | |
| 105 | "description": "A tiny service that says hello.", | |
| 106 | "isPrivate": false, | |
| 107 | "ownerId": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 108 | "defaultBranch": "main", | |
| 109 | "forkOf": null, | |
| 110 | "protected": true, | |
| 111 | "createdAt": "2026-09-28T14:11:52.640Z" | |
| 112 | } | |
| 113 | }, | |
| 114 | "update_repo": { | |
| 115 | "request": { | |
| 116 | "description": "Says hello, politely.", | |
| 117 | "protected": true | |
| 118 | }, | |
| 119 | "response": { | |
| 120 | "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 121 | "namespace": "syntaqx", | |
| 122 | "name": "hello", | |
| 123 | "description": "Says hello, politely.", | |
| 124 | "isPrivate": false, | |
| 125 | "ownerId": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 126 | "defaultBranch": "main", | |
| 127 | "forkOf": null, | |
| 128 | "protected": true, | |
| 129 | "createdAt": "2026-09-28T14:11:52.640Z" | |
| 130 | } | |
| 131 | }, | |
| 132 | "get_repo_settings": { | |
| 133 | "response": { | |
| 134 | "autoMerge": false, | |
| 135 | "requireUpToDate": false, | |
| 136 | "requiredApprovals": 0, | |
| 137 | "countAgentApprovals": true, | |
| 138 | "allowIgnoringChecks": true, | |
| 139 | "agentReview": true, | |
| 140 | "maxRevisions": 2, | |
| 141 | "mergeQueue": false, | |
| 142 | "updatedBy": null, | |
| 143 | "updatedAt": null | |
| 144 | } | |
| 145 | }, | |
| 146 | "update_repo_settings": { | |
| 147 | "request": { | |
| 148 | "required_approvals": 1, | |
| 149 | "count_agent_approvals": false, | |
| 150 | "merge_queue": true | |
| 151 | }, | |
| 152 | "response": { | |
| 153 | "autoMerge": false, | |
| 154 | "requireUpToDate": false, | |
| 155 | "requiredApprovals": 1, | |
| 156 | "countAgentApprovals": false, | |
| 157 | "allowIgnoringChecks": true, | |
| 158 | "agentReview": true, | |
| 159 | "maxRevisions": 2, | |
| 160 | "mergeQueue": true, | |
| 161 | "updatedBy": "syntaqx", | |
| 162 | "updatedAt": "2026-10-04T16:20:37.508Z" | |
| 163 | }, | |
| 164 | "notes": "`required_approvals` is at most 6 and `max_revisions` at most 5. See [what a repository can ask for](/guides/g1t-agents/#what-a-repository-can-ask-for)." | |
| 165 | }, | |
| 166 | "list_events": { | |
| 167 | "query": { | |
| 168 | "before": "evt_01m43t2a6c9e3g7j1m5q9t3x7b" | |
| 169 | }, | |
| 170 | "response": [ | |
| 171 | { | |
| 172 | "id": "evt_01m43smh3ve52vkcna207vqctf", | |
| 173 | "type": "pull.opened", | |
| 174 | "source": "work", | |
| 175 | "time": "2026-10-01T18:20:02.117Z", | |
| 176 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 177 | "actor": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 178 | "data": { | |
| 179 | "pullId": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 180 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 181 | "number": 14, | |
| 182 | "issue": 12, | |
| 183 | "agent": "claude-code" | |
| 184 | } | |
| 185 | }, | |
| 186 | { | |
| 187 | "id": "evt_01m43shrzpf2vt5rxbb02z0xjt", | |
| 188 | "type": "issue.opened", | |
| 189 | "source": "work", | |
| 190 | "time": "2026-10-01T18:04:11.482Z", | |
| 191 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 192 | "actor": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 193 | "data": { | |
| 194 | "issueId": "iss_01m43shrzpfe49x74ga7sj1c6v", | |
| 195 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 196 | "number": 12, | |
| 197 | "title": "Greeting should name the caller" | |
| 198 | } | |
| 199 | } | |
| 200 | ], | |
| 201 | "notes": "Returns 50 events a page. To page back, send the `id` of the last event you have as `before`. `actor` is a user id, and `data` depends on `type`." | |
| 202 | }, | |
| 203 | "list_issues": { | |
| 204 | "query": { | |
| 205 | "state": "open", | |
| 206 | "label": "feature" | |
| 207 | }, | |
| 208 | "response": [ | |
| 209 | { | |
| 210 | "id": "iss_01m43shrzpfe49x74ga7sj1c6v", | |
| 211 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 212 | "number": 12, | |
| 213 | "title": "Greeting should name the caller", | |
| 214 | "body": "Take a name from the first argument; fall back to world.", | |
| 215 | "labels": [ | |
| 216 | "feature" | |
| 217 | ], | |
| 218 | "checks": [ | |
| 219 | "cargo test" | |
| 220 | ], | |
| 221 | "state": "open", | |
| 222 | "reason": null, | |
| 223 | "resolvedBy": null, | |
| 224 | "author": { | |
| 225 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 226 | "username": "syntaqx", | |
| 227 | "kind": "user", | |
| 228 | "verified": false, | |
| 229 | "workspaces": [] | |
| 230 | }, | |
| 231 | "createdAt": "2026-10-01T18:04:11.482Z", | |
| 232 | "updatedAt": "2026-10-01T18:04:11.482Z", | |
| 233 | "closedAt": null, | |
| 234 | "pullCount": 1, | |
| 235 | "commentCount": 0, | |
| 236 | "assignees": [], | |
| 237 | "blockedBy": [], | |
| 238 | "queued": false, | |
| 239 | "agent": "claude-code" | |
| 240 | } | |
| 241 | ], | |
| 242 | "notes": "Returns at most 100 issues, newest first. `commentCount` counts comments, not events such as \"opened #14 for this\"." | |
| 243 | }, | |
| 244 | "create_issue": { | |
| 245 | "request": { | |
| 246 | "title": "Greeting should name the caller", | |
| 247 | "body": "Take a name from the first argument; fall back to world.", | |
| 248 | "labels": [ | |
| 249 | "feature" | |
| 250 | ], | |
| 251 | "checks": [ | |
| 252 | "cargo test" | |
| 253 | ] | |
| 254 | }, | |
| 255 | "response": { | |
| 256 | "id": "iss_01m43shrzpfe49x74ga7sj1c6v", | |
| 257 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 258 | "number": 12, | |
| 259 | "title": "Greeting should name the caller", | |
| 260 | "body": "Take a name from the first argument; fall back to world.", | |
| 261 | "labels": [ | |
| 262 | "feature" | |
| 263 | ], | |
| 264 | "checks": [ | |
| 265 | "cargo test" | |
| 266 | ], | |
| 267 | "state": "open", | |
| 268 | "reason": null, | |
| 269 | "resolvedBy": null, | |
| 270 | "author": { | |
| 271 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 272 | "username": "syntaqx", | |
| 273 | "kind": "user", | |
| 274 | "verified": false, | |
| 275 | "workspaces": [] | |
| 276 | }, | |
| 277 | "createdAt": "2026-10-01T18:04:11.482Z", | |
| 278 | "updatedAt": "2026-10-01T18:04:11.482Z", | |
| 279 | "closedAt": null, | |
| 280 | "pullCount": 0, | |
| 281 | "commentCount": 0, | |
| 282 | "assignees": [], | |
| 283 | "blockedBy": [], | |
| 284 | "queued": false, | |
| 285 | "agent": null | |
| 286 | }, | |
| 287 | "notes": "Labels are lowercased. A label not used before is created." | |
| 288 | }, | |
| 289 | "get_issue": { | |
| 290 | "response": { | |
| 291 | "issue": { | |
| 292 | "id": "iss_01m43shrzpfe49x74ga7sj1c6v", | |
| 293 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 294 | "number": 12, | |
| 295 | "title": "Greeting should name the caller", | |
| 296 | "body": "Take a name from the first argument; fall back to world.", | |
| 297 | "labels": [ | |
| 298 | "feature" | |
| 299 | ], | |
| 300 | "checks": [ | |
| 301 | "cargo test" | |
| 302 | ], | |
| 303 | "state": "closed", | |
| 304 | "reason": "completed", | |
| 305 | "resolvedBy": 14, | |
| 306 | "author": { | |
| 307 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 308 | "username": "syntaqx", | |
| 309 | "kind": "user", | |
| 310 | "verified": false, | |
| 311 | "workspaces": [] | |
| 312 | }, | |
| 313 | "createdAt": "2026-10-01T18:04:11.482Z", | |
| 314 | "updatedAt": "2026-10-01T18:52:17.093Z", | |
| 315 | "closedAt": "2026-10-01T18:52:17.093Z", | |
| 316 | "pullCount": 2, | |
| 317 | "commentCount": 0, | |
| 318 | "assignees": [], | |
| 319 | "blockedBy": [], | |
| 320 | "queued": false, | |
| 321 | "agent": null | |
| 322 | }, | |
| 323 | "pulls": [ | |
| 324 | { | |
| 325 | "id": "pr_01m43sjq8tcz5rbm2a7k4d9e6w", | |
| 326 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 327 | "number": 13, | |
| 328 | "issue": 12, | |
| 329 | "title": "Greeting should name the caller", | |
| 330 | "body": null, | |
| 331 | "agent": "claude-code", | |
| 332 | "runtime": "external", | |
| 333 | "status": "closed", | |
| 334 | "fork": { | |
| 335 | "namespace": "pulls", | |
| 336 | "name": "pr_01m43sjq8tcz5rbm2a7k4d9e6w" | |
| 337 | }, | |
| 338 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 339 | "branch": null, | |
| 340 | "headCommit": null, | |
| 341 | "mergeBase": null, | |
| 342 | "mergedBy": null, | |
| 343 | "mergedAt": null, | |
| 344 | "supersededBy": 14, | |
| 345 | "checkStatus": null, | |
| 346 | "files": [], | |
| 347 | "assignees": [], | |
| 348 | "reviewers": [], | |
| 349 | "author": { | |
| 350 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 351 | "username": "syntaqx", | |
| 352 | "kind": "user", | |
| 353 | "verified": false, | |
| 354 | "workspaces": [] | |
| 355 | }, | |
| 356 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 357 | "updatedAt": "2026-10-01T18:20:02.117Z" | |
| 358 | }, | |
| 359 | { | |
| 360 | "id": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 361 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 362 | "number": 14, | |
| 363 | "issue": 12, | |
| 364 | "title": "Greeting should name the caller", | |
| 365 | "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".", | |
| 366 | "agent": "claude-code", | |
| 367 | "runtime": "external", | |
| 368 | "status": "merged", | |
| 369 | "fork": { | |
| 370 | "namespace": "pulls", | |
| 371 | "name": "pr_01m43smh3vexsr5pmp60qwv0vs" | |
| 372 | }, | |
| 373 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 374 | "branch": null, | |
| 375 | "headCommit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 376 | "mergeBase": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c", | |
| 377 | "mergedBy": "syntaqx", | |
| 378 | "mergedAt": "2026-10-01T18:52:17.093Z", | |
| 379 | "supersededBy": null, | |
| 380 | "checkStatus": "passed", | |
| 381 | "files": [ | |
| 382 | { | |
| 383 | "path": "src/main.rs", | |
| 384 | "additions": 6, | |
| 385 | "deletions": 2 | |
| 386 | } | |
| 387 | ], | |
| 388 | "assignees": [], | |
| 389 | "reviewers": [ | |
| 390 | "ana" | |
| 391 | ], | |
| 392 | "author": { | |
| 393 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 394 | "username": "syntaqx", | |
| 395 | "kind": "user", | |
| 396 | "verified": false, | |
| 397 | "workspaces": [] | |
| 398 | }, | |
| 399 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 400 | "updatedAt": "2026-10-01T18:52:17.093Z" | |
| 401 | } | |
| 402 | ], | |
| 403 | "comments": [ | |
| 404 | { | |
| 405 | "id": "cmt_01m43sr2b7d5f0j6k3n8p1q4v9", | |
| 406 | "kind": "event", | |
| 407 | "author": { | |
| 408 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 409 | "username": "syntaqx", | |
| 410 | "kind": "user", | |
| 411 | "verified": false, | |
| 412 | "workspaces": [] | |
| 413 | }, | |
| 414 | "body": "opened #14 for this", | |
| 415 | "path": null, | |
| 416 | "line": null, | |
| 417 | "verdict": null, | |
| 418 | "createdAt": "2026-10-01T18:20:02.141Z" | |
| 419 | } | |
| 420 | ] | |
| 421 | }, | |
| 422 | "notes": "A closed issue says how it was closed: `reason` is `completed` or `not_planned`, and `resolvedBy` is the number of the pull request whose merge closed it. Each pull request made for it is listed; one closed because another was merged has `supersededBy` set." | |
| 423 | }, | |
| 424 | "update_issue": { | |
| 425 | "request": { | |
| 426 | "labels": [ | |
| 427 | "feature", | |
| 428 | "good first issue" | |
| 429 | ], | |
| 430 | "assignees": [ | |
| 431 | "syntaqx" | |
| 432 | ] | |
| 433 | }, | |
| 434 | "response": { | |
| 435 | "id": "iss_01m43shrzpfe49x74ga7sj1c6v", | |
| 436 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 437 | "number": 12, | |
| 438 | "title": "Greeting should name the caller", | |
| 439 | "body": "Take a name from the first argument; fall back to world.", | |
| 440 | "labels": [ | |
| 441 | "feature", | |
| 442 | "good first issue" | |
| 443 | ], | |
| 444 | "checks": [ | |
| 445 | "cargo test" | |
| 446 | ], | |
| 447 | "state": "open", | |
| 448 | "reason": null, | |
| 449 | "resolvedBy": null, | |
| 450 | "author": { | |
| 451 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 452 | "username": "syntaqx", | |
| 453 | "kind": "user", | |
| 454 | "verified": false, | |
| 455 | "workspaces": [] | |
| 456 | }, | |
| 457 | "createdAt": "2026-10-01T18:04:11.482Z", | |
| 458 | "updatedAt": "2026-10-01T18:09:47.305Z", | |
| 459 | "closedAt": null, | |
| 460 | "pullCount": 0, | |
| 461 | "commentCount": 0, | |
| 462 | "assignees": [ | |
| 463 | "syntaqx" | |
| 464 | ], | |
| 465 | "blockedBy": [], | |
| 466 | "queued": false, | |
| 467 | "agent": null | |
| 468 | } | |
| 469 | }, | |
| 470 | "close_issue": { | |
| 471 | "request": { | |
| 472 | "reason": "not_planned" | |
| 473 | }, | |
| 474 | "response": { | |
| 475 | "id": "iss_01m43shrzpfe49x74ga7sj1c6v", | |
| 476 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 477 | "number": 12, | |
| 478 | "title": "Greeting should name the caller", | |
| 479 | "body": "Take a name from the first argument; fall back to world.", | |
| 480 | "labels": [ | |
| 481 | "feature" | |
| 482 | ], | |
| 483 | "checks": [ | |
| 484 | "cargo test" | |
| 485 | ], | |
| 486 | "state": "closed", | |
| 487 | "reason": "not_planned", | |
| 488 | "resolvedBy": null, | |
| 489 | "author": { | |
| 490 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 491 | "username": "syntaqx", | |
| 492 | "kind": "user", | |
| 493 | "verified": false, | |
| 494 | "workspaces": [] | |
| 495 | }, | |
| 496 | "createdAt": "2026-10-01T18:04:11.482Z", | |
| 497 | "updatedAt": "2026-10-01T19:30:00.214Z", | |
| 498 | "closedAt": "2026-10-01T19:30:00.214Z", | |
| 499 | "pullCount": 0, | |
| 500 | "commentCount": 0, | |
| 501 | "assignees": [], | |
| 502 | "blockedBy": [], | |
| 503 | "queued": false, | |
| 504 | "agent": null | |
| 505 | } | |
| 506 | }, | |
| 507 | "reopen_issue": { | |
| 508 | "response": { | |
| 509 | "id": "iss_01m43shrzpfe49x74ga7sj1c6v", | |
| 510 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 511 | "number": 12, | |
| 512 | "title": "Greeting should name the caller", | |
| 513 | "body": "Take a name from the first argument; fall back to world.", | |
| 514 | "labels": [ | |
| 515 | "feature" | |
| 516 | ], | |
| 517 | "checks": [ | |
| 518 | "cargo test" | |
| 519 | ], | |
| 520 | "state": "open", | |
| 521 | "reason": null, | |
| 522 | "resolvedBy": null, | |
| 523 | "author": { | |
| 524 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 525 | "username": "syntaqx", | |
| 526 | "kind": "user", | |
| 527 | "verified": false, | |
| 528 | "workspaces": [] | |
| 529 | }, | |
| 530 | "createdAt": "2026-10-01T18:04:11.482Z", | |
| 531 | "updatedAt": "2026-10-01T19:41:52.830Z", | |
| 532 | "closedAt": null, | |
| 533 | "pullCount": 0, | |
| 534 | "commentCount": 0, | |
| 535 | "assignees": [], | |
| 536 | "blockedBy": [], | |
| 537 | "queued": false, | |
| 538 | "agent": null | |
| 539 | } | |
| 540 | }, | |
| 541 | "assign_issue": { | |
| 542 | "request": { | |
| 543 | "instructions": "Keep the change to src/main.rs." | |
| 544 | }, | |
| 545 | "response": { | |
| 546 | "id": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 547 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 548 | "number": 14, | |
| 549 | "issue": 12, | |
| 550 | "title": "Greeting should name the caller", | |
| 551 | "body": null, | |
| 552 | "agent": "g1t-agent", | |
| 553 | "runtime": "hosted", | |
| 554 | "status": "draft", | |
| 555 | "fork": { | |
| 556 | "namespace": "pulls", | |
| 557 | "name": "pr_01m43smh3vexsr5pmp60qwv0vs" | |
| 558 | }, | |
| 559 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 560 | "branch": null, | |
| 561 | "headCommit": null, | |
| 562 | "mergeBase": null, | |
| 563 | "mergedBy": null, | |
| 564 | "mergedAt": null, | |
| 565 | "supersededBy": null, | |
| 566 | "checkStatus": null, | |
| 567 | "files": [], | |
| 568 | "assignees": [], | |
| 569 | "reviewers": [], | |
| 570 | "author": { | |
| 571 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 572 | "username": "syntaqx", | |
| 573 | "kind": "user", | |
| 574 | "verified": false, | |
| 575 | "workspaces": [] | |
| 576 | }, | |
| 577 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 578 | "updatedAt": "2026-10-01T18:20:02.117Z" | |
| 579 | }, | |
| 580 | "notes": "The response is the pull request the g1t agent opened, still a draft. Follow it with [get a pull request](/reference/api/pull-requests/get-pull-request/): `lifecycle` says what the agent is doing." | |
| 581 | }, | |
| 582 | "add_comment": { | |
| 583 | "request": { | |
| 584 | "body": "Should an empty name fall back to \"world\"?" | |
| 585 | }, | |
| 586 | "response": { | |
| 587 | "id": "cmt_01m43sv4c8e2g6j0m4q8t2x6a1", | |
| 588 | "kind": "comment", | |
| 589 | "author": { | |
| 590 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 591 | "username": "syntaqx", | |
| 592 | "kind": "user", | |
| 593 | "verified": true, | |
| 594 | "workspaces": [ | |
| 595 | { | |
| 596 | "slug": "syntaqx", | |
| 597 | "role": "owner" | |
| 598 | } | |
| 599 | ] | |
| 600 | }, | |
| 601 | "body": "Should an empty name fall back to \"world\"?", | |
| 602 | "path": null, | |
| 603 | "line": null, | |
| 604 | "verdict": null, | |
| 605 | "createdAt": "2026-10-01T18:12:30.551Z" | |
| 606 | } | |
| 607 | }, | |
| 608 | "list_labels": { | |
| 609 | "response": [ | |
| 610 | "bug", | |
| 611 | "feature", | |
| 612 | "docs", | |
| 613 | "chore", | |
| 614 | "question", | |
| 615 | "good first issue" | |
| 616 | ], | |
| 617 | "notes": "The five default labels come first, then the others used on the repository's issues, alphabetically." | |
| 618 | }, | |
| 619 | "plan_work": { | |
| 620 | "request": { | |
| 621 | "brief": "Greet people by name, from the command line and the web page." | |
| 622 | }, | |
| 623 | "response": { | |
| 624 | "planId": "pln_01m43s9c4e8g2j6m0q4t8x2b6d" | |
| 625 | } | |
| 626 | }, | |
| 627 | "get_plan": { | |
| 628 | "params": { | |
| 629 | "plan": "pln_01m43s9c4e8g2j6m0q4t8x2b6d" | |
| 630 | }, | |
| 631 | "response": { | |
| 632 | "id": "pln_01m43s9c4e8g2j6m0q4t8x2b6d", | |
| 633 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 634 | "brief": "Greet people by name, from the command line and the web page.", | |
| 635 | "status": "ready", | |
| 636 | "summary": "Name parsing first, then the two places that print the greeting.", | |
| 637 | "issues": [ | |
| 638 | { | |
| 639 | "title": "Greeting should name the caller", | |
| 640 | "body": "Accept an optional name in `greet()` and use it.", | |
| 641 | "labels": [ | |
| 642 | "feature" | |
| 643 | ], | |
| 644 | "checks": [ | |
| 645 | "cargo test" | |
| 646 | ], | |
| 647 | "files": [ | |
| 648 | "src/greet.rs" | |
| 649 | ], | |
| 650 | "dependsOn": [], | |
| 651 | "number": null | |
| 652 | }, | |
| 653 | { | |
| 654 | "title": "Show the caller's name on the web page", | |
| 655 | "body": "Read `?name=` and pass it to `greet()`.", | |
| 656 | "labels": [ | |
| 657 | "feature" | |
| 658 | ], | |
| 659 | "checks": [ | |
| 660 | "cargo test" | |
| 661 | ], | |
| 662 | "files": [ | |
| 663 | "src/web.rs" | |
| 664 | ], | |
| 665 | "dependsOn": [ | |
| 666 | 1 | |
| 667 | ], | |
| 668 | "number": null | |
| 669 | } | |
| 670 | ], | |
| 671 | "error": null, | |
| 672 | "author": { | |
| 673 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 674 | "username": "syntaqx", | |
| 675 | "kind": "user", | |
| 676 | "verified": false, | |
| 677 | "workspaces": [] | |
| 678 | }, | |
| 679 | "createdAt": "2026-10-01T17:58:40.006Z", | |
| 680 | "finishedAt": "2026-10-01T18:01:12.774Z", | |
| 681 | "progress": [], | |
| 682 | "exchanges": [] | |
| 683 | }, | |
| 684 | "notes": "A plan still `planning` after 20 minutes is reported as `failed`. `progress` follows each issue once the plan is applied." | |
| 685 | }, | |
| 686 | "apply_plan": { | |
| 687 | "params": { | |
| 688 | "plan": "pln_01m43s9c4e8g2j6m0q4t8x2b6d" | |
| 689 | }, | |
| 690 | "request": { | |
| 691 | "assign": true | |
| 692 | }, | |
| 693 | "response": { | |
| 694 | "id": "pln_01m43s9c4e8g2j6m0q4t8x2b6d", | |
| 695 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 696 | "brief": "Greet people by name, from the command line and the web page.", | |
| 697 | "status": "applied", | |
| 698 | "summary": "Name parsing first, then the two places that print the greeting.", | |
| 699 | "issues": [ | |
| 700 | { | |
| 701 | "title": "Greeting should name the caller", | |
| 702 | "body": "Accept an optional name in `greet()` and use it.", | |
| 703 | "labels": [ | |
| 704 | "feature" | |
| 705 | ], | |
| 706 | "checks": [ | |
| 707 | "cargo test" | |
| 708 | ], | |
| 709 | "files": [ | |
| 710 | "src/greet.rs" | |
| 711 | ], | |
| 712 | "dependsOn": [], | |
| 713 | "number": 12 | |
| 714 | }, | |
| 715 | { | |
| 716 | "title": "Show the caller's name on the web page", | |
| 717 | "body": "Read `?name=` and pass it to `greet()`.", | |
| 718 | "labels": [ | |
| 719 | "feature" | |
| 720 | ], | |
| 721 | "checks": [ | |
| 722 | "cargo test" | |
| 723 | ], | |
| 724 | "files": [ | |
| 725 | "src/web.rs" | |
| 726 | ], | |
| 727 | "dependsOn": [ | |
| 728 | 1 | |
| 729 | ], | |
| 730 | "number": 13 | |
| 731 | } | |
| 732 | ], | |
| 733 | "error": null, | |
| 734 | "author": { | |
| 735 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 736 | "username": "syntaqx", | |
| 737 | "kind": "user", | |
| 738 | "verified": false, | |
| 739 | "workspaces": [] | |
| 740 | }, | |
| 741 | "createdAt": "2026-10-01T17:58:40.006Z", | |
| 742 | "finishedAt": "2026-10-01T18:01:12.774Z", | |
| 743 | "progress": [], | |
| 744 | "exchanges": [] | |
| 745 | }, | |
| 746 | "notes": "Each opened issue's `number` is filled in. Issues left out with `keep` stay `null`." | |
| 747 | }, | |
| 748 | "list_pull_requests": { | |
| 749 | "query": { | |
| 750 | "state": "open" | |
| 751 | }, | |
| 752 | "response": [ | |
| 753 | { | |
| 754 | "id": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 755 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 756 | "number": 14, | |
| 757 | "issue": 12, | |
| 758 | "title": "Greeting should name the caller", | |
| 759 | "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".", | |
| 760 | "agent": "claude-code", | |
| 761 | "runtime": "external", | |
| 762 | "status": "open", | |
| 763 | "fork": { | |
| 764 | "namespace": "pulls", | |
| 765 | "name": "pr_01m43smh3vexsr5pmp60qwv0vs" | |
| 766 | }, | |
| 767 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 768 | "branch": null, | |
| 769 | "headCommit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 770 | "mergeBase": null, | |
| 771 | "mergedBy": null, | |
| 772 | "mergedAt": null, | |
| 773 | "supersededBy": null, | |
| 774 | "checkStatus": "passed", | |
| 775 | "files": [ | |
| 776 | { | |
| 777 | "path": "src/main.rs", | |
| 778 | "additions": 6, | |
| 779 | "deletions": 2 | |
| 780 | } | |
| 781 | ], | |
| 782 | "assignees": [], | |
| 783 | "reviewers": [ | |
| 784 | "ana" | |
| 785 | ], | |
| 786 | "author": { | |
| 787 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 788 | "username": "syntaqx", | |
| 789 | "kind": "user", | |
| 790 | "verified": false, | |
| 791 | "workspaces": [] | |
| 792 | }, | |
| 793 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 794 | "updatedAt": "2026-10-01T18:35:44.902Z" | |
| 795 | } | |
| 796 | ], | |
| 797 | "notes": "Returns at most 100 pull requests, newest first. `checkStatus` is `queued`, `running`, `passed`, `failed`, `errored`, or `null` when no checks have run against the head." | |
| 798 | }, | |
| 799 | "create_pull_request": { | |
| 800 | "request": { | |
| 801 | "issue": 12, | |
| 802 | "agent": "claude-code" | |
| 803 | }, | |
| 804 | "response": { | |
| 805 | "pull": { | |
| 806 | "id": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 807 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 808 | "number": 14, | |
| 809 | "issue": 12, | |
| 810 | "title": "Greeting should name the caller", | |
| 811 | "body": null, | |
| 812 | "agent": "claude-code", | |
| 813 | "runtime": "external", | |
| 814 | "status": "draft", | |
| 815 | "fork": { | |
| 816 | "namespace": "pulls", | |
| 817 | "name": "pr_01m43smh3vexsr5pmp60qwv0vs" | |
| 818 | }, | |
| 819 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 820 | "branch": null, | |
| 821 | "headCommit": null, | |
| 822 | "mergeBase": null, | |
| 823 | "mergedBy": null, | |
| 824 | "mergedAt": null, | |
| 825 | "supersededBy": null, | |
| 826 | "checkStatus": null, | |
| 827 | "files": [], | |
| 828 | "assignees": [], | |
| 829 | "reviewers": [], | |
| 830 | "author": { | |
| 831 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 832 | "username": "syntaqx", | |
| 833 | "kind": "user", | |
| 834 | "verified": false, | |
| 835 | "workspaces": [] | |
| 836 | }, | |
| 837 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 838 | "updatedAt": "2026-10-01T18:20:02.117Z" | |
| 839 | }, | |
| 840 | "git": { | |
| 841 | "remote": "https://g1t.sh/pulls/pr_01m43smh3vexsr5pmp60qwv0vs.git", | |
| 842 | "username": "syntaqx", | |
| 843 | "password": "your g1t access token" | |
| 844 | } | |
| 845 | }, | |
| 846 | "notes": "`title` defaults to the issue's title, and is required when there is no `issue`. Push to `git.remote` with your username and an access token as the password.\n\nSend `branch` to open the pull request from a branch already pushed to the repository. No fork is made, `fork` is `null`, `git.remote` is the repository itself, and the pull request is `open` at once." | |
| 847 | }, | |
| 848 | "get_pull_request": { | |
| 849 | "response": { | |
| 850 | "pull": { | |
| 851 | "id": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 852 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 853 | "number": 14, | |
| 854 | "issue": 12, | |
| 855 | "title": "Greeting should name the caller", | |
| 856 | "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".", | |
| 857 | "agent": "claude-code", | |
| 858 | "runtime": "external", | |
| 859 | "status": "open", | |
| 860 | "fork": { | |
| 861 | "namespace": "pulls", | |
| 862 | "name": "pr_01m43smh3vexsr5pmp60qwv0vs" | |
| 863 | }, | |
| 864 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 865 | "branch": null, | |
| 866 | "headCommit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 867 | "mergeBase": null, | |
| 868 | "mergedBy": null, | |
| 869 | "mergedAt": null, | |
| 870 | "supersededBy": null, | |
| 871 | "checkStatus": "passed", | |
| 872 | "files": [ | |
| 873 | { | |
| 874 | "path": "src/main.rs", | |
| 875 | "additions": 6, | |
| 876 | "deletions": 2 | |
| 877 | } | |
| 878 | ], | |
| 879 | "assignees": [], | |
| 880 | "reviewers": [ | |
| 881 | "ana" | |
| 882 | ], | |
| 883 | "author": { | |
| 884 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 885 | "username": "syntaqx", | |
| 886 | "kind": "user", | |
| 887 | "verified": false, | |
| 888 | "workspaces": [] | |
| 889 | }, | |
| 890 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 891 | "updatedAt": "2026-10-01T18:35:44.902Z" | |
| 892 | }, | |
| 893 | "issue": { | |
| 894 | "id": "iss_01m43shrzpfe49x74ga7sj1c6v", | |
| 895 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 896 | "number": 12, | |
| 897 | "title": "Greeting should name the caller", | |
| 898 | "body": "Take a name from the first argument; fall back to world.", | |
| 899 | "labels": [ | |
| 900 | "feature" | |
| 901 | ], | |
| 902 | "checks": [ | |
| 903 | "cargo test" | |
| 904 | ], | |
| 905 | "state": "open", | |
| 906 | "reason": null, | |
| 907 | "resolvedBy": null, | |
| 908 | "author": { | |
| 909 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 910 | "username": "syntaqx", | |
| 911 | "kind": "user", | |
| 912 | "verified": false, | |
| 913 | "workspaces": [] | |
| 914 | }, | |
| 915 | "createdAt": "2026-10-01T18:04:11.482Z", | |
| 916 | "updatedAt": "2026-10-01T18:20:02.117Z", | |
| 917 | "closedAt": null, | |
| 918 | "pullCount": 1, | |
| 919 | "commentCount": 0, | |
| 920 | "assignees": [], | |
| 921 | "blockedBy": [], | |
| 922 | "queued": false, | |
| 923 | "agent": "claude-code" | |
| 924 | }, | |
| 925 | "comments": [ | |
| 926 | { | |
| 927 | "id": "cmt_01m43st6d0f4h8k2n6r0v4z8c2", | |
| 928 | "kind": "event", | |
| 929 | "author": { | |
| 930 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 931 | "username": "syntaqx", | |
| 932 | "kind": "user", | |
| 933 | "verified": false, | |
| 934 | "workspaces": [] | |
| 935 | }, | |
| 936 | "body": "marked this ready for review", | |
| 937 | "path": null, | |
| 938 | "line": null, | |
| 939 | "verdict": null, | |
| 940 | "createdAt": "2026-10-01T18:33:10.420Z" | |
| 941 | } | |
| 942 | ], | |
| 943 | "checks": { | |
| 944 | "id": "chk_01m43sw8e2g6j0m4q8t2x6a0c4", | |
| 945 | "headCommit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 946 | "status": "passed", | |
| 947 | "results": [ | |
| 948 | { | |
| 949 | "command": "cargo test", | |
| 950 | "passed": true, | |
| 951 | "exitCode": 0, | |
| 952 | "output": "test result: ok. 3 passed; 0 failed", | |
| 953 | "durationMs": 18234 | |
| 954 | } | |
| 955 | ], | |
| 956 | "error": null, | |
| 957 | "createdAt": "2026-10-01T18:33:11.002Z", | |
| 958 | "finishedAt": "2026-10-01T18:35:44.902Z" | |
| 959 | }, | |
| 960 | "overlaps": [], | |
| 961 | "behind": false, | |
| 962 | "review_pending": false, | |
| 963 | "lifecycle": null, | |
| 964 | "landing": false, | |
| 965 | "stalled": null, | |
| 966 | "messages": [ | |
| 967 | { | |
| 968 | "id": "msg_01m43tx5egeh4t3f9zcnjenqvz", | |
| 969 | "author": "syntaqx", | |
| 970 | "body": "Keep \"world\" as the default when no name is given.", | |
| 971 | "createdAt": "2026-10-01T18:25:00.310Z", | |
| 972 | "deliveredAt": "2026-10-01T18:25:31.007Z", | |
| 973 | "kind": "message", | |
| 974 | "fromNumber": null, | |
| 975 | "toNumber": 14, | |
| 976 | "answer": null, | |
| 977 | "declined": false | |
| 978 | } | |
| 979 | ], | |
| 980 | "statuses": [] | |
| 981 | }, | |
| 982 | "notes": "| Field | |\n| --- | --- |\n| `pull.files` | The files it changes, with lines added and removed. |\n| `checks` | The latest run of the acceptance checks against its head, with each command's output. |\n| `overlaps` | Other pull requests in progress that change the same files. |\n| `behind` | Whether the default branch has moved since it was made. |\n| `landing` | Whether it is being brought up to date to land. |\n| `lifecycle` | For a pull request the g1t agent is seeing through: its stage, such as `working`, `checking`, `reviewing` or `needs_you`. |\n| `comments` | Comments, reviews and events, with `path`, `line` and `verdict`. |\n| `messages` | Messages sent to the agent working on it. |\n| `statuses` | Commit statuses reported for its head, such as workflow runs. |\n\nChecks are started by g1t, not through the API. They run when a pull request becomes ready for review and again when its head moves." | |
| 983 | }, | |
| 984 | "get_pull_request_changes": { | |
| 985 | "response": { | |
| 986 | "base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c", | |
| 987 | "head": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 988 | "files": [ | |
| 989 | { | |
| 990 | "path": "src/main.rs", | |
| 991 | "status": "modified", | |
| 992 | "additions": 1, | |
| 993 | "deletions": 1, | |
| 994 | "binary": false, | |
| 995 | "hunks": [ | |
| 996 | { | |
| 997 | "lines": [ | |
| 998 | { | |
| 999 | "kind": "context", | |
| 1000 | "old": 3, | |
| 1001 | "new": 3, | |
| 1002 | "text": "fn main() {" | |
| 1003 | }, | |
| 1004 | { | |
| 1005 | "kind": "delete", | |
| 1006 | "old": 4, | |
| 1007 | "new": null, | |
| 1008 | "text": " println!(\"Hello, world!\");" | |
| 1009 | }, | |
| 1010 | { | |
| 1011 | "kind": "add", | |
| 1012 | "old": null, | |
| 1013 | "new": 4, | |
| 1014 | "text": " println!(\"Hello, {}!\", std::env::args().nth(1).unwrap_or(\"world\".into()));" | |
| 1015 | }, | |
| 1016 | { | |
| 1017 | "kind": "context", | |
| 1018 | "old": 5, | |
| 1019 | "new": 5, | |
| 1020 | "text": "}" | |
| 1021 | } | |
| 1022 | ] | |
| 1023 | } | |
| 1024 | ] | |
| 1025 | } | |
| 1026 | ], | |
| 1027 | "truncated": false | |
| 1028 | }, | |
| 1029 | "notes": "A file's `status` is `added`, `modified` or `deleted`. A binary file has no `hunks`. In a line, `old` is `null` when it was added and `new` is `null` when it was deleted." | |
| 1030 | }, | |
| 1031 | "mark_pull_request_ready": { | |
| 1032 | "request": { | |
| 1033 | "summary": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\"." | |
| 1034 | }, | |
| 1035 | "response": { | |
| 1036 | "id": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 1037 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 1038 | "number": 14, | |
| 1039 | "issue": 12, | |
| 1040 | "title": "Greeting should name the caller", | |
| 1041 | "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".", | |
| 1042 | "agent": "claude-code", | |
| 1043 | "runtime": "external", | |
| 1044 | "status": "open", | |
| 1045 | "fork": { | |
| 1046 | "namespace": "pulls", | |
| 1047 | "name": "pr_01m43smh3vexsr5pmp60qwv0vs" | |
| 1048 | }, | |
| 1049 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 1050 | "branch": null, | |
| 1051 | "headCommit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1052 | "mergeBase": null, | |
| 1053 | "mergedBy": null, | |
| 1054 | "mergedAt": null, | |
| 1055 | "supersededBy": null, | |
| 1056 | "checkStatus": null, | |
| 1057 | "files": [ | |
| 1058 | { | |
| 1059 | "path": "src/main.rs", | |
| 1060 | "additions": 6, | |
| 1061 | "deletions": 2 | |
| 1062 | } | |
| 1063 | ], | |
| 1064 | "assignees": [], | |
| 1065 | "reviewers": [], | |
| 1066 | "author": { | |
| 1067 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 1068 | "username": "syntaqx", | |
| 1069 | "kind": "user", | |
| 1070 | "verified": false, | |
| 1071 | "workspaces": [] | |
| 1072 | }, | |
| 1073 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 1074 | "updatedAt": "2026-10-01T18:33:10.398Z" | |
| 1075 | } | |
| 1076 | }, | |
| 1077 | "review_pull_request": { | |
| 1078 | "request": { | |
| 1079 | "verdict": "request_changes", | |
| 1080 | "body": "Trim the name before using it." | |
| 1081 | }, | |
| 1082 | "response": { | |
| 1083 | "id": "cmt_01m43sx9f3h7k1n5r9v3z7d1g5", | |
| 1084 | "kind": "comment", | |
| 1085 | "author": { | |
| 1086 | "id": "usr_01kz9d3f7h1k5n9r3v7z1c5g9b", | |
| 1087 | "username": "ana", | |
| 1088 | "kind": "user", | |
| 1089 | "verified": true, | |
| 1090 | "workspaces": [ | |
| 1091 | { | |
| 1092 | "slug": "syntaqx", | |
| 1093 | "role": "member" | |
| 1094 | } | |
| 1095 | ] | |
| 1096 | }, | |
| 1097 | "body": "Trim the name before using it.", | |
| 1098 | "path": null, | |
| 1099 | "line": null, | |
| 1100 | "verdict": "request_changes", | |
| 1101 | "createdAt": "2026-10-01T18:40:05.019Z" | |
| 1102 | } | |
| 1103 | }, | |
| 1104 | "merge_pull_request": { | |
| 1105 | "request": { | |
| 1106 | "keep_issue_open": false | |
| 1107 | }, | |
| 1108 | "response": { | |
| 1109 | "id": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 1110 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 1111 | "number": 14, | |
| 1112 | "issue": 12, | |
| 1113 | "title": "Greeting should name the caller", | |
| 1114 | "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".", | |
| 1115 | "agent": "claude-code", | |
| 1116 | "runtime": "external", | |
| 1117 | "status": "merged", | |
| 1118 | "fork": { | |
| 1119 | "namespace": "pulls", | |
| 1120 | "name": "pr_01m43smh3vexsr5pmp60qwv0vs" | |
| 1121 | }, | |
| 1122 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 1123 | "branch": null, | |
| 1124 | "headCommit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1125 | "mergeBase": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c", | |
| 1126 | "mergedBy": "syntaqx", | |
| 1127 | "mergedAt": "2026-10-01T18:52:17.093Z", | |
| 1128 | "supersededBy": null, | |
| 1129 | "checkStatus": "passed", | |
| 1130 | "files": [ | |
| 1131 | { | |
| 1132 | "path": "src/main.rs", | |
| 1133 | "additions": 6, | |
| 1134 | "deletions": 2 | |
| 1135 | } | |
| 1136 | ], | |
| 1137 | "assignees": [], | |
| 1138 | "reviewers": [ | |
| 1139 | "ana" | |
| 1140 | ], | |
| 1141 | "author": { | |
| 1142 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 1143 | "username": "syntaqx", | |
| 1144 | "kind": "user", | |
| 1145 | "verified": false, | |
| 1146 | "workspaces": [] | |
| 1147 | }, | |
| 1148 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 1149 | "updatedAt": "2026-10-01T18:52:17.093Z" | |
| 1150 | }, | |
| 1151 | "notes": "A draft, or one whose checks have not passed, answers `409`. A pull request still `open` in the response has not landed yet: `landing` is true on it while it is brought up to date, and [get the merge queue](/reference/api/pull-requests/get-merge-queue/) shows it waiting in the [merge queue](/guides/merge-queue/). Merging records the pull request in the issue's `resolvedBy` and sets `supersededBy` on the pull requests it closes." | |
| 1152 | }, | |
| 1153 | "close_pull_request": { | |
| 1154 | "response": { | |
| 1155 | "id": "pr_01m43smh3vexsr5pmp60qwv0vs", | |
| 1156 | "repoId": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", | |
| 1157 | "number": 14, | |
| 1158 | "issue": 12, | |
| 1159 | "title": "Greeting should name the caller", | |
| 1160 | "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".", | |
| 1161 | "agent": "claude-code", | |
| 1162 | "runtime": "external", | |
| 1163 | "status": "closed", | |
| 1164 | "fork": { | |
| 1165 | "namespace": "pulls", | |
| 1166 | "name": "pr_01m43smh3vexsr5pmp60qwv0vs" | |
| 1167 | }, | |
| 1168 | "forkRepoId": "rep_01m43smh5xd7aw2kq9tv0b4c8e", | |
| 1169 | "branch": null, | |
| 1170 | "headCommit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1171 | "mergeBase": null, | |
| 1172 | "mergedBy": null, | |
| 1173 | "mergedAt": null, | |
| 1174 | "supersededBy": null, | |
| 1175 | "checkStatus": null, | |
| 1176 | "files": [ | |
| 1177 | { | |
| 1178 | "path": "src/main.rs", | |
| 1179 | "additions": 6, | |
| 1180 | "deletions": 2 | |
| 1181 | } | |
| 1182 | ], | |
| 1183 | "assignees": [], | |
| 1184 | "reviewers": [], | |
| 1185 | "author": { | |
| 1186 | "id": "usr_01kkntcg1eeb98j62xjm7eh09p", | |
| 1187 | "username": "syntaqx", | |
| 1188 | "kind": "user", | |
| 1189 | "verified": false, | |
| 1190 | "workspaces": [] | |
| 1191 | }, | |
| 1192 | "createdAt": "2026-10-01T18:20:02.117Z", | |
| 1193 | "updatedAt": "2026-10-01T19:02:48.760Z" | |
| 1194 | } | |
| 1195 | }, | |
| 1196 | "get_merge_queue": { | |
| 1197 | "response": { | |
| 1198 | "enabled": true, | |
| 1199 | "active": [ | |
| 1200 | { | |
| 1201 | "id": "qen_01m43rn0qsft1tpap1awkewzbb", | |
| 1202 | "number": 14, | |
| 1203 | "title": "Greeting should name the caller", | |
| 1204 | "agent": "claude-code", | |
| 1205 | "state": "testing", | |
| 1206 | "ahead": [], | |
| 1207 | "baseCommit": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c", | |
| 1208 | "combinedCommit": null, | |
| 1209 | "error": null, | |
| 1210 | "results": [], | |
| 1211 | "enqueuedBy": "syntaqx", | |
| 1212 | "createdAt": "2026-10-04T15:31:20.441Z", | |
| 1213 | "finishedAt": null | |
| 1214 | } | |
| 1215 | ], | |
| 1216 | "recent": [ | |
| 1217 | { | |
| 1218 | "id": "qen_01m43khqjmeb5a1magayrnk63z", | |
| 1219 | "number": 11, | |
| 1220 | "title": "Fix trailing newline in greeting", | |
| 1221 | "agent": "g1t-agent", | |
| 1222 | "state": "landed", | |
| 1223 | "ahead": [], | |
| 1224 | "baseCommit": "4b1d7e9c2a5f8e3d6c0b9a7e5d3c1b8a6f4e2d0c", | |
| 1225 | "combinedCommit": "c3e8a1f6d4b2097e5c3a1f8d6b4e2c0a9f7d5b3e", | |
| 1226 | "error": null, | |
| 1227 | "results": [ | |
| 1228 | { | |
| 1229 | "command": "cargo test", | |
| 1230 | "passed": true, | |
| 1231 | "exitCode": 0, | |
| 1232 | "output": "test result: ok. 12 passed; 0 failed\n", | |
| 1233 | "durationMs": 48211 | |
| 1234 | } | |
| 1235 | ], | |
| 1236 | "enqueuedBy": "g1t", | |
| 1237 | "createdAt": "2026-10-04T14:02:09.876Z", | |
| 1238 | "finishedAt": "2026-10-04T14:09:55.102Z" | |
| 1239 | } | |
| 1240 | ] | |
| 1241 | }, | |
| 1242 | "notes": "An entry's `state` is `waiting`, `testing`, `passed`, `failed`, `landed` or `removed`. `active` is in queue order; `recent` holds at most 20, newest first." | |
| 1243 | }, | |
| 1244 | "message_agent": { | |
| 1245 | "request": { | |
| 1246 | "body": "Keep \"world\" as the default when no name is given." | |
| 1247 | }, | |
| 1248 | "response": { | |
| 1249 | "id": "msg_01m43tx5egeh4t3f9zcnjenqvz", | |
| 1250 | "author": "syntaqx", | |
| 1251 | "body": "Keep \"world\" as the default when no name is given.", | |
| 1252 | "createdAt": "2026-10-01T18:25:00.310Z", | |
| 1253 | "deliveredAt": null, | |
| 1254 | "kind": "message", | |
| 1255 | "fromNumber": null, | |
| 1256 | "toNumber": 14, | |
| 1257 | "answer": null, | |
| 1258 | "declined": false | |
| 1259 | }, | |
| 1260 | "notes": "The response is the message. `deliveredAt` is set once the agent has read it." | |
| 1261 | }, | |
| 1262 | "answer_message": { | |
| 1263 | "params": { | |
| 1264 | "id": "msg_01m43t66tde8hs2vpxhh3v8tqw" | |
| 1265 | }, | |
| 1266 | "request": { | |
| 1267 | "body": "No. greet() keeps its name; only greet_named() is added." | |
| 1268 | }, | |
| 1269 | "response": { | |
| 1270 | "id": "msg_01m43t66tde8hs2vpxhh3v8tqw", | |
| 1271 | "author": "g1t-agent", | |
| 1272 | "body": "Are you renaming greet() in src/lib.rs? I need to call it from #16.", | |
| 1273 | "createdAt": "2026-10-01T18:58:12.301Z", | |
| 1274 | "deliveredAt": "2026-10-01T18:58:40.117Z", | |
| 1275 | "kind": "question", | |
| 1276 | "fromNumber": 16, | |
| 1277 | "toNumber": 14, | |
| 1278 | "answer": "No. greet() keeps its name; only greet_named() is added.", | |
| 1279 | "declined": false | |
| 1280 | }, | |
| 1281 | "notes": "The response is the question or handoff that was answered, with `answer` and `declined` filled in." | |
| 1282 | }, | |
| 1283 | "take_messages": { | |
| 1284 | "response": [ | |
| 1285 | { | |
| 1286 | "id": "msg_01m43tx5egeh4t3f9zcnjenqvz", | |
| 1287 | "author": "syntaqx", | |
| 1288 | "body": "Keep \"world\" as the default when no name is given.", | |
| 1289 | "createdAt": "2026-10-01T18:25:00.310Z", | |
| 1290 | "deliveredAt": "2026-10-01T18:25:31.007Z", | |
| 1291 | "kind": "message", | |
| 1292 | "fromNumber": null, | |
| 1293 | "toNumber": 14, | |
| 1294 | "answer": null, | |
| 1295 | "declined": false | |
| 1296 | } | |
| 1297 | ], | |
| 1298 | "notes": "Only a g1t agent's token can take messages. They come oldest first, and each is marked delivered." | |
| 1299 | }, | |
| 1300 | "read_session": { | |
| 1301 | "query": { | |
| 1302 | "after": 0 | |
| 1303 | }, | |
| 1304 | "response": [ | |
| 1305 | { | |
| 1306 | "seq": 1, | |
| 1307 | "kind": "prompt", | |
| 1308 | "text": "Make the greeting name the caller (issue #12).", | |
| 1309 | "tool": null, | |
| 1310 | "commit": null, | |
| 1311 | "at": "2026-10-01T18:21:00.004Z" | |
| 1312 | }, | |
| 1313 | { | |
| 1314 | "seq": 2, | |
| 1315 | "kind": "tool_call", | |
| 1316 | "text": "cargo test", | |
| 1317 | "tool": "bash", | |
| 1318 | "commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1319 | "at": "2026-10-01T18:30:12.660Z" | |
| 1320 | } | |
| 1321 | ] | |
| 1322 | }, | |
| 1323 | "record_session": { | |
| 1324 | "request": { | |
| 1325 | "entries": [ | |
| 1326 | { | |
| 1327 | "kind": "message", | |
| 1328 | "text": "Reading src/main.rs." | |
| 1329 | }, | |
| 1330 | { | |
| 1331 | "kind": "tool_call", | |
| 1332 | "text": "cargo test", | |
| 1333 | "tool": "bash" | |
| 1334 | } | |
| 1335 | ] | |
| 1336 | }, | |
| 1337 | "response": { | |
| 1338 | "count": 2 | |
| 1339 | }, | |
| 1340 | "notes": "Up to 200 entries can be appended per request. Each is recorded against the pull request's head commit at the time. See [sessions and why-blame](/guides/why-blame/)." | |
| 1341 | }, | |
| 1342 | "list_workflows": { | |
| 1343 | "response": [ | |
| 1344 | { | |
| 1345 | "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1346 | "path": ".g1t/workflows/ci.yml", | |
| 1347 | "name": "CI", | |
| 1348 | "events": [ | |
| 1349 | "push", | |
| 1350 | "pull_request", | |
| 1351 | "workflow_dispatch" | |
| 1352 | ], | |
| 1353 | "state": "active", | |
| 1354 | "error": null, | |
| 1355 | "notes": [ | |
| 1356 | { | |
| 1357 | "severity": "unsupported", | |
| 1358 | "job": "test", | |
| 1359 | "message": "`services` containers (such as a database) are not started on g1t yet." | |
| 1360 | } | |
| 1361 | ], | |
| 1362 | "dispatch": { | |
| 1363 | "debug": { | |
| 1364 | "description": "Verbose logs", | |
| 1365 | "type": "boolean", | |
| 1366 | "default": false | |
| 1367 | } | |
| 1368 | }, | |
| 1369 | "lastRun": { | |
| 1370 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1371 | "workflowId": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1372 | "path": ".g1t/workflows/ci.yml", | |
| 1373 | "name": "CI", | |
| 1374 | "title": "Greeting should name the caller", | |
| 1375 | "number": 12, | |
| 1376 | "attempt": 1, | |
| 1377 | "event": "push", | |
| 1378 | "ref": "refs/heads/main", | |
| 1379 | "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1380 | "pull": null, | |
| 1381 | "status": "completed", | |
| 1382 | "conclusion": "success", | |
| 1383 | "error": null, | |
| 1384 | "actor": "syntaqx", | |
| 1385 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 1386 | "startedAt": "2026-10-04T15:42:09.020Z", | |
| 1387 | "finishedAt": "2026-10-04T15:44:31.877Z" | |
| 1388 | } | |
| 1389 | }, | |
| 1390 | { | |
| 1391 | "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq", | |
| 1392 | "path": ".g1t/workflows/nightly.yml", | |
| 1393 | "name": "Nightly", | |
| 1394 | "events": [ | |
| 1395 | "schedule" | |
| 1396 | ], | |
| 1397 | "state": "disabled", | |
| 1398 | "error": null, | |
| 1399 | "notes": [], | |
| 1400 | "dispatch": null, | |
| 1401 | "lastRun": null | |
| 1402 | } | |
| 1403 | ], | |
| 1404 | "notes": "`state` is `active` or `disabled`. `dispatch` holds the `workflow_dispatch` inputs, or is `null` when the workflow cannot be run by hand. See [GitHub Actions](/guides/actions/)." | |
| 1405 | }, | |
| 1406 | "list_workflow_runs": { | |
| 1407 | "query": { | |
| 1408 | "workflow": "ci.yml", | |
| 1409 | "branch": "main", | |
| 1410 | "per_page": 20 | |
| 1411 | }, | |
| 1412 | "response": [ | |
| 1413 | { | |
| 1414 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1415 | "workflowId": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1416 | "path": ".g1t/workflows/ci.yml", | |
| 1417 | "name": "CI", | |
| 1418 | "title": "Greeting should name the caller", | |
| 1419 | "number": 12, | |
| 1420 | "attempt": 1, | |
| 1421 | "event": "push", | |
| 1422 | "ref": "refs/heads/main", | |
| 1423 | "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1424 | "pull": null, | |
| 1425 | "status": "completed", | |
| 1426 | "conclusion": "success", | |
| 1427 | "error": null, | |
| 1428 | "actor": "syntaqx", | |
| 1429 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 1430 | "startedAt": "2026-10-04T15:42:09.020Z", | |
| 1431 | "finishedAt": "2026-10-04T15:44:31.877Z" | |
| 1432 | } | |
| 1433 | ], | |
| 1434 | "notes": "A run's `status` is `queued`, `pending` (waiting for its concurrency group), `in_progress` or `completed`; `conclusion` is set once it completes." | |
| 1435 | }, | |
| 1436 | "list_runs_of_workflow": { | |
| 1437 | "params": { | |
| 1438 | "workflow": "ci.yml" | |
| 1439 | }, | |
| 1440 | "query": { | |
| 1441 | "branch": "main", | |
| 1442 | "per_page": 20 | |
| 1443 | }, | |
| 1444 | "response": [ | |
| 1445 | { | |
| 1446 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1447 | "workflowId": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1448 | "path": ".g1t/workflows/ci.yml", | |
| 1449 | "name": "CI", | |
| 1450 | "title": "Greeting should name the caller", | |
| 1451 | "number": 12, | |
| 1452 | "attempt": 1, | |
| 1453 | "event": "push", | |
| 1454 | "ref": "refs/heads/main", | |
| 1455 | "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1456 | "pull": null, | |
| 1457 | "status": "completed", | |
| 1458 | "conclusion": "success", | |
| 1459 | "error": null, | |
| 1460 | "actor": "syntaqx", | |
| 1461 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 1462 | "startedAt": "2026-10-04T15:42:09.020Z", | |
| 1463 | "finishedAt": "2026-10-04T15:44:31.877Z" | |
| 1464 | } | |
| 1465 | ] | |
| 1466 | }, | |
| 1467 | "get_workflow_run": { | |
| 1468 | "params": { | |
| 1469 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr" | |
| 1470 | }, | |
| 1471 | "response": { | |
| 1472 | "run": { | |
| 1473 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1474 | "workflowId": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1475 | "path": ".g1t/workflows/ci.yml", | |
| 1476 | "name": "CI", | |
| 1477 | "title": "Greeting should name the caller", | |
| 1478 | "number": 12, | |
| 1479 | "attempt": 1, | |
| 1480 | "event": "push", | |
| 1481 | "ref": "refs/heads/main", | |
| 1482 | "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1483 | "pull": null, | |
| 1484 | "status": "completed", | |
| 1485 | "conclusion": "failure", | |
| 1486 | "error": null, | |
| 1487 | "actor": "syntaqx", | |
| 1488 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 1489 | "startedAt": "2026-10-04T15:42:09.020Z", | |
| 1490 | "finishedAt": "2026-10-04T15:44:31.877Z" | |
| 1491 | }, | |
| 1492 | "jobs": [ | |
| 1493 | { | |
| 1494 | "id": "job_01kpx7b3d0e4f8g2h6j0k4m8ns", | |
| 1495 | "runId": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1496 | "key": "test", | |
| 1497 | "name": "test", | |
| 1498 | "needs": [], | |
| 1499 | "status": "completed", | |
| 1500 | "conclusion": "failure", | |
| 1501 | "steps": [ | |
| 1502 | { | |
| 1503 | "number": 1, | |
| 1504 | "name": "Run actions/checkout@v4", | |
| 1505 | "status": "completed", | |
| 1506 | "conclusion": "success", | |
| 1507 | "startedAt": "2026-10-04T15:42:10.101Z", | |
| 1508 | "finishedAt": "2026-10-04T15:42:12.433Z" | |
| 1509 | }, | |
| 1510 | { | |
| 1511 | "number": 2, | |
| 1512 | "name": "Run cargo test", | |
| 1513 | "status": "completed", | |
| 1514 | "conclusion": "failure", | |
| 1515 | "startedAt": "2026-10-04T15:42:12.440Z", | |
| 1516 | "finishedAt": "2026-10-04T15:44:30.902Z" | |
| 1517 | } | |
| 1518 | ], | |
| 1519 | "annotations": [ | |
| 1520 | { | |
| 1521 | "level": "error", | |
| 1522 | "message": "assertion failed: greeting names the caller", | |
| 1523 | "title": "greet", | |
| 1524 | "file": "src/main.rs", | |
| 1525 | "line": 41 | |
| 1526 | } | |
| 1527 | ], | |
| 1528 | "reason": null, | |
| 1529 | "startedAt": "2026-10-04T15:42:09.020Z", | |
| 1530 | "finishedAt": "2026-10-04T15:44:31.002Z" | |
| 1531 | }, | |
| 1532 | { | |
| 1533 | "id": "job_01kpx7b3d0e4f8g2h6j0k4m8nt", | |
| 1534 | "runId": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1535 | "key": "deploy", | |
| 1536 | "name": "deploy", | |
| 1537 | "needs": [ | |
| 1538 | "test" | |
| 1539 | ], | |
| 1540 | "status": "completed", | |
| 1541 | "conclusion": "skipped", | |
| 1542 | "steps": [], | |
| 1543 | "annotations": [], | |
| 1544 | "reason": "A job it needs did not succeed.", | |
| 1545 | "startedAt": null, | |
| 1546 | "finishedAt": "2026-10-04T15:44:31.877Z" | |
| 1547 | } | |
| 1548 | ], | |
| 1549 | "notes": [ | |
| 1550 | { | |
| 1551 | "severity": "unsupported", | |
| 1552 | "job": "test", | |
| 1553 | "message": "`services` containers (such as a database) are not started on g1t yet." | |
| 1554 | } | |
| 1555 | ] | |
| 1556 | } | |
| 1557 | }, | |
| 1558 | "get_job_logs": { | |
| 1559 | "params": { | |
| 1560 | "job": "job_01kpx7b3d0e4f8g2h6j0k4m8ns" | |
| 1561 | }, | |
| 1562 | "query": { | |
| 1563 | "after": 0 | |
| 1564 | }, | |
| 1565 | "response": { | |
| 1566 | "chunks": [ | |
| 1567 | { | |
| 1568 | "seq": 1, | |
| 1569 | "step": 0, | |
| 1570 | "text": "Preparing the sandbox\n" | |
| 1571 | }, | |
| 1572 | { | |
| 1573 | "seq": 2, | |
| 1574 | "step": 2, | |
| 1575 | "text": "> cargo test\ntest greet ... FAILED\n" | |
| 1576 | } | |
| 1577 | ], | |
| 1578 | "done": true | |
| 1579 | }, | |
| 1580 | "notes": "Returns at most 500 chunks. Step 0 is the job's setup. While `done` is false, call again with the last `seq` as `after`." | |
| 1581 | }, | |
| 1582 | "dispatch_workflow": { | |
| 1583 | "params": { | |
| 1584 | "workflow": "ci.yml" | |
| 1585 | }, | |
| 1586 | "request": { | |
| 1587 | "ref": "main", | |
| 1588 | "inputs": { | |
| 1589 | "debug": true | |
| 1590 | } | |
| 1591 | }, | |
| 1592 | "response": { | |
| 1593 | "id": "run_01kpx8d4e7f0g3h6j9k2m5n8pq", | |
| 1594 | "workflowId": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1595 | "path": ".g1t/workflows/ci.yml", | |
| 1596 | "name": "CI", | |
| 1597 | "title": "CI run by syntaqx", | |
| 1598 | "number": 13, | |
| 1599 | "attempt": 1, | |
| 1600 | "event": "workflow_dispatch", | |
| 1601 | "ref": "refs/heads/main", | |
| 1602 | "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1603 | "pull": null, | |
| 1604 | "status": "queued", | |
| 1605 | "conclusion": null, | |
| 1606 | "error": null, | |
| 1607 | "actor": "syntaqx", | |
| 1608 | "createdAt": "2026-10-04T16:30:00.512Z", | |
| 1609 | "startedAt": null, | |
| 1610 | "finishedAt": null | |
| 1611 | } | |
| 1612 | }, | |
| 1613 | "cancel_workflow_run": { | |
| 1614 | "params": { | |
| 1615 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr" | |
| 1616 | }, | |
| 1617 | "response": { | |
| 1618 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1619 | "workflowId": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1620 | "path": ".g1t/workflows/ci.yml", | |
| 1621 | "name": "CI", | |
| 1622 | "title": "Greeting should name the caller", | |
| 1623 | "number": 12, | |
| 1624 | "attempt": 1, | |
| 1625 | "event": "push", | |
| 1626 | "ref": "refs/heads/main", | |
| 1627 | "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1628 | "pull": null, | |
| 1629 | "status": "completed", | |
| 1630 | "conclusion": "cancelled", | |
| 1631 | "error": null, | |
| 1632 | "actor": "syntaqx", | |
| 1633 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 1634 | "startedAt": "2026-10-04T15:42:09.020Z", | |
| 1635 | "finishedAt": "2026-10-04T15:44:31.877Z" | |
| 1636 | } | |
| 1637 | }, | |
| 1638 | "rerun_workflow_run": { | |
| 1639 | "params": { | |
| 1640 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr" | |
| 1641 | }, | |
| 1642 | "request": { | |
| 1643 | "failed_only": true | |
| 1644 | }, | |
| 1645 | "response": { | |
| 1646 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1647 | "workflowId": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1648 | "path": ".g1t/workflows/ci.yml", | |
| 1649 | "name": "CI", | |
| 1650 | "title": "Greeting should name the caller", | |
| 1651 | "number": 12, | |
| 1652 | "attempt": 2, | |
| 1653 | "event": "push", | |
| 1654 | "ref": "refs/heads/main", | |
| 1655 | "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1656 | "pull": null, | |
| 1657 | "status": "queued", | |
| 1658 | "conclusion": null, | |
| 1659 | "error": null, | |
| 1660 | "actor": "syntaqx", | |
| 1661 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 1662 | "startedAt": null, | |
| 1663 | "finishedAt": null | |
| 1664 | }, | |
| 1665 | "notes": "The run keeps its id; `attempt` goes up by one." | |
| 1666 | }, | |
| 1667 | "rerun_failed_jobs": { | |
| 1668 | "params": { | |
| 1669 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr" | |
| 1670 | }, | |
| 1671 | "response": { | |
| 1672 | "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr", | |
| 1673 | "workflowId": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np", | |
| 1674 | "path": ".g1t/workflows/ci.yml", | |
| 1675 | "name": "CI", | |
| 1676 | "title": "Greeting should name the caller", | |
| 1677 | "number": 12, | |
| 1678 | "attempt": 2, | |
| 1679 | "event": "push", | |
| 1680 | "ref": "refs/heads/main", | |
| 1681 | "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13", | |
| 1682 | "pull": null, | |
| 1683 | "status": "queued", | |
| 1684 | "conclusion": null, | |
| 1685 | "error": null, | |
| 1686 | "actor": "syntaqx", | |
| 1687 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 1688 | "startedAt": null, | |
| 1689 | "finishedAt": null | |
| 1690 | } | |
| 1691 | }, | |
| 1692 | "update_workflow": { | |
| 1693 | "params": { | |
| 1694 | "workflow": "nightly.yml" | |
| 1695 | }, | |
| 1696 | "request": { | |
| 1697 | "enabled": false | |
| 1698 | }, | |
| 1699 | "response": { | |
| 1700 | "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq", | |
| 1701 | "path": ".g1t/workflows/nightly.yml", | |
| 1702 | "name": "Nightly", | |
| 1703 | "events": [ | |
| 1704 | "schedule" | |
| 1705 | ], | |
| 1706 | "state": "disabled", | |
| 1707 | "error": null, | |
| 1708 | "notes": [], | |
| 1709 | "dispatch": null, | |
| 1710 | "lastRun": null | |
| 1711 | } | |
| 1712 | }, | |
| 1713 | "enable_workflow": { | |
| 1714 | "params": { | |
| 1715 | "workflow": "nightly.yml" | |
| 1716 | }, | |
| 1717 | "response": { | |
| 1718 | "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq", | |
| 1719 | "path": ".g1t/workflows/nightly.yml", | |
| 1720 | "name": "Nightly", | |
| 1721 | "events": [ | |
| 1722 | "schedule" | |
| 1723 | ], | |
| 1724 | "state": "active", | |
| 1725 | "error": null, | |
| 1726 | "notes": [], | |
| 1727 | "dispatch": null, | |
| 1728 | "lastRun": null | |
| 1729 | } | |
| 1730 | }, | |
| 1731 | "disable_workflow": { | |
| 1732 | "params": { | |
| 1733 | "workflow": "nightly.yml" | |
| 1734 | }, | |
| 1735 | "response": { | |
| 1736 | "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq", | |
| 1737 | "path": ".g1t/workflows/nightly.yml", | |
| 1738 | "name": "Nightly", | |
| 1739 | "events": [ | |
| 1740 | "schedule" | |
| 1741 | ], | |
| 1742 | "state": "disabled", | |
| 1743 | "error": null, | |
| 1744 | "notes": [], | |
| 1745 | "dispatch": null, | |
| 1746 | "lastRun": null | |
| 1747 | } | |
| 1748 | }, | |
| 1749 | "list_actions_secrets": { | |
| 1750 | "response": [ | |
| 1751 | { | |
| 1752 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ab", | |
| 1753 | "name": "NPM_TOKEN", | |
| 1754 | "kind": "secret", | |
| 1755 | "value": null, | |
| 1756 | "scope": "workspace", | |
| 1757 | "updatedAt": "2026-10-01T09:12:44.020Z", | |
| 1758 | "availableTo": [ | |
| 1759 | "workflows" | |
| 1760 | ], | |
| 1761 | "environments": [], | |
| API reference examples use projects | 1762 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1763 | "note": null, |
| 1764 | "updatedBy": "syntaqx" | |
| 1765 | }, | |
| 1766 | { | |
| 1767 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac", | |
| 1768 | "name": "STRIPE_KEY", | |
| 1769 | "kind": "secret", | |
| 1770 | "value": null, | |
| API reference examples use projects | 1771 | "scope": "project", |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1772 | "updatedAt": "2026-10-04T15:42:07.318Z", |
| 1773 | "availableTo": [ | |
| 1774 | "workflows", | |
| 1775 | "deployments" | |
| 1776 | ], | |
| 1777 | "environments": [ | |
| 1778 | "production" | |
| 1779 | ], | |
| API reference examples use projects | 1780 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1781 | "note": "Rotate in the Stripe dashboard.", |
| 1782 | "updatedBy": "syntaqx" | |
| 1783 | } | |
| 1784 | ], | |
| 1785 | "notes": "Values are never returned. A repository's list includes the workspace's rows that reach it, with `scope` set to `workspace`. Empty `environments` means every environment." | |
| 1786 | }, | |
| 1787 | "list_actions_secrets_for_workspace": { | |
| 1788 | "params": { | |
| 1789 | "workspace": "syntaqx" | |
| 1790 | }, | |
| 1791 | "response": [ | |
| 1792 | { | |
| 1793 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ab", | |
| 1794 | "name": "NPM_TOKEN", | |
| 1795 | "kind": "secret", | |
| 1796 | "value": null, | |
| 1797 | "scope": "workspace", | |
| 1798 | "updatedAt": "2026-10-04T15:42:07.318Z", | |
| 1799 | "availableTo": [ | |
| 1800 | "workflows" | |
| 1801 | ], | |
| 1802 | "environments": [], | |
| API reference examples use projects | 1803 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1804 | "note": null, |
| 1805 | "updatedBy": "syntaqx" | |
| 1806 | } | |
| 1807 | ], | |
| 1808 | "notes": "Values are never returned. A repository's list includes the workspace's rows that reach it, with `scope` set to `workspace`. Empty `environments` means every environment." | |
| 1809 | }, | |
| 1810 | "set_actions_secret": { | |
| 1811 | "params": { | |
| 1812 | "setting": "STRIPE_KEY" | |
| 1813 | }, | |
| 1814 | "request": { | |
| 1815 | "value": "sk_live_…", | |
| 1816 | "available_to": [ | |
| 1817 | "workflows", | |
| 1818 | "deployments" | |
| 1819 | ], | |
| 1820 | "environments": [ | |
| 1821 | "production" | |
| 1822 | ] | |
| 1823 | }, | |
| 1824 | "response": { | |
| 1825 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac", | |
| 1826 | "name": "STRIPE_KEY", | |
| 1827 | "kind": "secret", | |
| 1828 | "value": null, | |
| API reference examples use projects | 1829 | "scope": "project", |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1830 | "updatedAt": "2026-10-04T15:42:07.318Z", |
| 1831 | "availableTo": [ | |
| 1832 | "workflows", | |
| 1833 | "deployments" | |
| 1834 | ], | |
| 1835 | "environments": [ | |
| 1836 | "production" | |
| 1837 | ], | |
| API reference examples use projects | 1838 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1839 | "note": null, |
| 1840 | "updatedBy": "syntaqx" | |
| 1841 | }, | |
| 1842 | "notes": "Keys are uppercased. See [secrets and variables](/guides/secrets-and-variables/)." | |
| 1843 | }, | |
| 1844 | "set_actions_secret_for_workspace": { | |
| 1845 | "params": { | |
| 1846 | "workspace": "syntaqx", | |
| 1847 | "setting": "NPM_TOKEN" | |
| 1848 | }, | |
| 1849 | "request": { | |
| 1850 | "value": "npm_…", | |
| API reference examples use projects | 1851 | "projects": [ |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1852 | "hello" |
| 1853 | ] | |
| 1854 | }, | |
| 1855 | "response": { | |
| 1856 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac", | |
| 1857 | "name": "NPM_TOKEN", | |
| 1858 | "kind": "secret", | |
| 1859 | "value": null, | |
| 1860 | "scope": "workspace", | |
| 1861 | "updatedAt": "2026-10-04T15:42:07.318Z", | |
| 1862 | "availableTo": [ | |
| 1863 | "workflows" | |
| 1864 | ], | |
| 1865 | "environments": [], | |
| API reference examples use projects | 1866 | "projects": [ |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1867 | "hello" |
| 1868 | ], | |
| 1869 | "note": null, | |
| 1870 | "updatedBy": "syntaqx" | |
| 1871 | } | |
| 1872 | }, | |
| 1873 | "delete_actions_secret": { | |
| 1874 | "params": { | |
| 1875 | "setting": "STRIPE_KEY" | |
| 1876 | }, | |
| 1877 | "response": true | |
| 1878 | }, | |
| 1879 | "delete_actions_secret_for_workspace": { | |
| 1880 | "params": { | |
| 1881 | "workspace": "syntaqx", | |
| 1882 | "setting": "NPM_TOKEN" | |
| 1883 | }, | |
| 1884 | "response": true | |
| 1885 | }, | |
| 1886 | "list_actions_variables": { | |
| 1887 | "response": [ | |
| 1888 | { | |
| 1889 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad", | |
| 1890 | "name": "NODE_VERSION", | |
| 1891 | "kind": "variable", | |
| 1892 | "value": "20", | |
| API reference examples use projects | 1893 | "scope": "project", |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1894 | "updatedAt": "2026-10-04T15:42:07.318Z", |
| 1895 | "availableTo": [ | |
| 1896 | "workflows", | |
| 1897 | "deployments" | |
| 1898 | ], | |
| 1899 | "environments": [], | |
| API reference examples use projects | 1900 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1901 | "note": null, |
| 1902 | "updatedBy": "syntaqx" | |
| 1903 | } | |
| 1904 | ], | |
| 1905 | "notes": "A repository's list includes the workspace's rows that reach it, with `scope` set to `workspace`. Empty `environments` means every environment." | |
| 1906 | }, | |
| 1907 | "list_actions_variables_for_workspace": { | |
| 1908 | "params": { | |
| 1909 | "workspace": "syntaqx" | |
| 1910 | }, | |
| 1911 | "response": [ | |
| 1912 | { | |
| 1913 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad", | |
| 1914 | "name": "NODE_VERSION", | |
| 1915 | "kind": "variable", | |
| 1916 | "value": "20", | |
| 1917 | "scope": "workspace", | |
| 1918 | "updatedAt": "2026-10-04T15:42:07.318Z", | |
| 1919 | "availableTo": [ | |
| 1920 | "workflows", | |
| 1921 | "deployments" | |
| 1922 | ], | |
| 1923 | "environments": [], | |
| API reference examples use projects | 1924 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1925 | "note": null, |
| 1926 | "updatedBy": "syntaqx" | |
| 1927 | } | |
| 1928 | ] | |
| 1929 | }, | |
| 1930 | "set_actions_variable": { | |
| 1931 | "request": { | |
| 1932 | "setting": "NODE_VERSION", | |
| 1933 | "value": "20" | |
| 1934 | }, | |
| 1935 | "response": { | |
| 1936 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad", | |
| 1937 | "name": "NODE_VERSION", | |
| 1938 | "kind": "variable", | |
| 1939 | "value": "20", | |
| API reference examples use projects | 1940 | "scope": "project", |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1941 | "updatedAt": "2026-10-04T15:42:07.318Z", |
| 1942 | "availableTo": [ | |
| 1943 | "workflows", | |
| 1944 | "deployments" | |
| 1945 | ], | |
| 1946 | "environments": [], | |
| API reference examples use projects | 1947 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1948 | "note": null, |
| 1949 | "updatedBy": "syntaqx" | |
| 1950 | }, | |
| 1951 | "notes": "GitHub's clients send the key as `name`; that is accepted too." | |
| 1952 | }, | |
| 1953 | "set_actions_variable_for_workspace": { | |
| 1954 | "params": { | |
| 1955 | "workspace": "syntaqx" | |
| 1956 | }, | |
| 1957 | "request": { | |
| 1958 | "setting": "NODE_VERSION", | |
| 1959 | "value": "20" | |
| 1960 | }, | |
| 1961 | "response": { | |
| 1962 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad", | |
| 1963 | "name": "NODE_VERSION", | |
| 1964 | "kind": "variable", | |
| 1965 | "value": "20", | |
| 1966 | "scope": "workspace", | |
| 1967 | "updatedAt": "2026-10-04T15:42:07.318Z", | |
| 1968 | "availableTo": [ | |
| 1969 | "workflows", | |
| 1970 | "deployments" | |
| 1971 | ], | |
| 1972 | "environments": [], | |
| API reference examples use projects | 1973 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1974 | "note": null, |
| 1975 | "updatedBy": "syntaqx" | |
| 1976 | } | |
| 1977 | }, | |
| 1978 | "update_actions_variable": { | |
| 1979 | "params": { | |
| 1980 | "setting": "NODE_VERSION" | |
| 1981 | }, | |
| 1982 | "request": { | |
| 1983 | "value": "22" | |
| 1984 | }, | |
| 1985 | "response": { | |
| 1986 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad", | |
| 1987 | "name": "NODE_VERSION", | |
| 1988 | "kind": "variable", | |
| 1989 | "value": "22", | |
| API reference examples use projects | 1990 | "scope": "project", |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1991 | "updatedAt": "2026-10-04T15:42:07.318Z", |
| 1992 | "availableTo": [ | |
| 1993 | "workflows", | |
| 1994 | "deployments" | |
| 1995 | ], | |
| 1996 | "environments": [], | |
| API reference examples use projects | 1997 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 1998 | "note": null, |
| 1999 | "updatedBy": "syntaqx" | |
| 2000 | } | |
| 2001 | }, | |
| 2002 | "update_actions_variable_for_workspace": { | |
| 2003 | "params": { | |
| 2004 | "workspace": "syntaqx", | |
| 2005 | "setting": "NODE_VERSION" | |
| 2006 | }, | |
| 2007 | "request": { | |
| 2008 | "value": "22" | |
| 2009 | }, | |
| 2010 | "response": { | |
| 2011 | "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad", | |
| 2012 | "name": "NODE_VERSION", | |
| 2013 | "kind": "variable", | |
| 2014 | "value": "22", | |
| 2015 | "scope": "workspace", | |
| 2016 | "updatedAt": "2026-10-04T15:42:07.318Z", | |
| 2017 | "availableTo": [ | |
| 2018 | "workflows", | |
| 2019 | "deployments" | |
| 2020 | ], | |
| 2021 | "environments": [], | |
| API reference examples use projects | 2022 | "projects": [], |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 2023 | "note": null, |
| 2024 | "updatedBy": "syntaqx" | |
| 2025 | } | |
| 2026 | }, | |
| 2027 | "delete_actions_variable": { | |
| 2028 | "params": { | |
| 2029 | "setting": "NODE_VERSION" | |
| 2030 | }, | |
| 2031 | "response": true | |
| 2032 | }, | |
| 2033 | "delete_actions_variable_for_workspace": { | |
| 2034 | "params": { | |
| 2035 | "workspace": "syntaqx", | |
| 2036 | "setting": "NODE_VERSION" | |
| 2037 | }, | |
| 2038 | "response": true | |
| 2039 | }, | |
| 2040 | "list_webhooks": { | |
| 2041 | "response": [ | |
| 2042 | { | |
| 2043 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2044 | "scope": "repo", | |
| 2045 | "workspace": "syntaqx", | |
| 2046 | "repo": "syntaqx/hello", | |
| 2047 | "url": "https://hooks.example.com/g1t", | |
| 2048 | "events": [ | |
| 2049 | "git.push", | |
| 2050 | "pull.merged" | |
| 2051 | ], | |
| 2052 | "active": true, | |
| 2053 | "secretHint": "…9c2e", | |
| 2054 | "createdBy": "syntaqx", | |
| 2055 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2056 | "lastStatus": "delivered", | |
| 2057 | "lastDeliveredAt": "2026-10-04T15:42:07.611Z" | |
| 2058 | } | |
| 2059 | ] | |
| 2060 | }, | |
| 2061 | "list_webhooks_for_workspace": { | |
| 2062 | "params": { | |
| 2063 | "workspace": "syntaqx" | |
| 2064 | }, | |
| 2065 | "response": [ | |
| 2066 | { | |
| 2067 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2068 | "scope": "workspace", | |
| 2069 | "workspace": "syntaqx", | |
| 2070 | "repo": null, | |
| 2071 | "url": "https://hooks.example.com/g1t", | |
| 2072 | "events": [ | |
| 2073 | "git.push", | |
| 2074 | "pull.merged" | |
| 2075 | ], | |
| 2076 | "active": true, | |
| 2077 | "secretHint": "…9c2e", | |
| 2078 | "createdBy": "syntaqx", | |
| 2079 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2080 | "lastStatus": "delivered", | |
| 2081 | "lastDeliveredAt": "2026-10-04T15:42:07.611Z" | |
| 2082 | } | |
| 2083 | ] | |
| 2084 | }, | |
| 2085 | "create_webhook": { | |
| 2086 | "request": { | |
| 2087 | "url": "https://hooks.example.com/g1t", | |
| 2088 | "events": [ | |
| 2089 | "git.push", | |
| 2090 | "pull.merged" | |
| 2091 | ] | |
| 2092 | }, | |
| 2093 | "response": { | |
| 2094 | "hook": { | |
| 2095 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2096 | "scope": "repo", | |
| 2097 | "workspace": "syntaqx", | |
| 2098 | "repo": "syntaqx/hello", | |
| 2099 | "url": "https://hooks.example.com/g1t", | |
| 2100 | "events": [ | |
| 2101 | "git.push", | |
| 2102 | "pull.merged" | |
| 2103 | ], | |
| 2104 | "active": true, | |
| 2105 | "secretHint": "…9c2e", | |
| 2106 | "createdBy": "syntaqx", | |
| 2107 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2108 | "lastStatus": "delivered", | |
| 2109 | "lastDeliveredAt": "2026-10-04T15:42:07.611Z" | |
| 2110 | }, | |
| API reference: no example reads as a real secret | 2111 | "secret": "whsec_…" |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 2112 | }, |
| 2113 | "notes": "A ping is sent before the response, so `lastStatus` is usually set already. When g1t made the signing secret, `secret` holds it: it is shown only this once. See [webhooks](/guides/webhooks/)." | |
| 2114 | }, | |
| 2115 | "create_webhook_for_workspace": { | |
| 2116 | "params": { | |
| 2117 | "workspace": "syntaqx" | |
| 2118 | }, | |
| 2119 | "request": { | |
| 2120 | "url": "https://hooks.example.com/g1t" | |
| 2121 | }, | |
| 2122 | "response": { | |
| 2123 | "hook": { | |
| 2124 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2125 | "scope": "workspace", | |
| 2126 | "workspace": "syntaqx", | |
| 2127 | "repo": null, | |
| 2128 | "url": "https://hooks.example.com/g1t", | |
| 2129 | "events": [ | |
| 2130 | "*" | |
| 2131 | ], | |
| 2132 | "active": true, | |
| 2133 | "secretHint": "…9c2e", | |
| 2134 | "createdBy": "syntaqx", | |
| 2135 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2136 | "lastStatus": "delivered", | |
| 2137 | "lastDeliveredAt": "2026-10-04T15:42:07.611Z" | |
| 2138 | }, | |
| API reference: no example reads as a real secret | 2139 | "secret": "whsec_…" |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 2140 | }, |
| 2141 | "notes": "A ping is sent before the response, so `lastStatus` is usually set already. When g1t made the signing secret, `secret` holds it: it is shown only this once. See [webhooks](/guides/webhooks/)." | |
| 2142 | }, | |
| 2143 | "update_webhook": { | |
| 2144 | "params": { | |
| 2145 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd" | |
| 2146 | }, | |
| 2147 | "request": { | |
| 2148 | "active": false | |
| 2149 | }, | |
| 2150 | "response": { | |
| 2151 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2152 | "scope": "repo", | |
| 2153 | "workspace": "syntaqx", | |
| 2154 | "repo": "syntaqx/hello", | |
| 2155 | "url": "https://hooks.example.com/g1t", | |
| 2156 | "events": [ | |
| 2157 | "git.push", | |
| 2158 | "pull.merged" | |
| 2159 | ], | |
| 2160 | "active": false, | |
| 2161 | "secretHint": "…9c2e", | |
| 2162 | "createdBy": "syntaqx", | |
| 2163 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2164 | "lastStatus": "delivered", | |
| 2165 | "lastDeliveredAt": "2026-10-04T15:42:07.611Z" | |
| 2166 | } | |
| 2167 | }, | |
| 2168 | "update_webhook_for_workspace": { | |
| 2169 | "params": { | |
| 2170 | "workspace": "syntaqx", | |
| 2171 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd" | |
| 2172 | }, | |
| 2173 | "request": { | |
| 2174 | "active": false | |
| 2175 | }, | |
| 2176 | "response": { | |
| 2177 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2178 | "scope": "workspace", | |
| 2179 | "workspace": "syntaqx", | |
| 2180 | "repo": null, | |
| 2181 | "url": "https://hooks.example.com/g1t", | |
| 2182 | "events": [ | |
| 2183 | "git.push", | |
| 2184 | "pull.merged" | |
| 2185 | ], | |
| 2186 | "active": false, | |
| 2187 | "secretHint": "…9c2e", | |
| 2188 | "createdBy": "syntaqx", | |
| 2189 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2190 | "lastStatus": "delivered", | |
| 2191 | "lastDeliveredAt": "2026-10-04T15:42:07.611Z" | |
| 2192 | } | |
| 2193 | }, | |
| 2194 | "delete_webhook": { | |
| 2195 | "params": { | |
| 2196 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd" | |
| 2197 | }, | |
| 2198 | "response": true | |
| 2199 | }, | |
| 2200 | "delete_webhook_for_workspace": { | |
| 2201 | "params": { | |
| 2202 | "workspace": "syntaqx", | |
| 2203 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd" | |
| 2204 | }, | |
| 2205 | "response": true | |
| 2206 | }, | |
| 2207 | "ping_webhook": { | |
| 2208 | "params": { | |
| 2209 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd" | |
| 2210 | }, | |
| 2211 | "response": { | |
| 2212 | "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st", | |
| 2213 | "hookId": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2214 | "eventId": "", | |
| 2215 | "event": "ping", | |
| 2216 | "status": "delivered", | |
| 2217 | "attempts": 1, | |
| 2218 | "responseStatus": 200, | |
| 2219 | "responseBody": "ok", | |
| 2220 | "error": null, | |
| 2221 | "durationMs": 184, | |
| 2222 | "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}", | |
| 2223 | "createdAt": "2026-10-04T16:01:12.440Z", | |
| 2224 | "deliveredAt": "2026-10-04T16:01:12.631Z", | |
| 2225 | "nextAttemptAt": null | |
| 2226 | }, | |
| 2227 | "notes": "`payload` is the JSON that was sent, as a string." | |
| 2228 | }, | |
| 2229 | "ping_webhook_for_workspace": { | |
| 2230 | "params": { | |
| 2231 | "workspace": "syntaqx", | |
| 2232 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd" | |
| 2233 | }, | |
| 2234 | "response": { | |
| 2235 | "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st", | |
| 2236 | "hookId": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2237 | "eventId": "", | |
| 2238 | "event": "ping", | |
| 2239 | "status": "delivered", | |
| 2240 | "attempts": 1, | |
| 2241 | "responseStatus": 200, | |
| 2242 | "responseBody": "ok", | |
| 2243 | "error": null, | |
| 2244 | "durationMs": 184, | |
| 2245 | "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}", | |
| 2246 | "createdAt": "2026-10-04T16:01:12.440Z", | |
| 2247 | "deliveredAt": "2026-10-04T16:01:12.631Z", | |
| 2248 | "nextAttemptAt": null | |
| 2249 | } | |
| 2250 | }, | |
| 2251 | "list_webhook_deliveries": { | |
| 2252 | "params": { | |
| 2253 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd" | |
| 2254 | }, | |
| 2255 | "response": [ | |
| 2256 | { | |
| 2257 | "id": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz", | |
| 2258 | "hookId": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2259 | "eventId": "", | |
| 2260 | "event": "ping", | |
| 2261 | "status": "pending", | |
| 2262 | "attempts": 1, | |
| 2263 | "responseStatus": 503, | |
| 2264 | "responseBody": "Service Unavailable", | |
| 2265 | "error": null, | |
| 2266 | "durationMs": 212, | |
| 2267 | "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}", | |
| 2268 | "createdAt": "2026-10-04T16:20:03.100Z", | |
| 2269 | "deliveredAt": null, | |
| 2270 | "nextAttemptAt": "2026-10-04T16:21:03.312Z" | |
| 2271 | }, | |
| 2272 | { | |
| 2273 | "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st", | |
| 2274 | "hookId": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2275 | "eventId": "", | |
| 2276 | "event": "ping", | |
| 2277 | "status": "delivered", | |
| 2278 | "attempts": 1, | |
| 2279 | "responseStatus": 200, | |
| 2280 | "responseBody": "ok", | |
| 2281 | "error": null, | |
| 2282 | "durationMs": 184, | |
| 2283 | "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}", | |
| 2284 | "createdAt": "2026-10-04T16:01:12.440Z", | |
| 2285 | "deliveredAt": "2026-10-04T16:01:12.631Z", | |
| 2286 | "nextAttemptAt": null | |
| 2287 | } | |
| 2288 | ], | |
| 2289 | "notes": "Returns at most 50, newest first. `status` is `pending`, `delivered` or `failed`; `nextAttemptAt` is set while it is pending." | |
| 2290 | }, | |
| 2291 | "list_webhook_deliveries_for_workspace": { | |
| 2292 | "params": { | |
| 2293 | "workspace": "syntaqx", | |
| 2294 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd" | |
| 2295 | }, | |
| 2296 | "response": [ | |
| 2297 | { | |
| 2298 | "id": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz", | |
| 2299 | "hookId": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2300 | "eventId": "", | |
| 2301 | "event": "ping", | |
| 2302 | "status": "pending", | |
| 2303 | "attempts": 1, | |
| 2304 | "responseStatus": 503, | |
| 2305 | "responseBody": "Service Unavailable", | |
| 2306 | "error": null, | |
| 2307 | "durationMs": 212, | |
| 2308 | "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}", | |
| 2309 | "createdAt": "2026-10-04T16:20:03.100Z", | |
| 2310 | "deliveredAt": null, | |
| 2311 | "nextAttemptAt": "2026-10-04T16:21:03.312Z" | |
| 2312 | }, | |
| 2313 | { | |
| 2314 | "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st", | |
| 2315 | "hookId": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2316 | "eventId": "", | |
| 2317 | "event": "ping", | |
| 2318 | "status": "delivered", | |
| 2319 | "attempts": 1, | |
| 2320 | "responseStatus": 200, | |
| 2321 | "responseBody": "ok", | |
| 2322 | "error": null, | |
| 2323 | "durationMs": 184, | |
| 2324 | "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}", | |
| 2325 | "createdAt": "2026-10-04T16:01:12.440Z", | |
| 2326 | "deliveredAt": "2026-10-04T16:01:12.631Z", | |
| 2327 | "nextAttemptAt": null | |
| 2328 | } | |
| 2329 | ] | |
| 2330 | }, | |
| 2331 | "redeliver_webhook": { | |
| 2332 | "params": { | |
| 2333 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2334 | "delivery": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz" | |
| 2335 | }, | |
| 2336 | "response": { | |
| 2337 | "id": "dlv_01kpx6c8d1e2f3g4h5j6k7m8np", | |
| 2338 | "hookId": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2339 | "eventId": "", | |
| 2340 | "event": "ping", | |
| 2341 | "status": "delivered", | |
| 2342 | "attempts": 1, | |
| 2343 | "responseStatus": 200, | |
| 2344 | "responseBody": "ok", | |
| 2345 | "error": null, | |
| 2346 | "durationMs": 171, | |
| 2347 | "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}", | |
| 2348 | "createdAt": "2026-10-04T16:25:40.007Z", | |
| 2349 | "deliveredAt": "2026-10-04T16:25:40.178Z", | |
| 2350 | "nextAttemptAt": null | |
| 2351 | }, | |
| 2352 | "notes": "The response is the new delivery." | |
| 2353 | }, | |
| 2354 | "redeliver_webhook_for_workspace": { | |
| 2355 | "params": { | |
| 2356 | "workspace": "syntaqx", | |
| 2357 | "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2358 | "delivery": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz" | |
| 2359 | }, | |
| 2360 | "response": { | |
| 2361 | "id": "dlv_01kpx6c8d1e2f3g4h5j6k7m8np", | |
| 2362 | "hookId": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd", | |
| 2363 | "eventId": "", | |
| 2364 | "event": "ping", | |
| 2365 | "status": "delivered", | |
| 2366 | "attempts": 1, | |
| 2367 | "responseStatus": 200, | |
| 2368 | "responseBody": "ok", | |
| 2369 | "error": null, | |
| 2370 | "durationMs": 171, | |
| 2371 | "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}", | |
| 2372 | "createdAt": "2026-10-04T16:25:40.007Z", | |
| 2373 | "deliveredAt": "2026-10-04T16:25:40.178Z", | |
| 2374 | "nextAttemptAt": null | |
| 2375 | } | |
| 2376 | }, | |
| 2377 | "list_integrations": { | |
| 2378 | "params": { | |
| 2379 | "workspace": "syntaqx" | |
| 2380 | }, | |
| 2381 | "response": [ | |
| 2382 | { | |
| 2383 | "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab", | |
| 2384 | "workspace": "syntaqx", | |
| 2385 | "provider": "anthropic", | |
| 2386 | "kind": "models", | |
| 2387 | "name": "Anthropic", | |
| 2388 | "config": { | |
| 2389 | "assign": false, | |
| 2390 | "writeBack": true | |
| 2391 | }, | |
| 2392 | "secretHint": "…3f9a", | |
| 2393 | "webhookUrl": null, | |
| 2394 | "createdBy": "syntaqx", | |
| 2395 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2396 | "lastUsedAt": "2026-10-04T15:42:08.102Z", | |
| 2397 | "lastError": null, | |
| 2398 | "models": [ | |
| 2399 | "claude-haiku-4-5", | |
| 2400 | "claude-sonnet-4-5" | |
| 2401 | ] | |
| 2402 | }, | |
| 2403 | { | |
| 2404 | "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bc", | |
| 2405 | "workspace": "syntaqx", | |
| 2406 | "provider": "jira", | |
| 2407 | "kind": "tracker", | |
| 2408 | "name": "Jira", | |
| 2409 | "config": { | |
| 2410 | "assign": false, | |
| 2411 | "writeBack": true, | |
| 2412 | "site": "https://acme.atlassian.net", | |
| 2413 | "email": "syntaqx@example.com", | |
| 2414 | "keys": [ | |
| 2415 | "TECH" | |
| 2416 | ] | |
| 2417 | }, | |
| 2418 | "secretHint": "…x7Qe", | |
| 2419 | "webhookUrl": null, | |
| 2420 | "createdBy": "syntaqx", | |
| 2421 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2422 | "lastUsedAt": null, | |
| 2423 | "lastError": null, | |
| 2424 | "models": [] | |
| 2425 | } | |
| 2426 | ], | |
| 2427 | "notes": "`kind` is `models`, `alerts` or `tracker`. `secretHint` shows the end of the secret; the secret itself is never returned. `webhookUrl` is where an alert source sends its alerts." | |
| 2428 | }, | |
| 2429 | "connect_integration": { | |
| 2430 | "params": { | |
| 2431 | "workspace": "syntaqx" | |
| 2432 | }, | |
| 2433 | "request": { | |
| 2434 | "provider": "webhook", | |
| 2435 | "config": { | |
| 2436 | "repo": "syntaqx/hello", | |
| 2437 | "label": "bug" | |
| 2438 | } | |
| 2439 | }, | |
| 2440 | "response": { | |
| 2441 | "connection": { | |
| 2442 | "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bd", | |
| 2443 | "workspace": "syntaqx", | |
| 2444 | "provider": "webhook", | |
| 2445 | "kind": "alerts", | |
| 2446 | "name": "Webhook", | |
| 2447 | "config": { | |
| 2448 | "repo": "syntaqx/hello", | |
| 2449 | "label": "bug", | |
| 2450 | "assign": false, | |
| 2451 | "writeBack": true | |
| 2452 | }, | |
| 2453 | "secretHint": null, | |
| 2454 | "webhookUrl": "https://api.g1t.sh/hooks/con_01kpx4n8r3g9s0v5w7x1z2a3bd", | |
| 2455 | "createdBy": "syntaqx", | |
| 2456 | "createdAt": "2026-10-04T15:42:07.318Z", | |
| 2457 | "lastUsedAt": null, | |
| 2458 | "lastError": null, | |
| 2459 | "models": [] | |
| 2460 | }, | |
| 2461 | "signingSecret": "g1ts_9f2c4a7e1b0d3c6f8a2e5b7d9c1f4a6e8b0d2c4f6a8e1b3d" | |
| 2462 | }, | |
| 2463 | "notes": "`signingSecret` is set only when g1t made it, for `datadog` and `webhook`, and is shown only this once. A model provider is tested as it is connected. See [integrations](/guides/integrations/) and [model providers](/guides/models/)." | |
| 2464 | }, | |
| 2465 | "disconnect_integration": { | |
| 2466 | "params": { | |
| 2467 | "workspace": "syntaqx", | |
| 2468 | "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab" | |
| 2469 | }, | |
| 2470 | "response": true | |
| 2471 | }, | |
| 2472 | "test_integration": { | |
| 2473 | "params": { | |
| 2474 | "workspace": "syntaqx", | |
| 2475 | "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab" | |
| 2476 | }, | |
| 2477 | "response": { | |
| 2478 | "ok": true, | |
| 2479 | "message": "Anthropic accepted the key and offers 9 models." | |
| 2480 | }, | |
| 2481 | "notes": "Credentials that do not work still answer `200`, with `ok` false and `message` saying what went wrong." | |
| 2482 | }, | |
| 2483 | "get_model_routes": { | |
| 2484 | "params": { | |
| 2485 | "workspace": "syntaqx" | |
| 2486 | }, | |
| 2487 | "response": [ | |
| 2488 | { | |
| 2489 | "task": "default", | |
| 2490 | "connectionId": "con_01kpx3m7q2f8r9t4v6w0y1z2ab", | |
| 2491 | "model": "claude-sonnet-4-5" | |
| 2492 | }, | |
| 2493 | { | |
| 2494 | "task": "review", | |
| 2495 | "connectionId": null, | |
| 2496 | "model": null | |
| 2497 | } | |
| 2498 | ] | |
| 2499 | }, | |
| 2500 | "set_model_routes": { | |
| 2501 | "params": { | |
| 2502 | "workspace": "syntaqx" | |
| 2503 | }, | |
| 2504 | "request": { | |
| 2505 | "routes": [ | |
| 2506 | { | |
| 2507 | "task": "default", | |
| 2508 | "connection_id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab", | |
| 2509 | "model": "claude-sonnet-4-5" | |
| 2510 | }, | |
| 2511 | { | |
| 2512 | "task": "review", | |
| 2513 | "connection_id": null | |
| 2514 | } | |
| 2515 | ] | |
| 2516 | }, | |
| 2517 | "response": [ | |
| 2518 | { | |
| 2519 | "task": "default", | |
| 2520 | "connectionId": "con_01kpx3m7q2f8r9t4v6w0y1z2ab", | |
| 2521 | "model": "claude-sonnet-4-5" | |
| 2522 | }, | |
| 2523 | { | |
| 2524 | "task": "review", | |
| 2525 | "connectionId": null, | |
| 2526 | "model": null | |
| 2527 | } | |
| 2528 | ], | |
| 2529 | "notes": "The response is the routes as saved, ordered by task." | |
| 2530 | }, | |
| 2531 | "get_context": { | |
| 2532 | "query": { | |
| 2533 | "reference": "TECH-1234" | |
| 2534 | }, | |
| 2535 | "response": { | |
| 2536 | "provider": "jira", | |
| 2537 | "key": "TECH-1234", | |
| 2538 | "title": "Checkout fails for EU cards", | |
| 2539 | "url": "https://acme.atlassian.net/browse/TECH-1234", | |
| 2540 | "status": "In Progress", | |
| 2541 | "body": "Customers with 3DS cards see a 500 at /pay.", | |
| 2542 | "fetchedAt": "2026-10-04T15:42:07.318Z" | |
| 2543 | } | |
| 2544 | }, | |
| 2545 | "import_issue": { | |
| 2546 | "request": { | |
| 2547 | "reference": "TECH-1234" | |
| 2548 | }, | |
| 2549 | "response": { | |
| 2550 | "number": 42, | |
| 2551 | "item": { | |
| 2552 | "provider": "jira", | |
| 2553 | "key": "TECH-1234", | |
| 2554 | "title": "Checkout fails for EU cards", | |
| 2555 | "url": "https://acme.atlassian.net/browse/TECH-1234", | |
| 2556 | "status": "In Progress", | |
| 2557 | "body": "Customers with 3DS cards see a 500 at /pay.", | |
| 2558 | "fetchedAt": "2026-10-04T15:42:07.318Z" | |
| 2559 | }, | |
| 2560 | "created": true | |
| 2561 | }, | |
| 2562 | "notes": "`created` is false when the ticket was imported before; `number` is then that issue." | |
| 2563 | } | |
| 2564 | } |
This file's history is long; its oldest lines are credited to the oldest commit read.