Menu

1 / 2

Your Pull Requests Are Being Ignored. Fix It with This Simple Bot

DEV Community: lua·Can Eldem·7 months ago
#AG8rCAny
#dev#class#local#code#github
Reading 0:00
15s threshold

Pull requests don’t get stuck because they’re hard.

They get stuck because everyone forgets due to various reasons.

So instead of relying on memory, I built a small bot using Rapidforge that:

finds stale PRs

posts a clean reminder to Slack

avoids spamming the same alerts

What is RapidForge?

RapidForge is a self hosted platform enabling users to turn small scripts into tools you can actually run and reuse. Its super easy to setup and use.

What we’re building

We’re going to create a small bot that:

Connects to GitHub using a GitHub App

Finds pull requests that haven’t been updated in a few days

Sends a single, clean reminder to Slack

Avoids repeating the same reminders using a KV store

All of this runs as a single scheduled task with one Lua script.

Step 1: Create a GitHub App

Create a new GitHub App from your GitHub settings.

Make sure to:

Enable user authorization (OAuth)

Install the app on the account or organization that owns your repository

Give it read access to Pull Requests

Limit…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.