@b3os/cli 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +87 -8
  2. package/assets/b3os-run.py +137 -0
  3. package/assets/skill/b3os/SKILL.md +111 -0
  4. package/dist/commands/_agents.d.ts +14 -0
  5. package/dist/commands/_agents.js +33 -0
  6. package/dist/commands/_agents.js.map +1 -0
  7. package/dist/commands/_common.js +6 -2
  8. package/dist/commands/_common.js.map +1 -1
  9. package/dist/commands/_context.d.ts +49 -0
  10. package/dist/commands/_context.js +260 -0
  11. package/dist/commands/_context.js.map +1 -0
  12. package/dist/commands/_next.d.ts +39 -0
  13. package/dist/commands/_next.js +77 -0
  14. package/dist/commands/_next.js.map +1 -0
  15. package/dist/commands/agent.d.ts +42 -0
  16. package/dist/commands/agent.js +218 -0
  17. package/dist/commands/agent.js.map +1 -0
  18. package/dist/commands/app.d.ts +2 -5
  19. package/dist/commands/app.js +229 -69
  20. package/dist/commands/app.js.map +1 -1
  21. package/dist/commands/auth.d.ts +70 -2
  22. package/dist/commands/auth.js +308 -33
  23. package/dist/commands/auth.js.map +1 -1
  24. package/dist/commands/docs.d.ts +54 -0
  25. package/dist/commands/docs.js +202 -0
  26. package/dist/commands/docs.js.map +1 -0
  27. package/dist/commands/doctor.d.ts +23 -0
  28. package/dist/commands/doctor.js +313 -0
  29. package/dist/commands/doctor.js.map +1 -0
  30. package/dist/commands/init.d.ts +38 -1
  31. package/dist/commands/init.js +259 -60
  32. package/dist/commands/init.js.map +1 -1
  33. package/dist/commands/listen.d.ts +30 -0
  34. package/dist/commands/listen.js +194 -0
  35. package/dist/commands/listen.js.map +1 -0
  36. package/dist/commands/manifest.d.ts +13 -1
  37. package/dist/commands/manifest.js +59 -7
  38. package/dist/commands/manifest.js.map +1 -1
  39. package/dist/commands/mcp.d.ts +25 -2
  40. package/dist/commands/mcp.js +120 -11
  41. package/dist/commands/mcp.js.map +1 -1
  42. package/dist/commands/sandbox.d.ts +35 -6
  43. package/dist/commands/sandbox.js +208 -9
  44. package/dist/commands/sandbox.js.map +1 -1
  45. package/dist/commands/setup.d.ts +39 -0
  46. package/dist/commands/setup.js +203 -0
  47. package/dist/commands/setup.js.map +1 -0
  48. package/dist/commands/tool.d.ts +109 -1
  49. package/dist/commands/tool.js +635 -47
  50. package/dist/commands/tool.js.map +1 -1
  51. package/dist/config.d.ts +30 -6
  52. package/dist/config.js +39 -8
  53. package/dist/config.js.map +1 -1
  54. package/dist/ctx.d.ts +5 -45
  55. package/dist/ctx.js +25 -160
  56. package/dist/ctx.js.map +1 -1
  57. package/dist/docs/index.json +1 -0
  58. package/dist/docs/pages/actions/call.md +300 -0
  59. package/dist/docs/pages/actions/catalog/airtable.md +737 -0
  60. package/dist/docs/pages/actions/catalog/arxiv.md +166 -0
  61. package/dist/docs/pages/actions/catalog/chainalysis-sanctions.md +125 -0
  62. package/dist/docs/pages/actions/catalog/coingecko.md +1558 -0
  63. package/dist/docs/pages/actions/catalog/deps-dev.md +465 -0
  64. package/dist/docs/pages/actions/catalog/dexscreener.md +568 -0
  65. package/dist/docs/pages/actions/catalog/discord.md +784 -0
  66. package/dist/docs/pages/actions/catalog/finnhub.md +776 -0
  67. package/dist/docs/pages/actions/catalog/frankfurter.md +438 -0
  68. package/dist/docs/pages/actions/catalog/github.md +1853 -0
  69. package/dist/docs/pages/actions/catalog/gmail.md +575 -0
  70. package/dist/docs/pages/actions/catalog/google-calendar.md +654 -0
  71. package/dist/docs/pages/actions/catalog/google-drive.md +502 -0
  72. package/dist/docs/pages/actions/catalog/google-sheets.md +700 -0
  73. package/dist/docs/pages/actions/catalog/hacker-news.md +542 -0
  74. package/dist/docs/pages/actions/catalog/http.md +824 -0
  75. package/dist/docs/pages/actions/catalog/hyperliquid.md +942 -0
  76. package/dist/docs/pages/actions/catalog/jira.md +920 -0
  77. package/dist/docs/pages/actions/catalog/kalshi.md +917 -0
  78. package/dist/docs/pages/actions/catalog/linear.md +1030 -0
  79. package/dist/docs/pages/actions/catalog/markets.md +21 -0
  80. package/dist/docs/pages/actions/catalog/morpho.md +247 -0
  81. package/dist/docs/pages/actions/catalog/notion.md +1077 -0
  82. package/dist/docs/pages/actions/catalog/nws.md +485 -0
  83. package/dist/docs/pages/actions/catalog/open-meteo.md +559 -0
  84. package/dist/docs/pages/actions/catalog/polymarket.md +1523 -0
  85. package/dist/docs/pages/actions/catalog/pushbullet.md +220 -0
  86. package/dist/docs/pages/actions/catalog/resend.md +307 -0
  87. package/dist/docs/pages/actions/catalog/s3.md +513 -0
  88. package/dist/docs/pages/actions/catalog/sec-edgar.md +487 -0
  89. package/dist/docs/pages/actions/catalog/slack.md +2629 -0
  90. package/dist/docs/pages/actions/catalog/stripe.md +1405 -0
  91. package/dist/docs/pages/actions/catalog/wikipedia.md +379 -0
  92. package/dist/docs/pages/actions/catalog.md +46 -0
  93. package/dist/docs/pages/actions/limits.md +50 -0
  94. package/dist/docs/pages/actions/model-tools.md +225 -0
  95. package/dist/docs/pages/actions/packs.md +148 -0
  96. package/dist/docs/pages/actions/settings.md +69 -0
  97. package/dist/docs/pages/actions/tools.md +244 -0
  98. package/dist/docs/pages/actions/triggers.md +149 -0
  99. package/dist/docs/pages/actions.md +88 -0
  100. package/dist/docs/pages/compat/anthropic.md +168 -0
  101. package/dist/docs/pages/compat/e2b.md +194 -0
  102. package/dist/docs/pages/compat/firecrawl.md +138 -0
  103. package/dist/docs/pages/compat/openai.md +168 -0
  104. package/dist/docs/pages/concepts/auth.md +151 -0
  105. package/dist/docs/pages/concepts/beta.md +55 -0
  106. package/dist/docs/pages/concepts/glossary.md +71 -0
  107. package/dist/docs/pages/concepts/ids.md +98 -0
  108. package/dist/docs/pages/concepts/jobs.md +229 -0
  109. package/dist/docs/pages/concepts/latency.md +138 -0
  110. package/dist/docs/pages/concepts/limits.md +191 -0
  111. package/dist/docs/pages/concepts/stack.md +59 -0
  112. package/dist/docs/pages/concepts/timing.md +86 -0
  113. package/dist/docs/pages/concepts/usage.md +110 -0
  114. package/dist/docs/pages/design/b3os-yaml.md +370 -0
  115. package/dist/docs/pages/design/deploy-from-github.md +122 -0
  116. package/dist/docs/pages/design/observability.md +134 -0
  117. package/dist/docs/pages/errors.md +1824 -0
  118. package/dist/docs/pages/infer/chat.md +570 -0
  119. package/dist/docs/pages/infer/limits.md +55 -0
  120. package/dist/docs/pages/infer/messages.md +185 -0
  121. package/dist/docs/pages/infer/responses.md +173 -0
  122. package/dist/docs/pages/infer/settings.md +154 -0
  123. package/dist/docs/pages/infer/speech.md +323 -0
  124. package/dist/docs/pages/infer.md +154 -0
  125. package/dist/docs/pages/introduction.md +162 -0
  126. package/dist/docs/pages/platform/addresses.md +174 -0
  127. package/dist/docs/pages/platform/call-log.md +99 -0
  128. package/dist/docs/pages/platform/custom-domains.md +104 -0
  129. package/dist/docs/pages/platform/keys.md +79 -0
  130. package/dist/docs/pages/platform/limits.md +57 -0
  131. package/dist/docs/pages/platform/members.md +101 -0
  132. package/dist/docs/pages/platform/requests.md +116 -0
  133. package/dist/docs/pages/platform/settings.md +129 -0
  134. package/dist/docs/pages/platform/webhooks.md +68 -0
  135. package/dist/docs/pages/platform.md +67 -0
  136. package/dist/docs/pages/quickstart/mcp.md +94 -0
  137. package/dist/docs/pages/quickstart/sandbox-agent.md +205 -0
  138. package/dist/docs/pages/quickstart/scrape.md +134 -0
  139. package/dist/docs/pages/quickstart.md +45 -0
  140. package/dist/docs/pages/render/inspections.md +162 -0
  141. package/dist/docs/pages/render/limits.md +72 -0
  142. package/dist/docs/pages/render/screenshots.md +179 -0
  143. package/dist/docs/pages/render/settings.md +431 -0
  144. package/dist/docs/pages/render/styles.md +342 -0
  145. package/dist/docs/pages/render/videos.md +272 -0
  146. package/dist/docs/pages/render.md +118 -0
  147. package/dist/docs/pages/routines/callables.md +174 -0
  148. package/dist/docs/pages/routines/definitions.md +361 -0
  149. package/dist/docs/pages/routines/limits.md +117 -0
  150. package/dist/docs/pages/routines/runs.md +328 -0
  151. package/dist/docs/pages/routines/settings.md +104 -0
  152. package/dist/docs/pages/routines/triggers.md +339 -0
  153. package/dist/docs/pages/routines.md +216 -0
  154. package/dist/docs/pages/sandboxes/agents.md +217 -0
  155. package/dist/docs/pages/sandboxes/commands.md +272 -0
  156. package/dist/docs/pages/sandboxes/images.md +166 -0
  157. package/dist/docs/pages/sandboxes/limits.md +143 -0
  158. package/dist/docs/pages/sandboxes/ports.md +260 -0
  159. package/dist/docs/pages/sandboxes/settings.md +358 -0
  160. package/dist/docs/pages/sandboxes/snapshots.md +423 -0
  161. package/dist/docs/pages/sandboxes/swarms.md +146 -0
  162. package/dist/docs/pages/sandboxes/volumes.md +131 -0
  163. package/dist/docs/pages/sandboxes.md +231 -0
  164. package/dist/docs/pages/sdks/cli.md +121 -0
  165. package/dist/docs/pages/sdks/mcp.md +169 -0
  166. package/dist/docs/pages/sdks/python.md +146 -0
  167. package/dist/docs/pages/sdks/typescript.md +202 -0
  168. package/dist/docs/pages/sdks.md +282 -0
  169. package/dist/docs/pages/settings.md +33 -0
  170. package/dist/docs/pages/vault/limits.md +46 -0
  171. package/dist/docs/pages/vault.md +133 -0
  172. package/dist/docs/pages/vision/agent-browser.md +115 -0
  173. package/dist/docs/pages/vision/crawl.md +333 -0
  174. package/dist/docs/pages/vision/extract.md +152 -0
  175. package/dist/docs/pages/vision/fetcher.md +15 -0
  176. package/dist/docs/pages/vision/limits.md +79 -0
  177. package/dist/docs/pages/vision/profiles.md +111 -0
  178. package/dist/docs/pages/vision/proxy.md +131 -0
  179. package/dist/docs/pages/vision/scrape.md +356 -0
  180. package/dist/docs/pages/vision/sessions.md +311 -0
  181. package/dist/docs/pages/vision/settings.md +656 -0
  182. package/dist/docs/pages/vision.md +175 -0
  183. package/dist/errors.d.ts +129 -0
  184. package/dist/errors.js +326 -0
  185. package/dist/errors.js.map +1 -0
  186. package/dist/main.d.ts +1 -1
  187. package/dist/main.js +26 -13
  188. package/dist/main.js.map +1 -1
  189. package/dist/manifest/domains.d.ts +50 -0
  190. package/dist/manifest/domains.js +159 -0
  191. package/dist/manifest/domains.js.map +1 -0
  192. package/dist/manifest/link.d.ts +20 -0
  193. package/dist/manifest/link.js +24 -0
  194. package/dist/manifest/link.js.map +1 -0
  195. package/dist/manifest/record.d.ts +1 -1
  196. package/dist/tool/archive.d.ts +33 -0
  197. package/dist/tool/archive.js +174 -0
  198. package/dist/tool/archive.js.map +1 -0
  199. package/dist/tool/calls.d.ts +46 -0
  200. package/dist/tool/calls.js +274 -0
  201. package/dist/tool/calls.js.map +1 -0
  202. package/dist/tool/checks.d.ts +21 -0
  203. package/dist/tool/checks.js +145 -0
  204. package/dist/tool/checks.js.map +1 -0
  205. package/dist/tool/elf.d.ts +19 -0
  206. package/dist/tool/elf.js +107 -0
  207. package/dist/tool/elf.js.map +1 -0
  208. package/dist/tool/predict.d.ts +8 -0
  209. package/dist/tool/predict.js +38 -0
  210. package/dist/tool/predict.js.map +1 -0
  211. package/dist/tool/ustar.d.ts +5 -0
  212. package/dist/tool/ustar.js +220 -0
  213. package/dist/tool/ustar.js.map +1 -0
  214. package/package.json +6 -5
