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.

Done with OpenClawยท Advanced

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.

Read the original on medium.com โ†—

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.