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

posted Originally published at dev.to 1 min read

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

If you read this far, tweet to the author to show them you care. Tweet a Thanks

It is awesome, congratulations! I love seeing that kind of automation; it inspires me as well!

Thanks you ! it's a pleasure to read you.

More Posts

Automate Your VPS Database Backups Like a Pro: A Complete MySQL Backup Script

Gift Balogun - Mar 15

Deep Dive into TypeScript Utility Types: `Omit`, `Exclude`, `Extract`, `NonNullable`, `Parameters`

Sunny - Jun 30

Express and TypeScript: How to Set Up Your Project

Mubaraq Yusuf - May 26

GitHub Repo Security: Your Easy Go-To Checklist

Vishwajeet Kondi - Aug 16

How to set up TypeScript with Node.js and Express (2025)

Sunny - Jun 6
chevron_left