DEV Community

Cover image for Github Repository Manager with Pulumi
Akua Konadu
Akua Konadu Subscriber

Posted on

Github Repository Manager with Pulumi

This is a submission for the Pulumi Deploy and Document Challenge: Get Creative with Pulumi and GitHub

What I Built

๐Ÿงพ Overview of the Project
Github Repository Manager is a simple tool that helps you create a GitHub repository and connect it to a webhook using Pulumi.
This means you can tell GitHub:

โ€œHey, when someone opens an issue, send me a message!โ€

Itโ€™s like setting up an alarm that rings when someone knocks on your GitHub project. ๐Ÿ””

We use code (Pulumi) instead of clicking around. It saves time and feels like magic!

๐Ÿ“บ Live Demo Video
๐Ÿ‘‰ Watch the demo here:

Project Repo

Github Repo Link with a through readme anyone can read and understand

My Journey

  1. Started with a Plan ๐Ÿ“ I began by reading the Pulumi + GitHub challenge rules. My idea was simple:

"Letโ€™s make an app that creates a GitHub repo and connects a webhook to it using Pulumi."

This app would let GitHub send messages (webhooks) whenever something happens โ€” like someone opening an issue.

  1. Building with Pulumi โš™๏ธ I used the Pulumi GitHub Provider and the Pulumi Automation API to write code that:

โœ… Creates a new GitHub repository

โœ… Adds a webhook to the repo

โœ… Sends event data (like when an issue is created) to a webhook site

3.** Challenges I Faced** ๐Ÿšง
Wrong Method Error: I tried using a function (getRepos) that didnโ€™t exist in Pulumi โ€” oops!

Webhook Confusion: At first, I didnโ€™t know where to get a webhook URL. Later, I found Webhook.site, which made it easy.

Code Errors: I saw lots of red underlines in my code editor. I fixed them by reading Pulumi docs.

  1. *How I Fixed Things *๐Ÿ›  I checked the Pulumi docs to find the correct resources and methods

I asked for help and used trial-and-error to understand how webhooks work

I kept my code super simple so I could learn as I go

  1. What I Learned ๐Ÿ’ก How to use Pulumi to create GitHub repositories with code

How webhooks work and how they send data

That reading error messages and asking questions is part of coding โ€” and thatโ€™s okay!

Using Pulumi with GitHub

๐Ÿค– How I Used Pulumi
I used Pulumi to write code that:

Creates a GitHub repository

Adds a webhook to it

Runs everything with just one command: pulumi up

๐ŸŽฏ Why Pulumi Was Helpful
I didnโ€™t have to click around in GitHub โ€” everything was automated
It saved time and helped me learn Infrastructure as Code

I didnt use pulumi ai in this project

Top comments (0)