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

0 votes
0 votes

More Posts

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelskiverified - Apr 23

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelskiverified - Mar 19

Your Tech Stack Isn’t Your Ceiling. Your Story Is

Karol Modelskiverified - Apr 9

Tuesday Coding Tip 02 - Template with type-specific API

Jakub Neruda - Mar 10

Merancang Backend Bisnis ISP: API Pelanggan, Paket Internet, Invoice, dan Tiket Support

Masbadar - Mar 13
chevron_left

Related Jobs

Commenters (This Week)

3 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!