forked from NSPG13/agent-bounties
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub_issue_api_sync_cases.json
More file actions
77 lines (77 loc) · 4.15 KB
/
Copy pathgithub_issue_api_sync_cases.json
File metadata and controls
77 lines (77 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[
{
"name": "valid-create",
"input": {
"repository": "agent-bounties/agent-bounties",
"issue_url": "https://github.com/agent-bounties/agent-bounties/issues/115",
"title": "[bounty]: Sync GitHub issue into API",
"body": "### Goal\nCreate a deterministic GitHub issue to hosted API bounty sync path.\n\n### Acceptance criteria\nThe sync plan returns a stable bounty id, idempotency key, hosted API call, funding page URL, status URL, and payment-boundary wording.\n\n### Template\nsmall-code-change\n\n### Suggested amount\n20 USDC\n\n### Funding mode\nBaseUsdcEscrow\n\n### Privacy\nPublic\n",
"api_base_url": "https://api.agentbounties.example",
"existing_bounty_ids": []
},
"expect_ready": true,
"expect_operation": "Create",
"expect_call_count": 1,
"expect_bounty_id": "e23cda07-f8c9-30eb-984c-4e56aa10e38e"
},
{
"name": "duplicate-rerun",
"input": {
"repository": "agent-bounties/agent-bounties",
"issue_url": "https://github.com/agent-bounties/agent-bounties/issues/115",
"title": "[bounty]: Sync GitHub issue into API",
"body": "### Goal\nCreate a deterministic GitHub issue to hosted API bounty sync path.\n\n### Acceptance criteria\nThe sync plan returns a stable bounty id, idempotency key, hosted API call, funding page URL, status URL, and payment-boundary wording.\n\n### Template\nsmall-code-change\n\n### Suggested amount\n20 USDC\n\n### Funding mode\nBaseUsdcEscrow\n\n### Privacy\nPublic\n",
"api_base_url": "https://api.agentbounties.example",
"existing_bounty_ids": ["e23cda07-f8c9-30eb-984c-4e56aa10e38e"]
},
"expect_ready": true,
"expect_operation": "Update",
"expect_call_count": 1,
"expect_bounty_id": "e23cda07-f8c9-30eb-984c-4e56aa10e38e"
},
{
"name": "title-edit-rerun",
"input": {
"repository": "agent-bounties/agent-bounties",
"issue_url": "https://github.com/agent-bounties/agent-bounties/issues/115",
"title": "[bounty]: Sync hosted GitHub issue bounty records",
"body": "### Goal\nKeep one hosted API bounty record attached to this GitHub issue even after maintainers edit the issue title.\n\n### Acceptance criteria\nA rerun after a title/body edit returns the same bounty id and updates the existing hosted record instead of creating a duplicate.\n\n### Template\nsmall-code-change\n\n### Suggested amount\n20 USDC\n\n### Funding mode\nBaseUsdcEscrow\n\n### Privacy\nPublic\n",
"api_base_url": "https://api.agentbounties.example",
"existing_bounty_ids": ["e23cda07-f8c9-30eb-984c-4e56aa10e38e"]
},
"expect_ready": true,
"expect_operation": "Update",
"expect_call_count": 1,
"expect_bounty_id": "e23cda07-f8c9-30eb-984c-4e56aa10e38e"
},
{
"name": "invalid-issue",
"input": {
"repository": "agent-bounties/agent-bounties",
"issue_url": "https://github.com/agent-bounties/agent-bounties/issues/115",
"title": "[bounty]: Missing terms",
"body": "### Goal\nOnly a goal was provided.\n",
"api_base_url": "https://api.agentbounties.example",
"existing_bounty_ids": []
},
"expect_ready": false,
"expect_operation": "InvalidIssue",
"expect_call_count": 0
},
{
"name": "hosted-api-failure",
"input": {
"repository": "agent-bounties/agent-bounties",
"issue_url": "https://github.com/agent-bounties/agent-bounties/issues/115",
"title": "[bounty]: Sync GitHub issue into API",
"body": "### Goal\nCreate a deterministic GitHub issue to hosted API bounty sync path.\n\n### Acceptance criteria\nThe sync plan returns a stable bounty id, idempotency key, hosted API call, funding page URL, status URL, and payment-boundary wording.\n\n### Template\nsmall-code-change\n\n### Suggested amount\n20 USDC\n\n### Funding mode\nBaseUsdcEscrow\n\n### Privacy\nPublic\n",
"api_base_url": "https://api.agentbounties.example",
"existing_bounty_ids": [],
"hosted_api_error": "GET /v1/bounties/e23cda07-f8c9-30eb-984c-4e56aa10e38e returned 503"
},
"expect_ready": false,
"expect_operation": "HostedApiUnavailable",
"expect_call_count": 0,
"expect_bounty_id": "e23cda07-f8c9-30eb-984c-4e56aa10e38e"
}
]