Enhance README with PR monitoring examples

Added examples for monitoring GitHub pull requests with Lobster.
This commit is contained in:
Vignesh
2026-01-19 20:05:24 -08:00
committed by GitHub
parent 2366aa8614
commit 94338ee345
+91
View File
@@ -7,6 +7,8 @@ This repo is an MVP scaffold focused on the core shell runtime and a first Gmail
## Example of lobster at work
Clawdbot or any other AI agent can use `lobster` as a workflow engine and not construct a query every time - thus saving tokens, providing room for determinism, and resumability.
### Watching a PR that hasn't had changes
```
node bin/lobster.js "workflows.run --name github.pr.monitor --args-json '{\"repo\":\"clawdbot/clawdbot\",\"pr\":1152}'"
[
@@ -41,6 +43,95 @@ node bin/lobster.js "workflows.run --name github.pr.monitor --args-json '{\"repo
}
]
```
### And a PR that has a state change (in this case an approved PR)
```
node bin/lobster.js "workflows.run --name github.pr.monitor --args-json '{\"repo\":\"clawdbot/clawdbot\",\"pr\":1200}'"
[
{
"kind": "github.pr.monitor",
"repo": "clawdbot/clawdbot",
"pr": 1200,
"key": "github.pr:clawdbot/clawdbot#1200",
"changed": true,
"summary": {
"changedFields": [
"number",
"title",
"url",
"state",
"isDraft",
"mergeable",
"reviewDecision",
"updatedAt",
"baseRefName",
"headRefName"
],
"changes": {
"number": {
"from": null,
"to": 1200
},
"title": {
"from": null,
"to": "feat(tui): add syntax highlighting for code blocks"
},
"url": {
"from": null,
"to": "https://github.com/clawdbot/clawdbot/pull/1200"
},
"state": {
"from": null,
"to": "MERGED"
},
"isDraft": {
"from": null,
"to": false
},
"mergeable": {
"from": null,
"to": "UNKNOWN"
},
"reviewDecision": {
"from": null,
"to": ""
},
"updatedAt": {
"from": null,
"to": "2026-01-19T05:06:09Z"
},
"baseRefName": {
"from": null,
"to": "main"
},
"headRefName": {
"from": null,
"to": "feat/tui-syntax-highlighting"
}
}
},
"prSnapshot": {
"author": {
"id": "MDQ6VXNlcjE0MzY4NTM=",
"is_bot": false,
"login": "vignesh07",
"name": "Vignesh"
},
"baseRefName": "main",
"headRefName": "feat/tui-syntax-highlighting",
"isDraft": false,
"mergeable": "UNKNOWN",
"number": 1200,
"reviewDecision": "",
"state": "MERGED",
"title": "feat(tui): add syntax highlighting for code blocks",
"updatedAt": "2026-01-19T05:06:09Z",
"url": "https://github.com/clawdbot/clawdbot/pull/1200"
}
}
]
```
## Goals
- Typed pipelines (objects/arrays), not text pipes.