{
  "name": "ArcanaInsight \u2014 Spec Tracker (Cloud Webhook)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "arcana-spec",
        "options": {}
      },
      "id": "webhook-trigger",
      "name": "GitHub Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true
          },
          "combinator": "and",
          "conditions": [
            {
              "leftValue": "={{ $json.body.action }}",
              "rightValue": "labeled",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            },
            {
              "leftValue": "={{ $json.body.label?.name }}",
              "rightValue": "spec",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ]
        }
      },
      "id": "filter-spec",
      "name": "Filter: spec \ub77c\ubca8\ub9cc",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        470,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://api.github.com/repos/xzawed/ArcanaInsight/issues/{{ $json.body.issue.number }}/labels",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={ \"labels\": [\"in-progress\"] }"
      },
      "id": "mark-progress",
      "name": "GitHub: in-progress \ub77c\ubca8 \ucd94\uac00",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        690,
        200
      ],
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://api.github.com/repos/xzawed/ArcanaInsight/issues/{{ $json.body.issue.number }}/comments",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={ \"body\": \"\ud83e\udd16 **Spec \uac10\uc9c0\ub428 \u2014 \uad6c\ud604 \ub300\uae30 \uc911 (\uc2e4\uc2dc\uac04)**\\n\\n\uc774 \uc2a4\ud399\uc774 \uc2e4\uc2dc\uac04\uc73c\ub85c \uac10\uc9c0\ub418\uc5c8\uc2b5\ub2c8\ub2e4. Claude CLI\uc5d0\uc11c \uad6c\ud604\uc744 \uc2dc\uc791\ud574\uc8fc\uc138\uc694:\\n\\n```\\nGitHub Issue #{{ $json.body.issue.number }} \ub0b4\uc6a9\ub300\ub85c \uad6c\ud604\ud574\uc918\\n```\\n\\n---\\n*n8n Cloud Spec Tracker\uc5d0 \uc758\ud574 \uc790\ub3d9 \uc0dd\uc131\ub41c \ucf54\uba58\ud2b8\uc785\ub2c8\ub2e4.*\" }"
      },
      "id": "comment-issue",
      "name": "GitHub: Issue \ucf54\uba58\ud2b8",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        690,
        400
      ],
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "GitHub Webhook": {
      "main": [
        [
          {
            "node": "Filter: spec \ub77c\ubca8\ub9cc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter: spec \ub77c\ubca8\ub9cc": {
      "main": [
        [
          {
            "node": "GitHub: in-progress \ub77c\ubca8 \ucd94\uac00",
            "type": "main",
            "index": 0
          },
          {
            "node": "GitHub: Issue \ucf54\uba58\ud2b8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}