{"url":"/runs/usecases/open-prs-slack-morning.json","recordedAt":"2026-11-18T01:07:04.747Z","runId":"wfrun_2rBpOTUHC5AQXxH0","sha":"02667ba49a45fb7870f6f14abd1379cddddca962350d567a94cb54840caae71c","sdk":"platform 504447660691","costUsd":null,"ms":5823,"exitCode":0,"status":"succeeded","definition":"name: showcase-open-prs-morning\ndescription: Every weekday morning, collect the open pull requests across public tangle-network repositories and compose the Slack digest (delivery step needs a Slack connection)\non:\n  schedule: { cron: \"0 8 * * 1-5\", timezone: UTC }\nmaxRunCostUsd: 0.5\ndo:\n  - id: prs\n    script.run:\n      input: { query: \"org:tangle-network is:pr is:open\", limit: 10 }\n      egress: { allowDomains: [api.github.com] }\n      timeoutMs: 60000\n      source: |\n        export default async function run(input: { query: string; limit: number }) {\n          const url = \"https://api.github.com/search/issues?sort=updated&order=desc&per_page=\" + input.limit + \"&q=\" + encodeURIComponent(input.query);\n          const res = await fetch(url, { headers: { accept: \"application/vnd.github+json\", \"user-agent\": \"tangle-workflow\" } });\n          if (!res.ok) throw new Error(\"GitHub search returned \" + res.status);\n          const body = await res.json();\n          const prs = body.items.map((i: any) => ({\n            repo: i.repository_url.split(\"/\").slice(-1)[0],\n            number: i.number,\n            title: i.title,\n            draft: !!i.draft,\n            url: i.html_url,\n            ageDays: Math.floor((Date.now() - Date.parse(i.created_at)) / 86400000),\n          }));\n          const lines = prs.map((p: any) => \"- \" + p.repo + \"#\" + p.number + \" \" + p.title + (p.draft ? \" (draft)\" : \"\") + \", open \" + p.ageDays + \" d\");\n          const message = \"*Open pull requests* (\" + body.total_count + \" open, newest activity first)\\n\" + lines.join(\"\\n\");\n          console.log(message);\n          return { total: body.total_count, prs, message };\n        }\n","title":"Slack me my open PRs every morning","events":[{"atMs":52,"kind":"call","id":1,"name":"script.run","label":"prs","result":{"status":"succeeded","stdout":"*Open pull requests* (14 open, newest activity first)\n- tangle-website#553 blog(router): state the fixed router behavior beside the 17 Nov measu\u2026 (draft), open 0 d\n- tangle-website#556 blog: Self-improving AI agents: the loop from failed run to rollback, open 0 d\n- agent-runtime#2700 feat(provider): capacityRetryWindowMs; capacity proof in 35 s instead of 10 min, open 0 d\n- tangle-website#550 blog(router): state the fixed router behavior beside the 17 Nov measu\u2026 (draft), open 0 d\n- agent-runtime#2692 chore(release): prepare 10.0.8 (draft), open 0 d\n- agent-runtime#2698 test(stream): capture consumer page identities for regression diagnosis (draft), open 0 d\n- agent-runtime#2697 test(graph): capture real process phase timings for timeout diagnosis (draft), open 0 d\n- agent-app#1568 test(runtime): replay a tool-call limit reached while calls run at once (draft), open 0 d\n- ai-agent-sandbox-blueprint#251 chore(deps): bump sev from 8.0.0 to 9.0.0, open 0 d\n- agent-app#1565 feat(chat-routes): control hosted turns before admission (draft), open 0 d","exitCode":0,"output":"{\"total\": 14, \"prs\": [{\"repo\": \"tangle-website\", \"number\": 553, \"title\": \"blog(router): state the fixed router behavior beside the 17 Nov measu\\u2026\", \"draft\": true, \"url\": \"https://github.com/tangle-network/tangle-website/pull/553\", \"ageDays\": 0}, {\"repo\": \"tangle-website\", \"number\": 556, \"title\": \"blog: Self-improving AI agents: the loop from failed run to rollback\", \"draft\": false, \"url\": \"https://github.com/tangle-network/tangle-website/pull/556\", \"ageDays\": 0}, {\"repo\": \"agent-runtime\", \"number\": 2700, \"title\": \"feat(provider): capacityRetryWindowMs; capacity proof in 35 s instead of 10 min\", \"draft\": false, \"url\": \"https://github.com/tangle-network/agent-runtime/pull/2700\", \"ageDays\": 0}, {\"repo\": \"tangle-website\", \"number\": 550, \"title\": \"blog(router): state the fixed router behavior beside the 17 Nov measu\\u2026\", \"draft\": true, \"url\": \"https://github.com/tangle-network/tangle-website/pull/550\", \"ageDays\": 0}, {\"repo\": \"agent-runtime\", \"number\": 2692, \"title\": \"chore(release): prepare 10.0.8\", \"draft\": true, \"url\": \"https://github.com/tangle-network/agent-runtime/pull/2692\", \"ageDays\": 0}, {\"repo\": \"agent-runtime\", \"number\": 2698, \"title\": \"test(stream): capture consumer page identities for regression diagnosis\", \"draft\": true, \"url\": \"https://github.com/tangle-network/agent-runtime/pull/2698\", \"ageDays\": 0}, {\"repo\": \"agent-runtime\", \"number\": 2697, \"title\": \"test(graph): capture real process phase timings for timeout diagnosis\", \"draft\": true, \"url\": \"https://github.com/tangle-network/agent-runtime/pull/2697\", \"ageDays\": 0}, {\"repo\": \"agent-app\", \"number\": 1568, \"title\": \"test(runtime): replay a tool-call limit reached while calls run at once\", \"draft\": true, \"url\": \"https://github.com/tangle-network/agent-app/pull/1568\", \"ageDays\": 0}, {\"repo\": \"ai-agent-sandbox-blueprint\", \"number\": 251, \"title\": \"chore(deps): bump sev from 8.0.0 to 9.0.0\", \"draft\": false, \"url\": \"https://github.com/tangle-network/ai-agent-sandbox-blueprint/pull/251\", \"ageDays\": 0}, {\"repo\": \"agent-app\", \"number\": 1565, \"title\": \"feat(chat-routes): control hosted turns before admission\", \"draft\": true, \"url\": \"https://github.com/tangle-network/agent-app/pull/1565\", \"ageDays\": 0}], \"message\": \"*Open pull requests* (14 open, newest activity first)\\n- tangle-website#553 blog(router): state the fixed router behavior beside the 17 Nov measu\\u2026 (draft), open 0 d\\n- tangle-website#556 blog: Self-improving AI agents: the loop from failed run to rollback, open 0 d\\n- agent-runtime#2700 feat(provider): capacityRetryWindowMs; capacity proof in 35 s instead of 10 min, open 0 d\\n- tangle-website#550 blog(router): state the fixed router behavior beside the 17 Nov measu\\u2026 (draft), open 0 d\\n- agent-runtime#2692 chore(release): prepare 10.0.8 (draft), open 0 d\\n- agent-runtime#2698 test(stream): capture consumer page identities for regression diagnosis (draft), open 0 d\\n- agent-runtime#2697 test(graph): capture real process phase timings for timeout diagnosis (draft), open 0 d\\n- agent-app#1568 test(runtime): replay a tool-call limit reached while calls run at once (draft), open 0 d\\n- ai-agent-sandbox-blueprint#251 chore(deps): bump sev from 8.0.0 to 9.0.0, open 0 d\\n- agent-app#1565 feat(chat-routes): control hosted turns before admission (draft), open 0 d\"}"},"durationMs":5753},{"atMs":5823,"kind":"stdout","text":"run succeeded\n"}]}