Back to articles
How I Built an AI Agent That Hunts GitHub Bounties While I Sleep

How I Built an AI Agent That Hunts GitHub Bounties While I Sleep

via Dev.to PythonSamer Salib

Most developers browse GitHub, spot an interesting issue, think "I should try that sometime," and never come back. I got tired of that loop. So I built a bot to do the browsing for me. Here's the full story — and the actual code. The Problem Expensify runs an open-source bounty program. Each issue tagged Help Wanted carries a $250 reward for the first person who fixes it and gets a PR merged. The catch: you have to request assignment before working on it, and new issues get snatched up fast. The workflow is: Watch for new unassigned issues Post a comment requesting assignment Get assigned Fix the bug, open a PR Get paid Step 1-2 is pure automation. I wrote a Python script to handle it. The Bounty Watcher Here's the core of the script that now runs every few minutes on my machine: STATE_FILE = " /path/to/bounty-watcher-state.json " COMMENT = ( " Hi! I ' d like to work on this — could I be assigned? " " I can have a PR up quickly. Thanks! " ) def get_unassigned_bounties ( seen_ids ): res

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
8 views

Related Articles