How I Built an Event-Driven Go Microservice to Automate Tech Updates from GitHub to LinkedIn
As developers, we ship features every day, but summarizing technical Pull Requests or Release notes into engaging LinkedIn posts is often an afterthought or a manual chore. To solve this, I built Git-To-Feed โan open-source Go microservice that listens to GitHub webhooks, processes technical context via Gemini AI, and requires a human approval tap in Discord before publishing to LinkedIn. ๐๏ธโฆ
Developers frequently ship code updates but may struggle to craft compelling LinkedIn posts summarizing technical pull requests or release notes. To address this issue, I created Git-To-Feed, an open-source Go microservice that utilizes GitHub webhooks, Google's Gemini AI for processing technical context, and a Discord approval mechanism before publishing to LinkedIn.
Here is a breakdown of the event-driven pipeline:
1. GitHub Webhook: The service receives validated webhooks from GitHub, ensuring secure processing of payload data.
2. Webhook Handler: After verification using HMAC signatures, the payload is handed to the next stage of the pipeline.
3. Pipeline Gemini AI: The technical content is processed by the AI model, which converts complex jargon into concise release announcements.
4. Discord Bot: Once the AI has generated a draft, a Discord bot presents interactive approval buttons (Approve or Reject) to human developers for final review.
5. Approval Engine: The Discord bot communicates with the approval engine, which tracks and manages the human approval process.
6. LinkedIn API: After successful approval, the service publishes the final post to LinkedIn using the LinkedIn API.
Key technical features of Git-To-Feed include:
- Clean separation of domain logic from infrastructure adapters, enhancing modularity and maintainability.
- HMAC Signature Verification to safeguard webhook payloads and prevent tampering.
- Anti-Cringe and Few-Shot Prompting techniques to create clear, engaging posts without unnecessary corporate language.
- A human-in-the-loop approach ensures that no post is published without the required human review, maintaining content quality and accountability.
- Open-source under the MIT license, encouraging collaboration and contributions from the developer community.
- Active issues labeled for beginners, making it easy for newcomers to contribute and learn.
- Welcoming PRs and support via GitHub stars.
Written by urgent.news from Dev.to's reporting โ not their text. Machine-written โ may contain errors; check the original before relying on it.