DEV Community

Cover image for Automate GitHub like a pro: Build your own bot with TypeScript and Serverless
Jean-Gaël
Jean-Gaël

Posted on

Automate GitHub like a pro: Build your own bot with TypeScript and Serverless

Maintaining a repo is more than just writing code.

You label issues, respond to PRs… and somehow keep track of all the // TODO comments scattered across the codebase.

I got tired of juggling all this manually. So I built a bot.

🤖 Meet AutoMaintainer-bot

It’s a lightweight GitHub App built with Probot and deployed serverlessly on GCF. Here's what it does:

  • 🏷️ Automatically labels issues based on their content
  • 💬 Welcomes new contributors when they open their first issue
  • 📌 Scans code for // TODO: and creates issues for them
  • 📦 Runs entirely serverless — zero infrastructure needed

And yes, it works across multiple repositories.

🛠️ Tech stack

  • TypeScript for clean, typed logic
  • Probot to handle GitHub events with ease
  • Google Cloud run function for instant serverless deployment
  • GitHub App with custom permissions
  • Optional: YAML config to tweak behavior per repo

💡 Why this matters

  • Automating boring tasks = more time to build
  • Improves contributor experience
  • Encourages TODO discipline
  • Serverless = no ops burden

🔗 Open-source project

You can find the full bot code here:
👉 https://github.com/Alwil17/automaintainer-bot

Top comments (0)