Have an agent turn GitHub issues into overnight PRs
A cron-driven OpenClaw agent picks one ready GitHub issue, makes the change, tests it, opens a PR, and updates the issue label.
- What they did
- The user set up an OpenClaw cron job on an Apple Silicon Mac to run every 10 minutes. Each pass reads a local engineer.md file that lists repositories, links each repo to a folder on disk, and defines the issue labels to use. The agent uses gh to find one issue marked ai-ready, switches it to ai-wip, makes the code change, runs tests with Docker when possible, opens a pull request, and then marks the issue ai-completed. If something breaks, it changes the issue to ai-failed instead.
- How it went
- They say this is running in production, and they wake up to pull requests already waiting. No counts or hit rate were given. The main warning is that if the agent is also writing its own meta-issues, it can drift away from the real task.
- Tips
- The hardest part is usually getting the local test setup working, such as docker compose. If tests cannot run locally, you may start the morning with failed PRs instead of finished ones.
Try it yourself with OpenClaw
Every [interval or time, e.g. 10 minutes or 1:00 AM], check [owner/repo] for issues labeled [ready label] and not already being worked on. Choose just one issue. Before making any changes, show me the issue you picked and ask for approval to proceed. After I approve, create a branch, implement the fix, run the local test suite [describe how to run tests, e.g. with Docker], and stop if tests fail. If the change passes, open a pull request that references the issue, then relabel the issue [completed label]. If anything goes wrong, relabel it [failed label]. Do not merge, do not edit more than one issue per run, and do not touch any issue-writing or planning tasks.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
1 more report of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Deploy safely and scan exposed ports from Telegram
A security professional used an OpenClaw agent to handle deploys and port checks while keeping production changes gated by approval.
Use Claude for UI work and Codex for server tasks
A developer split interface work and backend work between Claude and Codex after other agents failed on real projects.
Track down broken builds and draft the fix
OpenClaw was used inside OpenAI to diagnose failing builds, link them to incidents, and sometimes prepare and merge repairs.
Use OpenClaw for coding, research, and small tasks
A commenter leaned on OpenClaw for coding, research, and one-off chores, then had Hermes study each run to discover a faster way to do the same work.
Use OpenClaw to run coding agents on PRs
A solo developer used OpenClaw to spin up Codex and Claude Code for coding, testing, commits, PRs, and review replies, while getting Telegram updates when work finished.
Build and deploy a simple idle clicker game
A developer had an agent make a clicker game from a chat, then push it to GitHub and deploy it to Vercel.