Automated Github Repository Watchlist with Real-time Notifications
detail.loadingPreview
This n8n workflow provides a powerful solution for monitoring multiple Github repositories in real-time. It leverages webhooks to avoid polling, allowing you to programmatically add or remove repositories from your watchlist and receive instant updates on push and pull request events.
About This Workflow
Empower your team with real-time insights into your Github repositories without the overhead of constant polling. This robust n8n workflow automates the entire process of setting up and tearing down Github webhooks for a list of repositories. By utilizing event-driven architecture, it ensures immediate notifications for crucial actions like push and pull_request events. Once an event is triggered, the workflow meticulously parses the payload, extracting vital information such as the author, commit message, modified files, and repository details, before delivering comprehensive alerts to your preferred communication channels like Slack and Telegram. Manage your development operations efficiently and stay informed.
Key Features
- Webhook-based Monitoring: Avoids inefficient polling by utilizing Github webhooks for instant event notifications.
- Programmatic Repo Management: Easily add or delete multiple repositories from your monitoring watchlist via a list input.
- Real-time Event Capture: Instantly detects
pushandpull_requestevents across all watched repositories. - Detailed Event Parsing: Extracts critical information including author, commit message, modified files, and repository details.
- Multi-channel Notifications: Deliver customized, informative alerts to popular platforms like Slack and Telegram (can be extended).
How To Use
- Configure Github API Credentials: Ensure you have an
httpHeaderAuthcredential configured in n8n for Github, containing a Personal Access Token withreposcope. - Define Repositories: In the input leading to the "Register Webhooks" section, provide a list of Github repository URLs (e.g.,
["https://github.com/org/repo1", "https://github.com/org/repo2"]) under a field namedrepos. The "Split Out" node will process these. - Update Webhook URL: Replace the placeholder
https://webhook.site/...URL in the "Register Github Webhook" node'sjsonBodywith your n8n production webhook URL to receive events. - Enable/Configure Notifications:
- For Slack: Enable the "Notify Slack" node and configure your Slack credential and target channel ID.
- For Telegram: Configure the "Telegram" node with your Telegram Bot API token and chat ID.
- Activate Webhooks: Run the workflow manually (via "When clicking ‘Test workflow’") to register all defined webhooks on Github.
- Delete Webhooks: To remove existing webhooks, provide a list of webhook URLs (or items containing a
urlfield) to the path leading to "Delete Github Webhook" and then execute that section of the workflow. This allows for programmatic cleanup.
Apps Used
Workflow JSON
{
"id": "44721507-75b3-4265-91aa-1e6d70daf077",
"name": "Automated Github Repository Watchlist with Real-time Notifications",
"nodes": 29,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 44721507-75b3...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Effortless Bug Reporting: Slack Slash Command to Linear Issue
Streamline your bug reporting process by instantly creating Linear issues directly from Slack using a simple slash command. This workflow enhances team collaboration by providing immediate feedback and a structured approach to logging defects, saving valuable time for development and QA teams.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.