{
  "name": "GitHub fork status monitor",
  "nodes": [
    {
      "id": "d27cc197-fa61-421b-8422-8c4e5f716efe",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        380,
        -260
      ]
    },
    {
      "id": "5d55b266-a8b8-450f-903c-b04f47a1d708",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1160,
        -80
      ]
    },
    {
      "id": "c160d1cf-67a0-4e5a-9a0d-f6c78ad18154",
      "name": "get-repo-details",
      "type": "n8n-nodes-base.github",
      "position": [
        1380,
        -80
      ]
    },
    {
      "id": "7580ab52-4cfc-490f-9f3e-021bba782db4",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1740,
        -480
      ]
    },
    {
      "id": "f0170087-277f-4f32-bc45-305dd56211df",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -40,
        -40
      ]
    },
    {
      "id": "f22d2c47-5d0a-4574-8293-e7ddc9a326ac",
      "name": "Prepare Upstream URL",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        -80
      ]
    },
    {
      "id": "52d91917-e7d0-4a5a-b73b-d7c6f4041603",
      "name": "Compare Branches API Call",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1820,
        -80
      ]
    },
    {
      "id": "f08f4f87-d7a6-49d4-99a2-04790a98b58d",
      "name": "Process Comparison Result",
      "type": "n8n-nodes-base.code",
      "position": [
        2040,
        -80
      ]
    },
    {
      "id": "19d0624b-1773-41db-8a37-bbee490b7f50",
      "name": "Combine Results",
      "type": "n8n-nodes-base.merge",
      "position": [
        2260,
        0
      ]
    },
    {
      "id": "5f4fd86e-9c37-4bb3-a55f-2db724ed9bd4",
      "name": "Format for Telegram",
      "type": "n8n-nodes-base.code",
      "position": [
        1520,
        -480
      ]
    },
    {
      "id": "ea7c4abd-2748-4e9e-8e44-eefb60757db6",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        180,
        -40
      ]
    },
    {
      "id": "d9aebe90-f406-4152-bf15-dc73aeacdb6d",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        380,
        -40
      ]
    },
    {
      "id": "d926e485-2d76-4c10-a231-5d5e4cc6b1ae",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -400
      ],
      "parameters": {
        "width": 800,
        "height": 640,
        "content": "## Triggers - *Set your triggers here*\n\n\n\n## Default\n- Manual\n- Telegram bot with command /forkcheck\n\n## Usage\n- /forkcheck = 1000 repositoriesmax\n- /forkcheck n = n repositories\n- any other command i"
      }
    },
    {
      "id": "53fde103-cbeb-4932-9027-f779c93b441c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        -400
      ],
      "parameters": {
        "width": 420,
        "height": 640,
        "content": "## Filter repositories\n\nSelect only forked repositories\nRequired argument: Count to select repositories"
      }
    },
    {
      "id": "45b0716e-993f-478a-af4f-ead51f5132c5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1060,
        -260
      ],
      "parameters": {
        "width": 1360,
        "height": 500,
        "content": "## Processing logic"
      }
    },
    {
      "id": "b7349c8b-d4cb-4636-a788-673dfc4fff1a",
      "name": "Get repos",
      "type": "n8n-nodes-base.github",
      "position": [
        660,
        -80
      ]
    },
    {
      "id": "c85f5822-2b50-4f1d-b479-47ff8c4ef6e6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1060,
        -580
      ],
      "parameters": {
        "width": 1360,
        "height": 300,
        "content": "## Summarize and send"
      }
    },
    {
      "id": "e5c4395c-8598-4da5-87a5-f8e5395ada44",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -580
      ],
      "parameters": {
        "width": 1240,
        "height": null,
        "content": "## GitHub Fork Status Monitor\n\nThis workflow helps you keep an eye on your GitHub forks, notifying you when they fall behind or pull ahead of their upstream repositories."
      }
    },
    {
      "id": "bd807482-d2c7-4cb8-aab6-854e816ab25a",
      "name": "Filter forked repositories only",
      "type": "n8n-nodes-base.filter",
      "position": [
        880,
        -80
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Get repos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get repos": {
      "main": [
        [
          {
            "node": "Filter forked repositories only",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Results": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Format for Telegram",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get-repo-details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get-repo-details": {
      "main": [
        [
          {
            "node": "Prepare Upstream URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format for Telegram": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Upstream URL": {
      "main": [
        [
          {
            "node": "Compare Branches API Call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compare Branches API Call": {
      "main": [
        [
          {
            "node": "Process Comparison Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Comparison Result": {
      "main": [
        [
          {
            "node": "Combine Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter forked repositories only": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get repos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}