@@ -0,0 +1,1853 @@
1
+ # GitHub
2
+
3
+ > The io.b3os/github pack: 17 actions and 2 triggers with call snippets, fixture outputs, connection setup and error codes, generated from version 1.0.0.
4
+
5
+ Source: https://docs.beta.b3os.org/actions/catalog/github.md
6
+
7
+ <a id="github"></a>
8
+
9
+ `io.b3os/github` 1.0.0 · `developer-tools`, `issue-tracking`, `source-control` · MIT
10
+
11
+ Work with GitHub repositories using your own token: read repositories, files, commits, releases and Actions runs; search, read, open, comment on, label and close issues; list and inspect pull requests; react to repository events through a webhook B3OS creates and removes for you, or poll for new issues. Uses the REST API version 2022-11-28 at api.github.com (not GitHub Enterprise Server). A fine-grained personal access token or GitHub App token with Contents, Issues, Pull requests and Actions read access covers the read actions; the write actions need Issues write, and the webhook trigger needs Webhooks write (admin:repo_hook for classic tokens).
12
+
13
+ Every call's result carries `upstream_status` and `timing`: `validate_ms`, `inject_ms`, `render_ms`, `upstream_ms`, `map_ms` and `total_ms`. `upstream` is the service's time; the others are B3OS's own ([call actions](https://docs.beta.b3os.org/actions/call)). The snippets below show no timing values, because a fixture records none.
14
+
15
+ ## Connection
16
+
17
+ `token`, type `bearer`: GitHub token.
18
+
19
+ A fine-grained personal access token, a classic token, or a GitHub App installation token. Grant only the repositories and permissions the actions you use need.
20
+
21
+ How to get one: [docs.github.com](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).
22
+
23
+ The credential is sent only to `api.github.com`.
24
+
25
+ Store the credential once as a [vault connection](https://docs.beta.b3os.org/vault) for this pack and key, then name its id in a call's `connections`. Leave the key out and B3OS uses the project's newest connection for the pack and key without a `subject` ([connections](https://docs.beta.b3os.org/actions/call#connections)).
26
+
27
+ Hosts it reaches: `api.github.com`.
28
+
29
+ ## Actions
30
+
31
+ | Action | Effect | MCP tool | Title |
32
+ |---|---|---|---|
33
+ | [`get-repo`](https://docs.beta.b3os.org/actions/catalog/github#github-get-repo) | read | `github__get-repo` | Get repository |
34
+ | [`list-issues`](https://docs.beta.b3os.org/actions/catalog/github#github-list-issues) | read | `github__list-issues` | List issues |
35
+ | [`get-issue`](https://docs.beta.b3os.org/actions/catalog/github#github-get-issue) | read | `github__get-issue` | Get issue |
36
+ | [`search-issues`](https://docs.beta.b3os.org/actions/catalog/github#github-search-issues) | read | `github__search-issues` | Search issues and pull requests |
37
+ | [`create-issue`](https://docs.beta.b3os.org/actions/catalog/github#github-create-issue) | write | `github__create-issue` | Create issue |
38
+ | [`add-issue-comment`](https://docs.beta.b3os.org/actions/catalog/github#github-add-issue-comment) | write | `github__add-issue-comment` | Comment on issue or pull request |
39
+ | [`list-issue-comments`](https://docs.beta.b3os.org/actions/catalog/github#github-list-issue-comments) | read | `github__list-issue-comments` | List issue comments |
40
+ | [`close-issue`](https://docs.beta.b3os.org/actions/catalog/github#github-close-issue) | write | `github__close-issue` | Close issue |
41
+ | [`add-labels`](https://docs.beta.b3os.org/actions/catalog/github#github-add-labels) | write | `github__add-labels` | Add labels |
42
+ | [`list-pull-requests`](https://docs.beta.b3os.org/actions/catalog/github#github-list-pull-requests) | read | `github__list-pull-requests` | List pull requests |
43
+ | [`get-pull-request`](https://docs.beta.b3os.org/actions/catalog/github#github-get-pull-request) | read | `github__get-pull-request` | Get pull request |
44
+ | [`get-file-contents`](https://docs.beta.b3os.org/actions/catalog/github#github-get-file-contents) | read | `github__get-file-contents` | Get file contents |
45
+ | [`list-commits`](https://docs.beta.b3os.org/actions/catalog/github#github-list-commits) | read | `github__list-commits` | List commits |
46
+ | [`get-latest-release`](https://docs.beta.b3os.org/actions/catalog/github#github-get-latest-release) | read | `github__get-latest-release` | Get latest release |
47
+ | [`list-workflow-runs`](https://docs.beta.b3os.org/actions/catalog/github#github-list-workflow-runs) | read | `github__list-workflow-runs` | List Actions runs |
48
+ | [`create-webhook`](https://docs.beta.b3os.org/actions/catalog/github#github-create-webhook) | write | `github__create-webhook` | Create repository webhook |
49
+ | [`delete-webhook`](https://docs.beta.b3os.org/actions/catalog/github#github-delete-webhook) | irreversible | `github__delete-webhook` | Delete repository webhook |
50
+
51
+ <h3 id="github-get-repo"><code>get-repo</code></h3>
52
+
53
+ **Get repository.** One repository's metadata: description, visibility, default branch, primary language, topics, license, stars, forks, open issue and pull request count, archived flag and last push time.
54
+
55
+ Ref `io.b3os/github/get-repo@1.0.0` · effect `read` · connection `token` · MCP tool `github__get-repo`
56
+
57
+ **curl**
58
+
59
+ ```bash
60
+ curl -s https://beta-api.b3os.org/v1/actions/call \
61
+ -H "Authorization: Bearer $B3OS_API_KEY" \
62
+ -H "Content-Type: application/json" \
63
+ -d '{
64
+ "ref": "io.b3os/github/get-repo@1",
65
+ "input": {"owner": "acme", "repo": "widgets"},
66
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
67
+ }'
68
+ ```
69
+ **TypeScript**
70
+
71
+ ```ts
72
+ import { B3OS } from "@b3os/sdk";
73
+
74
+ const b3os = new B3OS();
75
+ const result = await b3os.actions.call({
76
+ ref: "io.b3os/github/get-repo@1",
77
+ input: { owner: "acme", repo: "widgets" },
78
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
79
+ });
80
+ console.log(result.output);
81
+ ```
82
+ **Python**
83
+
84
+ ```python
85
+ from b3os import B3OS
86
+
87
+ b3os = B3OS()
88
+ result = b3os.actions.call({
89
+ "ref": "io.b3os/github/get-repo@1",
90
+ "input": {"owner": "acme", "repo": "widgets"},
91
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
92
+ })
93
+ print(result["output"])
94
+ ```
95
+ **MCP**
96
+
97
+ ```json
98
+ {
99
+ "method": "tools/call",
100
+ "params": {
101
+ "name": "github__get-repo",
102
+ "arguments": {"owner": "acme", "repo": "widgets"}
103
+ }
104
+ }
105
+ ```
106
+
107
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__get-repo` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
108
+
109
+ Output, labeled `fixture`: Get repository (documented response shape, example values). From the bundle's `fixtures/get-repo.json`, not a live call.
110
+
111
+ ```json
112
+ {
113
+ "full_name": "acme/widgets",
114
+ "description": "Widget toolkit for the acme storefront",
115
+ "private": false,
116
+ "html_url": "https://github.com/acme/widgets",
117
+ "default_branch": "main",
118
+ "language": "TypeScript",
119
+ "topics": ["ui", "components"],
120
+ "license": "MIT",
121
+ "stargazers_count": 1380,
122
+ "forks_count": 42,
123
+ "open_issues_count": 17,
124
+ "archived": false,
125
+ "pushed_at": "2026-10-25T21:14:02Z"
126
+ }
127
+ ```
128
+
129
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
130
+
131
+ | `pack_error.code` | Service status | Retryable | Message |
132
+ |---|---|---|---|
133
+ | `not_found` | 404 | no | Repository not found, or the token cannot see it. |
134
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
135
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
136
+ | `forbidden` | 403 | no | built from the service's response |
137
+ | `gone` | 410 | no | Issues are disabled for this repository. |
138
+ | `invalid_request` | 422 | no | built from the service's response |
139
+
140
+ <h3 id="github-list-issues"><code>list-issues</code></h3>
141
+
142
+ **List issues.** Issues in a repository with filters for state, labels, assignee and update time, newest first by default. GitHub counts pull requests as issues; is_pull_request tells them apart. One page per call; increase page to continue.
143
+
144
+ Ref `io.b3os/github/list-issues@1.0.0` · effect `read` · connection `token` · MCP tool `github__list-issues`
145
+
146
+ **curl**
147
+
148
+ ```bash
149
+ curl -s https://beta-api.b3os.org/v1/actions/call \
150
+ -H "Authorization: Bearer $B3OS_API_KEY" \
151
+ -H "Content-Type: application/json" \
152
+ -d '{
153
+ "ref": "io.b3os/github/list-issues@1",
154
+ "input": {
155
+ "owner": "acme",
156
+ "repo": "widgets",
157
+ "labels": ["bug"],
158
+ "per_page": 2
159
+ },
160
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
161
+ }'
162
+ ```
163
+ **TypeScript**
164
+
165
+ ```ts
166
+ import { B3OS } from "@b3os/sdk";
167
+
168
+ const b3os = new B3OS();
169
+ const result = await b3os.actions.call({
170
+ ref: "io.b3os/github/list-issues@1",
171
+ input: { owner: "acme", repo: "widgets", labels: ["bug"], per_page: 2 },
172
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
173
+ });
174
+ console.log(result.output);
175
+ ```
176
+ **Python**
177
+
178
+ ```python
179
+ from b3os import B3OS
180
+
181
+ b3os = B3OS()
182
+ result = b3os.actions.call({
183
+ "ref": "io.b3os/github/list-issues@1",
184
+ "input": {
185
+ "owner": "acme",
186
+ "repo": "widgets",
187
+ "labels": ["bug"],
188
+ "per_page": 2,
189
+ },
190
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
191
+ })
192
+ print(result["output"])
193
+ ```
194
+ **MCP**
195
+
196
+ ```json
197
+ {
198
+ "method": "tools/call",
199
+ "params": {
200
+ "name": "github__list-issues",
201
+ "arguments": {
202
+ "owner": "acme",
203
+ "repo": "widgets",
204
+ "labels": ["bug"],
205
+ "per_page": 2
206
+ }
207
+ }
208
+ }
209
+ ```
210
+
211
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__list-issues` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
212
+
213
+ Output, labeled `fixture`: List issues (documented response shape, example values). From the bundle's `fixtures/list-issues.json`, not a live call.
214
+
215
+ ```json
216
+ {
217
+ "issues": [
218
+ {
219
+ "number": 42,
220
+ "title": "Cart overflows on narrow screens",
221
+ "state": "open",
222
+ "state_reason": null,
223
+ "html_url": "https://github.com/acme/widgets/issues/42",
224
+ "author": "mona-example",
225
+ "labels": ["bug"],
226
+ "assignees": ["hubot-example"],
227
+ "comments": 2,
228
+ "created_at": "2026-10-24T17:11:20Z",
229
+ "updated_at": "2026-10-25T09:02:41Z",
230
+ "closed_at": null,
231
+ "is_pull_request": false
232
+ },
233
+ {
234
+ "number": 41,
235
+ "title": "Typo in README",
236
+ "state": "open",
237
+ "state_reason": null,
238
+ "html_url": "https://github.com/acme/widgets/issues/41",
239
+ "author": "mona-example",
240
+ "labels": [],
241
+ "assignees": [],
242
+ "comments": 0,
243
+ "created_at": "2026-10-24T17:11:20Z",
244
+ "updated_at": "2026-10-25T09:02:41Z",
245
+ "closed_at": null,
246
+ "is_pull_request": true
247
+ }
248
+ ]
249
+ }
250
+ ```
251
+
252
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
253
+
254
+ | `pack_error.code` | Service status | Retryable | Message |
255
+ |---|---|---|---|
256
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
257
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
258
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
259
+ | `forbidden` | 403 | no | built from the service's response |
260
+ | `gone` | 410 | no | Issues are disabled for this repository. |
261
+ | `invalid_request` | 422 | no | built from the service's response |
262
+
263
+ <h3 id="github-get-issue"><code>get-issue</code></h3>
264
+
265
+ **Get issue.** One issue (or pull request) by number with its full Markdown body, labels, assignees, comment count and timestamps. Comments themselves are in list-issue-comments.
266
+
267
+ Ref `io.b3os/github/get-issue@1.0.0` · effect `read` · connection `token` · MCP tool `github__get-issue`
268
+
269
+ **curl**
270
+
271
+ ```bash
272
+ curl -s https://beta-api.b3os.org/v1/actions/call \
273
+ -H "Authorization: Bearer $B3OS_API_KEY" \
274
+ -H "Content-Type: application/json" \
275
+ -d '{
276
+ "ref": "io.b3os/github/get-issue@1",
277
+ "input": {"owner": "acme", "repo": "widgets", "number": 42},
278
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
279
+ }'
280
+ ```
281
+ **TypeScript**
282
+
283
+ ```ts
284
+ import { B3OS } from "@b3os/sdk";
285
+
286
+ const b3os = new B3OS();
287
+ const result = await b3os.actions.call({
288
+ ref: "io.b3os/github/get-issue@1",
289
+ input: { owner: "acme", repo: "widgets", number: 42 },
290
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
291
+ });
292
+ console.log(result.output);
293
+ ```
294
+ **Python**
295
+
296
+ ```python
297
+ from b3os import B3OS
298
+
299
+ b3os = B3OS()
300
+ result = b3os.actions.call({
301
+ "ref": "io.b3os/github/get-issue@1",
302
+ "input": {"owner": "acme", "repo": "widgets", "number": 42},
303
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
304
+ })
305
+ print(result["output"])
306
+ ```
307
+ **MCP**
308
+
309
+ ```json
310
+ {
311
+ "method": "tools/call",
312
+ "params": {
313
+ "name": "github__get-issue",
314
+ "arguments": {"owner": "acme", "repo": "widgets", "number": 42}
315
+ }
316
+ }
317
+ ```
318
+
319
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__get-issue` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
320
+
321
+ Output, labeled `fixture`: Get issue (documented response shape, example values). From the bundle's `fixtures/get-issue.json`, not a live call.
322
+
323
+ ```json
324
+ {
325
+ "number": 42,
326
+ "title": "Cart overflows on narrow screens",
327
+ "state": "open",
328
+ "state_reason": null,
329
+ "html_url": "https://github.com/acme/widgets/issues/42",
330
+ "author": "mona-example",
331
+ "labels": ["bug"],
332
+ "assignees": ["hubot-example"],
333
+ "comments": 2,
334
+ "created_at": "2026-10-24T17:11:20Z",
335
+ "updated_at": "2026-10-25T09:02:41Z",
336
+ "closed_at": null,
337
+ "is_pull_request": false,
338
+ "body": "Steps to reproduce:\n\n1. Open the cart\n2. Resize to 375px"
339
+ }
340
+ ```
341
+
342
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
343
+
344
+ | `pack_error.code` | Service status | Retryable | Message |
345
+ |---|---|---|---|
346
+ | `not_found` | 404 | no | No issue with this number, or the token cannot see the repository. |
347
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
348
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
349
+ | `forbidden` | 403 | no | built from the service's response |
350
+ | `gone` | 410 | no | Issues are disabled for this repository. |
351
+ | `invalid_request` | 422 | no | built from the service's response |
352
+
353
+ <h3 id="github-search-issues"><code>search-issues</code></h3>
354
+
355
+ **Search issues and pull requests.** Search issues and pull requests across GitHub with GitHub's search syntax, for example repo:acme/widgets is:open label:bug or is:pr author:mona review:required. Returns matches with total count; at most 1,000 results are reachable through paging.
356
+
357
+ Ref `io.b3os/github/search-issues@1.0.0` · effect `read` · connection `token` · MCP tool `github__search-issues`
358
+
359
+ **curl**
360
+
361
+ ```bash
362
+ curl -s https://beta-api.b3os.org/v1/actions/call \
363
+ -H "Authorization: Bearer $B3OS_API_KEY" \
364
+ -H "Content-Type: application/json" \
365
+ -d '{
366
+ "ref": "io.b3os/github/search-issues@1",
367
+ "input": {
368
+ "query": "repo:acme/widgets is:issue is:open label:bug",
369
+ "per_page": 1
370
+ },
371
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
372
+ }'
373
+ ```
374
+ **TypeScript**
375
+
376
+ ```ts
377
+ import { B3OS } from "@b3os/sdk";
378
+
379
+ const b3os = new B3OS();
380
+ const result = await b3os.actions.call({
381
+ ref: "io.b3os/github/search-issues@1",
382
+ input: {
383
+ query: "repo:acme/widgets is:issue is:open label:bug",
384
+ per_page: 1,
385
+ },
386
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
387
+ });
388
+ console.log(result.output);
389
+ ```
390
+ **Python**
391
+
392
+ ```python
393
+ from b3os import B3OS
394
+
395
+ b3os = B3OS()
396
+ result = b3os.actions.call({
397
+ "ref": "io.b3os/github/search-issues@1",
398
+ "input": {
399
+ "query": "repo:acme/widgets is:issue is:open label:bug",
400
+ "per_page": 1,
401
+ },
402
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
403
+ })
404
+ print(result["output"])
405
+ ```
406
+ **MCP**
407
+
408
+ ```json
409
+ {
410
+ "method": "tools/call",
411
+ "params": {
412
+ "name": "github__search-issues",
413
+ "arguments": {
414
+ "query": "repo:acme/widgets is:issue is:open label:bug",
415
+ "per_page": 1
416
+ }
417
+ }
418
+ }
419
+ ```
420
+
421
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__search-issues` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
422
+
423
+ Output, labeled `fixture`: Search issues and pull requests (documented response shape, example values). From the bundle's `fixtures/search-issues.json`, not a live call.
424
+
425
+ ```json
426
+ {
427
+ "total_count": 9,
428
+ "incomplete_results": false,
429
+ "items": [
430
+ {
431
+ "number": 42,
432
+ "title": "Cart overflows on narrow screens",
433
+ "state": "open",
434
+ "state_reason": null,
435
+ "html_url": "https://github.com/acme/widgets/issues/42",
436
+ "author": "mona-example",
437
+ "labels": ["bug"],
438
+ "assignees": ["hubot-example"],
439
+ "comments": 2,
440
+ "created_at": "2026-10-24T17:11:20Z",
441
+ "updated_at": "2026-10-25T09:02:41Z",
442
+ "closed_at": null,
443
+ "is_pull_request": false
444
+ }
445
+ ]
446
+ }
447
+ ```
448
+
449
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
450
+
451
+ | `pack_error.code` | Service status | Retryable | Message |
452
+ |---|---|---|---|
453
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
454
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
455
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
456
+ | `forbidden` | 403 | no | built from the service's response |
457
+ | `gone` | 410 | no | Issues are disabled for this repository. |
458
+ | `invalid_request` | 422 | no | built from the service's response |
459
+
460
+ <h3 id="github-create-issue"><code>create-issue</code></h3>
461
+
462
+ **Create issue.** Open a new issue with a title, optional Markdown body, labels and assignees. Returns its number and URL. Not idempotent: calling it twice opens two issues.
463
+
464
+ Ref `io.b3os/github/create-issue@1.0.0` · effect `write` · connection `token` · MCP tool `github__create-issue`
465
+
466
+ **curl**
467
+
468
+ ```bash
469
+ curl -s https://beta-api.b3os.org/v1/actions/call \
470
+ -H "Authorization: Bearer $B3OS_API_KEY" \
471
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
472
+ -H "Content-Type: application/json" \
473
+ -d '{
474
+ "ref": "io.b3os/github/create-issue@1",
475
+ "input": {
476
+ "owner": "acme",
477
+ "repo": "widgets",
478
+ "title": "Flaky test in checkout flow",
479
+ "body": "Seen three times this week on main.",
480
+ "labels": ["bug"]
481
+ },
482
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
483
+ }'
484
+ ```
485
+ **TypeScript**
486
+
487
+ ```ts
488
+ import { B3OS } from "@b3os/sdk";
489
+
490
+ const b3os = new B3OS();
491
+ const result = await b3os.actions.call({
492
+ ref: "io.b3os/github/create-issue@1",
493
+ input: {
494
+ owner: "acme",
495
+ repo: "widgets",
496
+ title: "Flaky test in checkout flow",
497
+ body: "Seen three times this week on main.",
498
+ labels: ["bug"],
499
+ },
500
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
501
+ }, { idempotencyKey: crypto.randomUUID() });
502
+ console.log(result.output);
503
+ ```
504
+ **Python**
505
+
506
+ ```python
507
+ import uuid
508
+ from b3os import B3OS
509
+
510
+ b3os = B3OS()
511
+ result = b3os.actions.call({
512
+ "ref": "io.b3os/github/create-issue@1",
513
+ "input": {
514
+ "owner": "acme",
515
+ "repo": "widgets",
516
+ "title": "Flaky test in checkout flow",
517
+ "body": "Seen three times this week on main.",
518
+ "labels": ["bug"],
519
+ },
520
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
521
+ }, idempotency_key=str(uuid.uuid4()))
522
+ print(result["output"])
523
+ ```
524
+ **MCP**
525
+
526
+ ```json
527
+ {
528
+ "method": "tools/call",
529
+ "params": {
530
+ "name": "github__create-issue",
531
+ "arguments": {
532
+ "owner": "acme",
533
+ "repo": "widgets",
534
+ "title": "Flaky test in checkout flow",
535
+ "body": "Seen three times this week on main.",
536
+ "labels": ["bug"]
537
+ }
538
+ }
539
+ }
540
+ ```
541
+
542
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__create-issue` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
543
+
544
+ Output, labeled `fixture`: Create issue (documented response shape, example values). From the bundle's `fixtures/create-issue.json`, not a live call.
545
+
546
+ ```json
547
+ {
548
+ "number": 43,
549
+ "html_url": "https://github.com/acme/widgets/issues/43",
550
+ "title": "Flaky test in checkout flow",
551
+ "state": "open",
552
+ "created_at": "2026-10-25T18:04:11Z"
553
+ }
554
+ ```
555
+
556
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
557
+
558
+ | `pack_error.code` | Service status | Retryable | Message |
559
+ |---|---|---|---|
560
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
561
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
562
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
563
+ | `forbidden` | 403 | no | built from the service's response |
564
+ | `gone` | 410 | no | Issues are disabled for this repository. |
565
+ | `invalid_request` | 422 | no | built from the service's response |
566
+
567
+ <h3 id="github-add-issue-comment"><code>add-issue-comment</code></h3>
568
+
569
+ **Comment on issue or pull request.** Add a Markdown comment to an issue or pull request (the conversation tab, not a code review comment). Returns the comment id and URL. Not idempotent.
570
+
571
+ Ref `io.b3os/github/add-issue-comment@1.0.0` · effect `write` · connection `token` · MCP tool `github__add-issue-comment`
572
+
573
+ **curl**
574
+
575
+ ```bash
576
+ curl -s https://beta-api.b3os.org/v1/actions/call \
577
+ -H "Authorization: Bearer $B3OS_API_KEY" \
578
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
579
+ -H "Content-Type: application/json" \
580
+ -d '{
581
+ "ref": "io.b3os/github/add-issue-comment@1",
582
+ "input": {
583
+ "owner": "acme",
584
+ "repo": "widgets",
585
+ "number": 42,
586
+ "body": "Reproduced on main at 3f2c1d0; the flex container overflows below 400px."
587
+ },
588
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
589
+ }'
590
+ ```
591
+ **TypeScript**
592
+
593
+ ```ts
594
+ import { B3OS } from "@b3os/sdk";
595
+
596
+ const b3os = new B3OS();
597
+ const result = await b3os.actions.call({
598
+ ref: "io.b3os/github/add-issue-comment@1",
599
+ input: {
600
+ owner: "acme",
601
+ repo: "widgets",
602
+ number: 42,
603
+ body: "Reproduced on main at 3f2c1d0; the flex container overflows below 400px.",
604
+ },
605
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
606
+ }, { idempotencyKey: crypto.randomUUID() });
607
+ console.log(result.output);
608
+ ```
609
+ **Python**
610
+
611
+ ```python
612
+ import uuid
613
+ from b3os import B3OS
614
+
615
+ b3os = B3OS()
616
+ result = b3os.actions.call({
617
+ "ref": "io.b3os/github/add-issue-comment@1",
618
+ "input": {
619
+ "owner": "acme",
620
+ "repo": "widgets",
621
+ "number": 42,
622
+ "body": "Reproduced on main at 3f2c1d0; the flex container overflows below 400px.",
623
+ },
624
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
625
+ }, idempotency_key=str(uuid.uuid4()))
626
+ print(result["output"])
627
+ ```
628
+ **MCP**
629
+
630
+ ```json
631
+ {
632
+ "method": "tools/call",
633
+ "params": {
634
+ "name": "github__add-issue-comment",
635
+ "arguments": {
636
+ "owner": "acme",
637
+ "repo": "widgets",
638
+ "number": 42,
639
+ "body": "Reproduced on main at 3f2c1d0; the flex container overflows below 400px."
640
+ }
641
+ }
642
+ }
643
+ ```
644
+
645
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__add-issue-comment` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
646
+
647
+ Output, labeled `fixture`: Comment on issue or pull request (documented response shape, example values). From the bundle's `fixtures/add-issue-comment.json`, not a live call.
648
+
649
+ ```json
650
+ {
651
+ "id": 2412345678,
652
+ "html_url": "https://github.com/acme/widgets/issues/42#issuecomment-2412345678",
653
+ "created_at": "2026-10-25T18:20:00Z"
654
+ }
655
+ ```
656
+
657
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
658
+
659
+ | `pack_error.code` | Service status | Retryable | Message |
660
+ |---|---|---|---|
661
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
662
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
663
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
664
+ | `forbidden` | 403 | no | built from the service's response |
665
+ | `gone` | 410 | no | Issues are disabled for this repository. |
666
+ | `invalid_request` | 422 | no | built from the service's response |
667
+
668
+ <h3 id="github-list-issue-comments"><code>list-issue-comments</code></h3>
669
+
670
+ **List issue comments.** Comments on an issue or pull request conversation, oldest first: author, Markdown body and times. Page through long threads with page.
671
+
672
+ Ref `io.b3os/github/list-issue-comments@1.0.0` · effect `read` · connection `token` · MCP tool `github__list-issue-comments`
673
+
674
+ **curl**
675
+
676
+ ```bash
677
+ curl -s https://beta-api.b3os.org/v1/actions/call \
678
+ -H "Authorization: Bearer $B3OS_API_KEY" \
679
+ -H "Content-Type: application/json" \
680
+ -d '{
681
+ "ref": "io.b3os/github/list-issue-comments@1",
682
+ "input": {"owner": "acme", "repo": "widgets", "number": 42},
683
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
684
+ }'
685
+ ```
686
+ **TypeScript**
687
+
688
+ ```ts
689
+ import { B3OS } from "@b3os/sdk";
690
+
691
+ const b3os = new B3OS();
692
+ const result = await b3os.actions.call({
693
+ ref: "io.b3os/github/list-issue-comments@1",
694
+ input: { owner: "acme", repo: "widgets", number: 42 },
695
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
696
+ });
697
+ console.log(result.output);
698
+ ```
699
+ **Python**
700
+
701
+ ```python
702
+ from b3os import B3OS
703
+
704
+ b3os = B3OS()
705
+ result = b3os.actions.call({
706
+ "ref": "io.b3os/github/list-issue-comments@1",
707
+ "input": {"owner": "acme", "repo": "widgets", "number": 42},
708
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
709
+ })
710
+ print(result["output"])
711
+ ```
712
+ **MCP**
713
+
714
+ ```json
715
+ {
716
+ "method": "tools/call",
717
+ "params": {
718
+ "name": "github__list-issue-comments",
719
+ "arguments": {"owner": "acme", "repo": "widgets", "number": 42}
720
+ }
721
+ }
722
+ ```
723
+
724
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__list-issue-comments` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
725
+
726
+ Output, labeled `fixture`: List issue comments (documented response shape, example values). From the bundle's `fixtures/list-issue-comments.json`, not a live call.
727
+
728
+ ```json
729
+ {
730
+ "comments": [
731
+ {
732
+ "id": 2412345678,
733
+ "author": "hubot-example",
734
+ "body": "Reproduced on main at 3f2c1d0; the flex container overflows below 400px.",
735
+ "html_url": "https://github.com/acme/widgets/issues/42#issuecomment-2412345678",
736
+ "created_at": "2026-10-25T18:20:00Z",
737
+ "author_association": "MEMBER"
738
+ }
739
+ ]
740
+ }
741
+ ```
742
+
743
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
744
+
745
+ | `pack_error.code` | Service status | Retryable | Message |
746
+ |---|---|---|---|
747
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
748
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
749
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
750
+ | `forbidden` | 403 | no | built from the service's response |
751
+ | `gone` | 410 | no | Issues are disabled for this repository. |
752
+ | `invalid_request` | 422 | no | built from the service's response |
753
+
754
+ <h3 id="github-close-issue"><code>close-issue</code></h3>
755
+
756
+ **Close issue.** Close an issue as completed or as not planned. Closing an already closed issue succeeds and changes nothing.
757
+
758
+ Ref `io.b3os/github/close-issue@1.0.0` · effect `write` · connection `token` · MCP tool `github__close-issue`
759
+
760
+ **curl**
761
+
762
+ ```bash
763
+ curl -s https://beta-api.b3os.org/v1/actions/call \
764
+ -H "Authorization: Bearer $B3OS_API_KEY" \
765
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
766
+ -H "Content-Type: application/json" \
767
+ -d '{
768
+ "ref": "io.b3os/github/close-issue@1",
769
+ "input": {
770
+ "owner": "acme",
771
+ "repo": "widgets",
772
+ "number": 42,
773
+ "reason": "completed"
774
+ },
775
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
776
+ }'
777
+ ```
778
+ **TypeScript**
779
+
780
+ ```ts
781
+ import { B3OS } from "@b3os/sdk";
782
+
783
+ const b3os = new B3OS();
784
+ const result = await b3os.actions.call({
785
+ ref: "io.b3os/github/close-issue@1",
786
+ input: { owner: "acme", repo: "widgets", number: 42, reason: "completed" },
787
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
788
+ }, { idempotencyKey: crypto.randomUUID() });
789
+ console.log(result.output);
790
+ ```
791
+ **Python**
792
+
793
+ ```python
794
+ import uuid
795
+ from b3os import B3OS
796
+
797
+ b3os = B3OS()
798
+ result = b3os.actions.call({
799
+ "ref": "io.b3os/github/close-issue@1",
800
+ "input": {
801
+ "owner": "acme",
802
+ "repo": "widgets",
803
+ "number": 42,
804
+ "reason": "completed",
805
+ },
806
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
807
+ }, idempotency_key=str(uuid.uuid4()))
808
+ print(result["output"])
809
+ ```
810
+ **MCP**
811
+
812
+ ```json
813
+ {
814
+ "method": "tools/call",
815
+ "params": {
816
+ "name": "github__close-issue",
817
+ "arguments": {
818
+ "owner": "acme",
819
+ "repo": "widgets",
820
+ "number": 42,
821
+ "reason": "completed"
822
+ }
823
+ }
824
+ }
825
+ ```
826
+
827
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__close-issue` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
828
+
829
+ Output, labeled `fixture`: Close issue (documented response shape, example values). From the bundle's `fixtures/close-issue.json`, not a live call.
830
+
831
+ ```json
832
+ {
833
+ "number": 42,
834
+ "state": "closed",
835
+ "state_reason": "completed",
836
+ "closed_at": "2026-10-26T08:00:00Z",
837
+ "html_url": "https://github.com/acme/widgets/issues/42"
838
+ }
839
+ ```
840
+
841
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
842
+
843
+ | `pack_error.code` | Service status | Retryable | Message |
844
+ |---|---|---|---|
845
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
846
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
847
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
848
+ | `forbidden` | 403 | no | built from the service's response |
849
+ | `gone` | 410 | no | Issues are disabled for this repository. |
850
+ | `invalid_request` | 422 | no | built from the service's response |
851
+
852
+ <h3 id="github-add-labels"><code>add-labels</code></h3>
853
+
854
+ **Add labels.** Add labels to an issue or pull request, keeping its existing ones. Labels that do not exist yet in the repository are created. Returns the full label list after the change.
855
+
856
+ Ref `io.b3os/github/add-labels@1.0.0` · effect `write` · connection `token` · MCP tool `github__add-labels`
857
+
858
+ **curl**
859
+
860
+ ```bash
861
+ curl -s https://beta-api.b3os.org/v1/actions/call \
862
+ -H "Authorization: Bearer $B3OS_API_KEY" \
863
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
864
+ -H "Content-Type: application/json" \
865
+ -d '{
866
+ "ref": "io.b3os/github/add-labels@1",
867
+ "input": {
868
+ "owner": "acme",
869
+ "repo": "widgets",
870
+ "number": 42,
871
+ "labels": ["needs-triage"]
872
+ },
873
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
874
+ }'
875
+ ```
876
+ **TypeScript**
877
+
878
+ ```ts
879
+ import { B3OS } from "@b3os/sdk";
880
+
881
+ const b3os = new B3OS();
882
+ const result = await b3os.actions.call({
883
+ ref: "io.b3os/github/add-labels@1",
884
+ input: {
885
+ owner: "acme",
886
+ repo: "widgets",
887
+ number: 42,
888
+ labels: ["needs-triage"],
889
+ },
890
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
891
+ }, { idempotencyKey: crypto.randomUUID() });
892
+ console.log(result.output);
893
+ ```
894
+ **Python**
895
+
896
+ ```python
897
+ import uuid
898
+ from b3os import B3OS
899
+
900
+ b3os = B3OS()
901
+ result = b3os.actions.call({
902
+ "ref": "io.b3os/github/add-labels@1",
903
+ "input": {
904
+ "owner": "acme",
905
+ "repo": "widgets",
906
+ "number": 42,
907
+ "labels": ["needs-triage"],
908
+ },
909
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
910
+ }, idempotency_key=str(uuid.uuid4()))
911
+ print(result["output"])
912
+ ```
913
+ **MCP**
914
+
915
+ ```json
916
+ {
917
+ "method": "tools/call",
918
+ "params": {
919
+ "name": "github__add-labels",
920
+ "arguments": {
921
+ "owner": "acme",
922
+ "repo": "widgets",
923
+ "number": 42,
924
+ "labels": ["needs-triage"]
925
+ }
926
+ }
927
+ }
928
+ ```
929
+
930
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__add-labels` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
931
+
932
+ Output, labeled `fixture`: Add labels (documented response shape, example values). From the bundle's `fixtures/add-labels.json`, not a live call.
933
+
934
+ ```json
935
+ {"labels": ["bug", "needs-triage"]}
936
+ ```
937
+
938
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
939
+
940
+ | `pack_error.code` | Service status | Retryable | Message |
941
+ |---|---|---|---|
942
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
943
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
944
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
945
+ | `forbidden` | 403 | no | built from the service's response |
946
+ | `gone` | 410 | no | Issues are disabled for this repository. |
947
+ | `invalid_request` | 422 | no | built from the service's response |
948
+
949
+ <h3 id="github-list-pull-requests"><code>list-pull-requests</code></h3>
950
+
951
+ **List pull requests.** Pull requests in a repository by state, base branch or head (user:branch), sorted by creation, update or popularity. Returns title, author, branches, head commit, draft flag, labels and requested reviewers.
952
+
953
+ Ref `io.b3os/github/list-pull-requests@1.0.0` · effect `read` · connection `token` · MCP tool `github__list-pull-requests`
954
+
955
+ **curl**
956
+
957
+ ```bash
958
+ curl -s https://beta-api.b3os.org/v1/actions/call \
959
+ -H "Authorization: Bearer $B3OS_API_KEY" \
960
+ -H "Content-Type: application/json" \
961
+ -d '{
962
+ "ref": "io.b3os/github/list-pull-requests@1",
963
+ "input": {"owner": "acme", "repo": "widgets", "per_page": 1},
964
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
965
+ }'
966
+ ```
967
+ **TypeScript**
968
+
969
+ ```ts
970
+ import { B3OS } from "@b3os/sdk";
971
+
972
+ const b3os = new B3OS();
973
+ const result = await b3os.actions.call({
974
+ ref: "io.b3os/github/list-pull-requests@1",
975
+ input: { owner: "acme", repo: "widgets", per_page: 1 },
976
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
977
+ });
978
+ console.log(result.output);
979
+ ```
980
+ **Python**
981
+
982
+ ```python
983
+ from b3os import B3OS
984
+
985
+ b3os = B3OS()
986
+ result = b3os.actions.call({
987
+ "ref": "io.b3os/github/list-pull-requests@1",
988
+ "input": {"owner": "acme", "repo": "widgets", "per_page": 1},
989
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
990
+ })
991
+ print(result["output"])
992
+ ```
993
+ **MCP**
994
+
995
+ ```json
996
+ {
997
+ "method": "tools/call",
998
+ "params": {
999
+ "name": "github__list-pull-requests",
1000
+ "arguments": {"owner": "acme", "repo": "widgets", "per_page": 1}
1001
+ }
1002
+ }
1003
+ ```
1004
+
1005
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__list-pull-requests` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1006
+
1007
+ Output, labeled `fixture`: List pull requests (documented response shape, example values). From the bundle's `fixtures/list-pull-requests.json`, not a live call.
1008
+
1009
+ ```json
1010
+ {
1011
+ "pull_requests": [
1012
+ {
1013
+ "number": 43,
1014
+ "title": "Fix cart overflow on narrow screens",
1015
+ "state": "open",
1016
+ "draft": false,
1017
+ "html_url": "https://github.com/acme/widgets/pull/43",
1018
+ "author": "mona-example",
1019
+ "head": "fix-cart",
1020
+ "base": "main",
1021
+ "head_sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
1022
+ "labels": ["bug"],
1023
+ "requested_reviewers": ["hubot-example"],
1024
+ "created_at": "2026-10-25T19:00:00Z",
1025
+ "updated_at": "2026-10-25T20:30:00Z",
1026
+ "merged_at": null
1027
+ }
1028
+ ]
1029
+ }
1030
+ ```
1031
+
1032
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1033
+
1034
+ | `pack_error.code` | Service status | Retryable | Message |
1035
+ |---|---|---|---|
1036
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
1037
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
1038
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
1039
+ | `forbidden` | 403 | no | built from the service's response |
1040
+ | `gone` | 410 | no | Issues are disabled for this repository. |
1041
+ | `invalid_request` | 422 | no | built from the service's response |
1042
+
1043
+ <h3 id="github-get-pull-request"><code>get-pull-request</code></h3>
1044
+
1045
+ **Get pull request.** One pull request with its description and merge state: merged, mergeable and mergeable_state (clean, blocked, dirty, ...), commit count, additions, deletions and changed files. mergeable can be null while GitHub is still computing it; ask again a moment later.
1046
+
1047
+ Ref `io.b3os/github/get-pull-request@1.0.0` · effect `read` · connection `token` · MCP tool `github__get-pull-request`
1048
+
1049
+ **curl**
1050
+
1051
+ ```bash
1052
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1053
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1054
+ -H "Content-Type: application/json" \
1055
+ -d '{
1056
+ "ref": "io.b3os/github/get-pull-request@1",
1057
+ "input": {"owner": "acme", "repo": "widgets", "number": 43},
1058
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1059
+ }'
1060
+ ```
1061
+ **TypeScript**
1062
+
1063
+ ```ts
1064
+ import { B3OS } from "@b3os/sdk";
1065
+
1066
+ const b3os = new B3OS();
1067
+ const result = await b3os.actions.call({
1068
+ ref: "io.b3os/github/get-pull-request@1",
1069
+ input: { owner: "acme", repo: "widgets", number: 43 },
1070
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1071
+ });
1072
+ console.log(result.output);
1073
+ ```
1074
+ **Python**
1075
+
1076
+ ```python
1077
+ from b3os import B3OS
1078
+
1079
+ b3os = B3OS()
1080
+ result = b3os.actions.call({
1081
+ "ref": "io.b3os/github/get-pull-request@1",
1082
+ "input": {"owner": "acme", "repo": "widgets", "number": 43},
1083
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1084
+ })
1085
+ print(result["output"])
1086
+ ```
1087
+ **MCP**
1088
+
1089
+ ```json
1090
+ {
1091
+ "method": "tools/call",
1092
+ "params": {
1093
+ "name": "github__get-pull-request",
1094
+ "arguments": {"owner": "acme", "repo": "widgets", "number": 43}
1095
+ }
1096
+ }
1097
+ ```
1098
+
1099
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__get-pull-request` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1100
+
1101
+ Output, labeled `fixture`: Get pull request (documented response shape, example values). From the bundle's `fixtures/get-pull-request.json`, not a live call.
1102
+
1103
+ ```json
1104
+ {
1105
+ "number": 43,
1106
+ "title": "Fix cart overflow on narrow screens",
1107
+ "state": "open",
1108
+ "draft": false,
1109
+ "html_url": "https://github.com/acme/widgets/pull/43",
1110
+ "author": "mona-example",
1111
+ "head": "fix-cart",
1112
+ "base": "main",
1113
+ "head_sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
1114
+ "labels": ["bug"],
1115
+ "requested_reviewers": ["hubot-example"],
1116
+ "created_at": "2026-10-25T19:00:00Z",
1117
+ "updated_at": "2026-10-25T20:30:00Z",
1118
+ "merged_at": null,
1119
+ "body": "Fixes #42.",
1120
+ "merged": false,
1121
+ "mergeable": true,
1122
+ "mergeable_state": "blocked",
1123
+ "commits": 2,
1124
+ "additions": 18,
1125
+ "deletions": 4,
1126
+ "changed_files": 3
1127
+ }
1128
+ ```
1129
+
1130
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1131
+
1132
+ | `pack_error.code` | Service status | Retryable | Message |
1133
+ |---|---|---|---|
1134
+ | `not_found` | 404 | no | No pull request with this number, or the token cannot see the repository. |
1135
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
1136
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
1137
+ | `forbidden` | 403 | no | built from the service's response |
1138
+ | `gone` | 410 | no | Issues are disabled for this repository. |
1139
+ | `invalid_request` | 422 | no | built from the service's response |
1140
+
1141
+ <h3 id="github-get-file-contents"><code>get-file-contents</code></h3>
1142
+
1143
+ **Get file contents.** The raw text of one file at a branch, tag or commit (default branch when ref is omitted), for example README.md or .github/workflows/ci.yml. Directories, symlinks and submodules come back as GitHub's JSON description instead. Very large files can exceed the runtime's response size limit.
1144
+
1145
+ Ref `io.b3os/github/get-file-contents@1.0.0` · effect `read` · connection `token` · MCP tool `github__get-file-contents`
1146
+
1147
+ **curl**
1148
+
1149
+ ```bash
1150
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1151
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1152
+ -H "Content-Type: application/json" \
1153
+ -d '{
1154
+ "ref": "io.b3os/github/get-file-contents@1",
1155
+ "input": {
1156
+ "owner": "acme",
1157
+ "repo": "widgets",
1158
+ "path": ".github/workflows/ci.yml",
1159
+ "ref": "main"
1160
+ },
1161
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1162
+ }'
1163
+ ```
1164
+ **TypeScript**
1165
+
1166
+ ```ts
1167
+ import { B3OS } from "@b3os/sdk";
1168
+
1169
+ const b3os = new B3OS();
1170
+ const result = await b3os.actions.call({
1171
+ ref: "io.b3os/github/get-file-contents@1",
1172
+ input: {
1173
+ owner: "acme",
1174
+ repo: "widgets",
1175
+ path: ".github/workflows/ci.yml",
1176
+ ref: "main",
1177
+ },
1178
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1179
+ });
1180
+ console.log(result.output);
1181
+ ```
1182
+ **Python**
1183
+
1184
+ ```python
1185
+ from b3os import B3OS
1186
+
1187
+ b3os = B3OS()
1188
+ result = b3os.actions.call({
1189
+ "ref": "io.b3os/github/get-file-contents@1",
1190
+ "input": {
1191
+ "owner": "acme",
1192
+ "repo": "widgets",
1193
+ "path": ".github/workflows/ci.yml",
1194
+ "ref": "main",
1195
+ },
1196
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1197
+ })
1198
+ print(result["output"])
1199
+ ```
1200
+ **MCP**
1201
+
1202
+ ```json
1203
+ {
1204
+ "method": "tools/call",
1205
+ "params": {
1206
+ "name": "github__get-file-contents",
1207
+ "arguments": {
1208
+ "owner": "acme",
1209
+ "repo": "widgets",
1210
+ "path": ".github/workflows/ci.yml",
1211
+ "ref": "main"
1212
+ }
1213
+ }
1214
+ }
1215
+ ```
1216
+
1217
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__get-file-contents` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1218
+
1219
+ Output, labeled `fixture`: Get file contents (documented response shape, example values). From the bundle's `fixtures/get-file-contents.json`, not a live call.
1220
+
1221
+ ```json
1222
+ {
1223
+ "path": ".github/workflows/ci.yml",
1224
+ "ref": "main",
1225
+ "content": "name: CI\non: [push, pull_request]\njobs:\n test:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: npm ci && npm test\n"
1226
+ }
1227
+ ```
1228
+
1229
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1230
+
1231
+ | `pack_error.code` | Service status | Retryable | Message |
1232
+ |---|---|---|---|
1233
+ | `not_found` | 404 | no | No file at this path and ref, or the token cannot see the repository. |
1234
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
1235
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
1236
+ | `forbidden` | 403 | no | built from the service's response |
1237
+ | `gone` | 410 | no | Issues are disabled for this repository. |
1238
+ | `invalid_request` | 422 | no | built from the service's response |
1239
+
1240
+ <h3 id="github-list-commits"><code>list-commits</code></h3>
1241
+
1242
+ **List commits.** Commits on a branch or under a path, newest first, optionally by author or within a time window: SHA, first line and full message, author, date and URL.
1243
+
1244
+ Ref `io.b3os/github/list-commits@1.0.0` · effect `read` · connection `token` · MCP tool `github__list-commits`
1245
+
1246
+ **curl**
1247
+
1248
+ ```bash
1249
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1250
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1251
+ -H "Content-Type: application/json" \
1252
+ -d '{
1253
+ "ref": "io.b3os/github/list-commits@1",
1254
+ "input": {"owner": "acme", "repo": "widgets", "sha": "main", "per_page": 1},
1255
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1256
+ }'
1257
+ ```
1258
+ **TypeScript**
1259
+
1260
+ ```ts
1261
+ import { B3OS } from "@b3os/sdk";
1262
+
1263
+ const b3os = new B3OS();
1264
+ const result = await b3os.actions.call({
1265
+ ref: "io.b3os/github/list-commits@1",
1266
+ input: { owner: "acme", repo: "widgets", sha: "main", per_page: 1 },
1267
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1268
+ });
1269
+ console.log(result.output);
1270
+ ```
1271
+ **Python**
1272
+
1273
+ ```python
1274
+ from b3os import B3OS
1275
+
1276
+ b3os = B3OS()
1277
+ result = b3os.actions.call({
1278
+ "ref": "io.b3os/github/list-commits@1",
1279
+ "input": {
1280
+ "owner": "acme",
1281
+ "repo": "widgets",
1282
+ "sha": "main",
1283
+ "per_page": 1,
1284
+ },
1285
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1286
+ })
1287
+ print(result["output"])
1288
+ ```
1289
+ **MCP**
1290
+
1291
+ ```json
1292
+ {
1293
+ "method": "tools/call",
1294
+ "params": {
1295
+ "name": "github__list-commits",
1296
+ "arguments": {"owner": "acme", "repo": "widgets", "sha": "main", "per_page": 1}
1297
+ }
1298
+ }
1299
+ ```
1300
+
1301
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__list-commits` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1302
+
1303
+ Output, labeled `fixture`: List commits (documented response shape, example values). From the bundle's `fixtures/list-commits.json`, not a live call.
1304
+
1305
+ ```json
1306
+ {
1307
+ "commits": [
1308
+ {
1309
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
1310
+ "message": "Fix cart overflow on narrow screens\n\nFixes #42.",
1311
+ "author_name": "Mona Example",
1312
+ "author_login": "mona-example",
1313
+ "date": "2026-10-25T20:11:09Z",
1314
+ "html_url": "https://github.com/acme/widgets/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e"
1315
+ }
1316
+ ]
1317
+ }
1318
+ ```
1319
+
1320
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1321
+
1322
+ | `pack_error.code` | Service status | Retryable | Message |
1323
+ |---|---|---|---|
1324
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
1325
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
1326
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
1327
+ | `forbidden` | 403 | no | built from the service's response |
1328
+ | `gone` | 410 | no | Issues are disabled for this repository. |
1329
+ | `invalid_request` | 422 | no | built from the service's response |
1330
+
1331
+ <h3 id="github-get-latest-release"><code>get-latest-release</code></h3>
1332
+
1333
+ **Get latest release.** The latest published release (not a draft or prerelease): tag, name, Markdown notes, publish time and downloadable assets with sizes and download counts. not_found when the repository has no releases.
1334
+
1335
+ Ref `io.b3os/github/get-latest-release@1.0.0` · effect `read` · connection `token` · MCP tool `github__get-latest-release`
1336
+
1337
+ **curl**
1338
+
1339
+ ```bash
1340
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1341
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1342
+ -H "Content-Type: application/json" \
1343
+ -d '{
1344
+ "ref": "io.b3os/github/get-latest-release@1",
1345
+ "input": {"owner": "acme", "repo": "widgets"},
1346
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1347
+ }'
1348
+ ```
1349
+ **TypeScript**
1350
+
1351
+ ```ts
1352
+ import { B3OS } from "@b3os/sdk";
1353
+
1354
+ const b3os = new B3OS();
1355
+ const result = await b3os.actions.call({
1356
+ ref: "io.b3os/github/get-latest-release@1",
1357
+ input: { owner: "acme", repo: "widgets" },
1358
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1359
+ });
1360
+ console.log(result.output);
1361
+ ```
1362
+ **Python**
1363
+
1364
+ ```python
1365
+ from b3os import B3OS
1366
+
1367
+ b3os = B3OS()
1368
+ result = b3os.actions.call({
1369
+ "ref": "io.b3os/github/get-latest-release@1",
1370
+ "input": {"owner": "acme", "repo": "widgets"},
1371
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1372
+ })
1373
+ print(result["output"])
1374
+ ```
1375
+ **MCP**
1376
+
1377
+ ```json
1378
+ {
1379
+ "method": "tools/call",
1380
+ "params": {
1381
+ "name": "github__get-latest-release",
1382
+ "arguments": {"owner": "acme", "repo": "widgets"}
1383
+ }
1384
+ }
1385
+ ```
1386
+
1387
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__get-latest-release` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1388
+
1389
+ Output, labeled `fixture`: Get latest release (documented response shape, example values). From the bundle's `fixtures/get-latest-release.json`, not a live call.
1390
+
1391
+ ```json
1392
+ {
1393
+ "tag_name": "v2.4.0",
1394
+ "name": "v2.4.0",
1395
+ "body": "## What's changed\n\n- Cart: fix overflow on narrow screens (#43)\n- Buttons: new compact size",
1396
+ "published_at": "2026-10-20T15:04:12Z",
1397
+ "html_url": "https://github.com/acme/widgets/releases/tag/v2.4.0",
1398
+ "assets": [
1399
+ {
1400
+ "name": "widgets-2.4.0.tgz",
1401
+ "size": 184320,
1402
+ "download_count": 311,
1403
+ "url": "https://github.com/acme/widgets/releases/download/v2.4.0/widgets-2.4.0.tgz"
1404
+ }
1405
+ ]
1406
+ }
1407
+ ```
1408
+
1409
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1410
+
1411
+ | `pack_error.code` | Service status | Retryable | Message |
1412
+ |---|---|---|---|
1413
+ | `not_found` | 404 | no | The repository has no published release, or the token cannot see it. |
1414
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
1415
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
1416
+ | `forbidden` | 403 | no | built from the service's response |
1417
+ | `gone` | 410 | no | Issues are disabled for this repository. |
1418
+ | `invalid_request` | 422 | no | built from the service's response |
1419
+
1420
+ <h3 id="github-list-workflow-runs"><code>list-workflow-runs</code></h3>
1421
+
1422
+ **List Actions runs.** Recent GitHub Actions workflow runs, newest first, filtered by branch, triggering event or status (queued, in_progress, completed, success, failure, ...): workflow name, title, status, conclusion, branch, commit and timing.
1423
+
1424
+ Ref `io.b3os/github/list-workflow-runs@1.0.0` · effect `read` · connection `token` · MCP tool `github__list-workflow-runs`
1425
+
1426
+ **curl**
1427
+
1428
+ ```bash
1429
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1430
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1431
+ -H "Content-Type: application/json" \
1432
+ -d '{
1433
+ "ref": "io.b3os/github/list-workflow-runs@1",
1434
+ "input": {"owner": "acme", "repo": "widgets", "per_page": 2},
1435
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1436
+ }'
1437
+ ```
1438
+ **TypeScript**
1439
+
1440
+ ```ts
1441
+ import { B3OS } from "@b3os/sdk";
1442
+
1443
+ const b3os = new B3OS();
1444
+ const result = await b3os.actions.call({
1445
+ ref: "io.b3os/github/list-workflow-runs@1",
1446
+ input: { owner: "acme", repo: "widgets", per_page: 2 },
1447
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1448
+ });
1449
+ console.log(result.output);
1450
+ ```
1451
+ **Python**
1452
+
1453
+ ```python
1454
+ from b3os import B3OS
1455
+
1456
+ b3os = B3OS()
1457
+ result = b3os.actions.call({
1458
+ "ref": "io.b3os/github/list-workflow-runs@1",
1459
+ "input": {"owner": "acme", "repo": "widgets", "per_page": 2},
1460
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1461
+ })
1462
+ print(result["output"])
1463
+ ```
1464
+ **MCP**
1465
+
1466
+ ```json
1467
+ {
1468
+ "method": "tools/call",
1469
+ "params": {
1470
+ "name": "github__list-workflow-runs",
1471
+ "arguments": {"owner": "acme", "repo": "widgets", "per_page": 2}
1472
+ }
1473
+ }
1474
+ ```
1475
+
1476
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__list-workflow-runs` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1477
+
1478
+ Output, labeled `fixture`: List Actions runs (documented response shape, example values). From the bundle's `fixtures/list-workflow-runs.json`, not a live call.
1479
+
1480
+ ```json
1481
+ {
1482
+ "total_count": 2,
1483
+ "runs": [
1484
+ {
1485
+ "id": 11223344556,
1486
+ "workflow": "CI",
1487
+ "title": "Fix cart overflow on narrow screens",
1488
+ "run_number": 812,
1489
+ "event": "pull_request",
1490
+ "status": "completed",
1491
+ "conclusion": "failure",
1492
+ "branch": "fix-cart",
1493
+ "head_sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
1494
+ "html_url": "https://github.com/acme/widgets/actions/runs/11223344556",
1495
+ "created_at": "2026-10-25T19:01:00Z",
1496
+ "updated_at": "2026-10-25T19:07:31Z"
1497
+ },
1498
+ {
1499
+ "id": 11223344001,
1500
+ "workflow": "CI",
1501
+ "title": "Buttons: compact size",
1502
+ "run_number": 811,
1503
+ "event": "push",
1504
+ "status": "completed",
1505
+ "conclusion": "success",
1506
+ "branch": "main",
1507
+ "head_sha": "f1e2d3c4b5a6978877665544332211aabbccddee",
1508
+ "html_url": "https://github.com/acme/widgets/actions/runs/11223344001",
1509
+ "created_at": "2026-10-25T15:40:00Z",
1510
+ "updated_at": "2026-10-25T15:46:10Z"
1511
+ }
1512
+ ]
1513
+ }
1514
+ ```
1515
+
1516
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1517
+
1518
+ | `pack_error.code` | Service status | Retryable | Message |
1519
+ |---|---|---|---|
1520
+ | `not_found` | 404 | no | Not found, or the token cannot see this repository. |
1521
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
1522
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
1523
+ | `forbidden` | 403 | no | built from the service's response |
1524
+ | `gone` | 410 | no | Issues are disabled for this repository. |
1525
+ | `invalid_request` | 422 | no | built from the service's response |
1526
+
1527
+ <h3 id="github-create-webhook"><code>create-webhook</code></h3>
1528
+
1529
+ **Create repository webhook.** Create a repository webhook that POSTs the chosen events (issues, pull_request, push, ...) as JSON to a URL, signed with a secret (X-Hub-Signature-256). The repo-event trigger calls this for you; use it directly only for webhooks B3OS does not manage. Needs admin:repo_hook (classic) or Webhooks write (fine-grained).
1530
+
1531
+ Ref `io.b3os/github/create-webhook@1.0.0` · effect `write` · connection `token` · MCP tool `github__create-webhook`
1532
+
1533
+ **curl**
1534
+
1535
+ ```bash
1536
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1537
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1538
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
1539
+ -H "Content-Type: application/json" \
1540
+ -d '{
1541
+ "ref": "io.b3os/github/create-webhook@1",
1542
+ "input": {
1543
+ "owner": "acme",
1544
+ "repo": "widgets",
1545
+ "url": "https://beta-api.b3os.org/v1/actions/hooks/hk_fixture",
1546
+ "secret": "fixture-secret-not-a-real-key",
1547
+ "events": ["issues", "pull_request"]
1548
+ },
1549
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1550
+ }'
1551
+ ```
1552
+ **TypeScript**
1553
+
1554
+ ```ts
1555
+ import { B3OS } from "@b3os/sdk";
1556
+
1557
+ const b3os = new B3OS();
1558
+ const result = await b3os.actions.call({
1559
+ ref: "io.b3os/github/create-webhook@1",
1560
+ input: {
1561
+ owner: "acme",
1562
+ repo: "widgets",
1563
+ url: "https://beta-api.b3os.org/v1/actions/hooks/hk_fixture",
1564
+ secret: "fixture-secret-not-a-real-key",
1565
+ events: ["issues", "pull_request"],
1566
+ },
1567
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1568
+ }, { idempotencyKey: crypto.randomUUID() });
1569
+ console.log(result.output);
1570
+ ```
1571
+ **Python**
1572
+
1573
+ ```python
1574
+ import uuid
1575
+ from b3os import B3OS
1576
+
1577
+ b3os = B3OS()
1578
+ result = b3os.actions.call({
1579
+ "ref": "io.b3os/github/create-webhook@1",
1580
+ "input": {
1581
+ "owner": "acme",
1582
+ "repo": "widgets",
1583
+ "url": "https://beta-api.b3os.org/v1/actions/hooks/hk_fixture",
1584
+ "secret": "fixture-secret-not-a-real-key",
1585
+ "events": ["issues", "pull_request"],
1586
+ },
1587
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1588
+ }, idempotency_key=str(uuid.uuid4()))
1589
+ print(result["output"])
1590
+ ```
1591
+ **MCP**
1592
+
1593
+ ```json
1594
+ {
1595
+ "method": "tools/call",
1596
+ "params": {
1597
+ "name": "github__create-webhook",
1598
+ "arguments": {
1599
+ "owner": "acme",
1600
+ "repo": "widgets",
1601
+ "url": "https://beta-api.b3os.org/v1/actions/hooks/hk_fixture",
1602
+ "secret": "fixture-secret-not-a-real-key",
1603
+ "events": ["issues", "pull_request"]
1604
+ }
1605
+ }
1606
+ }
1607
+ ```
1608
+
1609
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__create-webhook` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1610
+
1611
+ Output, labeled `fixture`: Create repository webhook (documented response shape, example values). From the bundle's `fixtures/create-webhook.json`, not a live call.
1612
+
1613
+ ```json
1614
+ {
1615
+ "id": 512345678,
1616
+ "events": ["issues", "pull_request"],
1617
+ "active": true,
1618
+ "created_at": "2026-10-26T12:00:00Z"
1619
+ }
1620
+ ```
1621
+
1622
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1623
+
1624
+ | `pack_error.code` | Service status | Retryable | Message |
1625
+ |---|---|---|---|
1626
+ | `not_found` | 404 | no | No such repository, or the token cannot manage its webhooks (needs admin:repo_hook). |
1627
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
1628
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
1629
+ | `forbidden` | 403 | no | built from the service's response |
1630
+ | `gone` | 410 | no | Issues are disabled for this repository. |
1631
+ | `invalid_request` | 422 | no | built from the service's response |
1632
+
1633
+ <h3 id="github-delete-webhook"><code>delete-webhook</code></h3>
1634
+
1635
+ **Delete repository webhook.** Delete a repository webhook by id (from create-webhook). The repo-event trigger calls this when its subscription is deleted.
1636
+
1637
+ Ref `io.b3os/github/delete-webhook@1.0.0` · effect `irreversible` · connection `token` · MCP tool `github__delete-webhook`
1638
+
1639
+ **curl**
1640
+
1641
+ ```bash
1642
+ curl -s https://beta-api.b3os.org/v1/actions/call \
1643
+ -H "Authorization: Bearer $B3OS_API_KEY" \
1644
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
1645
+ -H "Content-Type: application/json" \
1646
+ -d '{
1647
+ "ref": "io.b3os/github/delete-webhook@1",
1648
+ "input": {"owner": "acme", "repo": "widgets", "hook_id": 512345678},
1649
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
1650
+ }'
1651
+ ```
1652
+ **TypeScript**
1653
+
1654
+ ```ts
1655
+ import { B3OS } from "@b3os/sdk";
1656
+
1657
+ const b3os = new B3OS();
1658
+ const result = await b3os.actions.call({
1659
+ ref: "io.b3os/github/delete-webhook@1",
1660
+ input: { owner: "acme", repo: "widgets", hook_id: 512345678 },
1661
+ connections: { token: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
1662
+ }, { idempotencyKey: crypto.randomUUID() });
1663
+ console.log(result.output);
1664
+ ```
1665
+ **Python**
1666
+
1667
+ ```python
1668
+ import uuid
1669
+ from b3os import B3OS
1670
+
1671
+ b3os = B3OS()
1672
+ result = b3os.actions.call({
1673
+ "ref": "io.b3os/github/delete-webhook@1",
1674
+ "input": {"owner": "acme", "repo": "widgets", "hook_id": 512345678},
1675
+ "connections": {"token": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
1676
+ }, idempotency_key=str(uuid.uuid4()))
1677
+ print(result["output"])
1678
+ ```
1679
+ **MCP**
1680
+
1681
+ ```json
1682
+ {
1683
+ "method": "tools/call",
1684
+ "params": {
1685
+ "name": "github__delete-webhook",
1686
+ "arguments": {"owner": "acme", "repo": "widgets", "hook_id": 512345678}
1687
+ }
1688
+ }
1689
+ ```
1690
+
1691
+ Expose the pack as tools with `--packs github` on the local server or `?packs=github` on the remote URL, and the agent calls `github__delete-webhook` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1692
+
1693
+ Output, labeled `fixture`: Delete repository webhook (documented response shape, example values). From the bundle's `fixtures/delete-webhook.json`, not a live call.
1694
+
1695
+ ```json
1696
+ {"deleted": true, "hook_id": 512345678}
1697
+ ```
1698
+
1699
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1700
+
1701
+ | `pack_error.code` | Service status | Retryable | Message |
1702
+ |---|---|---|---|
1703
+ | `not_found` | 404 | no | No such webhook in this repository. |
1704
+ | `connection_unauthorized` | 401 | no | GitHub rejected the token. |
1705
+ | `rate_limited` | 403, 429 | yes | GitHub rate limit reached; it resets at the time in the x-ratelimit-reset header. |
1706
+ | `forbidden` | 403 | no | built from the service's response |
1707
+ | `gone` | 410 | no | Issues are disabled for this repository. |
1708
+ | `invalid_request` | 422 | no | built from the service's response |
1709
+
1710
+ ## Triggers
1711
+
1712
+ <h3 id="github-trigger-repo-event"><code>repo-event</code> (trigger)</h3>
1713
+
1714
+ **Repository event.** Fires on GitHub repository events as they happen (issues opened or closed, pull requests, pushes, releases, comments, ...): B3OS creates a webhook on the repository with a generated secret, verifies every delivery's X-Hub-Signature-256, and removes the webhook when the subscription is deleted. The event carries the event type, action, repository, sender and GitHub's full payload. Needs a token that can manage webhooks (admin:repo_hook).
1715
+
1716
+ Ref `io.b3os/github/repo-event@1.0.0` · webhook, signature scheme `github` with a secret B3OS generates · connection `token`
1717
+
1718
+ | `with` key | Required | Description |
1719
+ |---|---|---|
1720
+ | `owner` | yes | Repository owner. |
1721
+ | `repo` | yes | Repository name. |
1722
+ | `events` | no | GitHub event names to receive, or * for every event. Default `["issues","pull_request","push"]`. |
1723
+
1724
+ In a routine:
1725
+
1726
+ ```yaml
1727
+ triggers:
1728
+ - type: action
1729
+ id: repo_event
1730
+ uses: io.b3os/github/repo-event@1
1731
+ with:
1732
+ owner: acme
1733
+ repo: widgets
1734
+ events:
1735
+ - issues
1736
+ - pull_request
1737
+ connections:
1738
+ token: conn_01m5t6cbgdjs1ketgcqwa2sne8
1739
+ ```
1740
+
1741
+ Event, labeled `fixture`: the recorded delivery in fixtures/repo-event-issue-opened.json (Repository event (delivery signed with a throwaway test secret)). A routine reads it as `trigger.data`; its fields are `type`, `action`, `repository`, `sender`, `delivery`, `payload`.
1742
+
1743
+ ```json
1744
+ {
1745
+ "type": "issues",
1746
+ "action": "opened",
1747
+ "repository": "acme/widgets",
1748
+ "sender": "mona",
1749
+ "delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958",
1750
+ "payload": {
1751
+ "action": "opened",
1752
+ "issue": {
1753
+ "id": 3051234542,
1754
+ "node_id": "I_kwDOAAAAAM6AAAAA",
1755
+ "url": "https://api.github.com/repos/acme/widgets/issues/42",
1756
+ "html_url": "https://github.com/acme/widgets/issues/42",
1757
+ "number": 42,
1758
+ "state": "open",
1759
+ "state_reason": null,
1760
+ "title": "Cart overflows on narrow screens",
1761
+ "body": "Steps to reproduce:\n\n1. Open the cart\n2. Resize to 375px",
1762
+ "user": {
1763
+ "login": "mona-example",
1764
+ "id": 1000002,
1765
+ "node_id": "MDQ6VXNlcjE=",
1766
+ "avatar_url": "https://avatars.githubusercontent.com/u/1000002?v=4",
1767
+ "html_url": "https://github.com/mona-example",
1768
+ "type": "User",
1769
+ "site_admin": false
1770
+ },
1771
+ "labels": [
1772
+ {
1773
+ "id": 208045946,
1774
+ "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
1775
+ "name": "bug",
1776
+ "color": "d73a4a",
1777
+ "default": false,
1778
+ "description": null
1779
+ }
1780
+ ],
1781
+ "assignees": [
1782
+ {
1783
+ "login": "hubot-example",
1784
+ "id": 1000003,
1785
+ "node_id": "MDQ6VXNlcjE=",
1786
+ "avatar_url": "https://avatars.githubusercontent.com/u/1000003?v=4",
1787
+ "html_url": "https://github.com/hubot-example",
1788
+ "type": "User",
1789
+ "site_admin": false
1790
+ }
1791
+ ],
1792
+ "comments": 2,
1793
+ "created_at": "2026-10-24T17:11:20Z",
1794
+ "updated_at": "2026-10-25T09:02:41Z",
1795
+ "closed_at": null,
1796
+ "author_association": "CONTRIBUTOR"
1797
+ },
1798
+ "repository": {
1799
+ "id": 1296269,
1800
+ "name": "widgets",
1801
+ "full_name": "acme/widgets",
1802
+ "private": false
1803
+ },
1804
+ "sender": {"login": "mona", "id": 583231, "type": "User"}
1805
+ }
1806
+ }
1807
+ ```
1808
+
1809
+ <h3 id="github-trigger-new-issue"><code>new-issue</code> (trigger)</h3>
1810
+
1811
+ **New issue.** Fires once for each new issue opened in a repository (pull requests are skipped), optionally only with given labels, checked every 2 minutes by default. The first check records existing issues and emits nothing.
1812
+
1813
+ Ref `io.b3os/github/new-issue@1.0.0` · poll of `list-issues`, every 120 s by default (at least 60 s) · connection `token`
1814
+
1815
+ | `with` key | Required | Description |
1816
+ |---|---|---|
1817
+ | `owner` | yes | Repository owner. |
1818
+ | `repo` | yes | Repository name. |
1819
+ | `labels` | no | Only issues with every one of these labels. |
1820
+
1821
+ In a routine:
1822
+
1823
+ ```yaml
1824
+ triggers:
1825
+ - type: action
1826
+ id: new_issue
1827
+ uses: io.b3os/github/new-issue@1
1828
+ with:
1829
+ owner: acme
1830
+ repo: widgets
1831
+ connections:
1832
+ token: conn_01m5t6cbgdjs1ketgcqwa2sne8
1833
+ ```
1834
+
1835
+ Event, labeled `fixture`: the first item of `list-issues`'s fixture fixtures/list-issues.json (List issues (documented response shape, example values)) through the trigger's event mapping. A routine reads it as `trigger.data`; its fields are `number`, `title`, `state`, `state_reason`, `html_url`, `author`, `labels`, `assignees`, `comments`, `created_at`, `updated_at`, `closed_at`, `is_pull_request`.
1836
+
1837
+ ```json
1838
+ {
1839
+ "number": 42,
1840
+ "title": "Cart overflows on narrow screens",
1841
+ "state": "open",
1842
+ "state_reason": null,
1843
+ "html_url": "https://github.com/acme/widgets/issues/42",
1844
+ "author": "mona-example",
1845
+ "labels": ["bug"],
1846
+ "assignees": ["hubot-example"],
1847
+ "comments": 2,
1848
+ "created_at": "2026-10-24T17:11:20Z",
1849
+ "updated_at": "2026-10-25T09:02:41Z",
1850
+ "closed_at": null,
1851
+ "is_pull_request": false
1852
+ }
1853
+ ```