{
  "openruna_format": "flow-graph-v1",
  "title": "Code Review workflow",
  "slug": "code-review-workflow",
  "source_filename": "1292_Code_GitHub_Automate_Webhook.json",
  "nodes": [
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "PR Trigger",
      "name": "PR Trigger",
      "integration": "github",
      "kind": "trigger"
    },
    {
      "id": "Get file's Diffs from PR",
      "name": "Get file's Diffs from PR",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Create target Prompt from PR Diffs",
      "name": "Create target Prompt from PR Diffs",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "GitHub Robot",
      "name": "GitHub Robot",
      "integration": "github",
      "kind": "action"
    },
    {
      "id": "Add Label to PR",
      "name": "Add Label to PR",
      "integration": "github",
      "kind": "action"
    },
    {
      "id": "Code Best Practices",
      "name": "Code Best Practices",
      "integration": "googleSheetsTool",
      "kind": "action"
    },
    {
      "id": "Code Review Agent",
      "name": "Code Review Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "PR Trigger",
      "to": "Get file's Diffs from PR"
    },
    {
      "from": "GitHub Robot",
      "to": "Add Label to PR"
    },
    {
      "from": "Code Review Agent",
      "to": "GitHub Robot"
    },
    {
      "from": "Get file's Diffs from PR",
      "to": "Create target Prompt from PR Diffs"
    },
    {
      "from": "Create target Prompt from PR Diffs",
      "to": "Code Review Agent"
    }
  ]
}