Automate monitoring of GitHub forked repository sync status using this powerful n8n workflow. Get instant Telegram alerts when forks fall behind or pull ahead of their upstream source.
Download this n8n workflow template and start using it instantly.
Maintaining consistency across numerous GitHub forks can be a labor-intensive manual task. This specialized n8n workflow solves this by providing a highly automated DevOps monitoring solution. The automation can be triggered manually or via a Telegram command, allowing users to instantly request a status check on up to 1000 repositories.
The core value of this n8n template lies in its ability to iterate through every forked repository, make specific branch comparison API calls, and consolidate the results (commits ahead/behind) into a clean, actionable Telegram message. This efficient n8n workflow ensures you never miss crucial updates or fall too far behind the upstream source, making it an essential tool for project tracking and management.
This comprehensive n8n workflow operates in a multi-stage process:
/forkcheck N command. A Code n8n node parses the command, setting the maximum number of repositories (N) to check (defaulting to 1000).parent (upstream) repository data.behindby and aheadby counts from the API response, combining them with the preserved repository metadata to determine the overall synchronization status (UP-TO-DATE, AHEAD, or BEHIND).To deploy this specialized n8n workflow, follow these setup instructions:
github-api-pat and set the header to Authorization: token ./forkcheck).This n8n template uses several core and integration nodes to achieve its goal:
Telegram Trigger n8n node: The primary n8n trigger, listening for the /forkcheck command from a configured Telegram chat.
Code n8n node (Prepare Upstream URL): Crucial for dynamic URL construction. It takes the repository JSON, identifies the parent (upstream) repo details, and generates the exact GitHub API URL needed for branch comparison, ensuring the subsequent API call in the n8n workflow is precise.
GitHub n8n node (Get repos & get-repo-details): Used twice. First, to list all user repositories, applying the limit set by the n8n trigger. Second, within the loop, to fetch detailed metadata about the parent repository for comparison.
Filter n8n node: Ensures only records where fork property is true are processed, optimizing the n8n workflow efficiency.
HTTP Request n8n node (Compare Branches API Call): Executes the specialized GitHub API endpoint to compare commit divergence between the fork and the upstream branch.
Code n8n node (Process Comparison Result): Reads the results of the comparison API (behindby, aheadby) and structures the final output data used for reporting. This n8n node handles data transformation.
Split In Batches n8n node: Manages the iterative process, ensuring each forked repository is processed sequentially before all results are combined.
Code n8n node (Format for Telegram): The final transformation n8n node, responsible for rendering the technical results into a readable, Markdown-formatted status table suitable for Telegram.
Leverage this comprehensive n8n workflow to grant AI agents full control over GitHub repositories, managing files, issues, releases, and CI/CD workflows using the GitHub n8n node.

Deploy a specialized n8n workflow MCP server to enable AI agents to automatically create, get, and update profiles using the Humantic AI n8n node. Get started with these n8n templates.

Use this powerful n8n workflow to automatically fetch your sitemap, identify recently updated URLs, and submit them directly to the Google Indexing API for rapid indexing. Works great with custom n8n templates.

Implement robust version control for your n8n workflows using GitHub. This n8n workflow template provides a dashboard, status syncing, and one-click rollback capabilities.

Automate bug reporting with this advanced n8n workflow. Instantly sync GitHub issues to Jira, use GPT-4o for severity and assignment analysis, and alert teams via Slack/Discord.









































