{
  "name": "Automated repository migration from GitLab groups to Gitea organizations",
  "nodes": [
    {
      "id": "ac1706f2-273e-4191-94f7-0e4c84e6939b",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        140,
        -20
      ]
    },
    {
      "id": "93d54a8a-9a7c-4193-89b6-754014b804d5",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        800,
        -20
      ]
    },
    {
      "id": "ac8b47d9-ba45-42c0-be51-2a9ecf2cada6",
      "name": "Switch error codes",
      "type": "n8n-nodes-base.switch",
      "position": [
        1260,
        -20
      ]
    },
    {
      "id": "cf3bee67-e127-4efb-a8b1-384603eb0151",
      "name": "Stop and Error",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        1500,
        200
      ]
    },
    {
      "id": "8e3e60c7-a555-45aa-8ff4-aa64fd3aec46",
      "name": "Setup (CHANGE ME)",
      "type": "n8n-nodes-base.set",
      "position": [
        360,
        -20
      ]
    },
    {
      "id": "e475bc22-719c-4d87-95ba-7567107b7ecd",
      "name": "Gitea: Migrate repo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1500,
        -20
      ]
    },
    {
      "id": "159efdb3-b3a6-469f-8021-b608996ffcc5",
      "name": "Gitea: Search for repo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        -20
      ]
    },
    {
      "id": "06081af1-73c9-4f61-889c-289ea3de4c2c",
      "name": "Gitlab: Get projects",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        580,
        -20
      ]
    }
  ],
  "connections": {
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Gitea: Search for repo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Setup (CHANGE ME)": {
      "main": [
        [
          {
            "node": "Gitlab: Get projects",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch error codes": {
      "main": [
        [
          {
            "node": "Gitea: Migrate repo",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Stop and Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gitea: Migrate repo": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gitlab: Get projects": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gitea: Search for repo": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Switch error codes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Setup (CHANGE ME)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}