PR shepherd

Finds open PRs that have stalled, have merge conflicts, or duplicate other PRs and takes action — rebases, closes duplicates, or nudges the pipeline forward.

Requires: GitHub. Set up integrations

How to use this template

  1. 1Click "Use this template" or create a new automation in Ona
  2. 2Set your trigger (manual, scheduled, or event-based)
  3. 3Copy each step below into the automation builder
  4. 4Customize the prompts for your specific use case

What this does

  • Resolve merge conflicts automatically
  • Close duplicates and abandoned PRs
  • Re-trigger reviews on stalled PRs
  • Keep the queue clean without human babysitting

Workflow

Trigger

Scheduled run

Runs every 30 minutes.

Prompt

Detect stalled PRs

Find PRs that stalled (no review after CI), have merge conflicts, duplicate a merged PR, or are inactive.

Prompt

Take action

Stalled → trigger a review or comment. Conflicts → attempt a rebase. Duplicate → close with a comment. Abandoned → close after 48h inactivity.

More automations to explore.

Ready to try a template?

Start building with a free Ona account.

Copied to clipboard!

This website uses cookies to enhance the user experience. Read our cookie policy for more info.