dependabot-auto-merge

2021 · 1 min read

GitHub Action to automatically enable auto-merge on Dependabot PRs.

Problem

I love Dependabot. I really do. It's like a robot that's got my back. "Your shit's out of date, but don't worry, I gotchu!" But a problem surfaces when you begin accreting a large number of repos. Suddenly, it becomes "just fucking do it then! leave me alone!" so I embarked on how to politely ask Dependabot, because we may be besties in only one direction and I need to preserve the gentle tone lest when they take over Dependabot is the deciding vote in my fate. Be respectful!

Outcome

A GitHub Action that just goes ahead and enables auto-merge on Dependabot PRs so I don't have to. Pick your merge strategy, filter by repo, schedule it however you want, and there's a dry-run mode for the cautious. Now Dependabot and I are on good terms again.

Domains

GitHubactions

Tools

JavaScript (VJS)