1 line
12 KiB
JSON
1 line
12 KiB
JSON
|
{"createdAt":"2024-03-25T13:03:37.504Z","updatedAt":"2024-06-18T13:48:07.270Z","id":"0idgEKY5p1q5WS9F","name":"Gitea auto AI Groq","active":true,"nodes":[{"parameters":{"model":"llama3-70b-8192","options":{"maxTokensToSample":4096},"requestOptions":{}},"id":"3c89da25-c3b5-4c0c-b82d-1b908c20a455","name":"Groq Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatGroq","typeVersion":1,"position":[940,400],"credentials":{"groqApi":{"id":"u4SobGEjjuXQixeQ","name":"Groq account"}}},{"parameters":{"command":"rm -rf /tmp/repo"},"id":"40c1fc75-6aec-4bd2-8056-af814e02af60","name":"Execute Command","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[40,-160],"notesInFlow":true,"notes":"Suppression /tmp/repo "},{"parameters":{"authentication":"gitPassword","operation":"clone","repositoryPath":"/tmp/repo","sourceRepository":"={{$node[\"Webhook\"].json[\"body\"][\"repository\"][\"html_url\"]}}"},"id":"42558044-243a-49a8-b247-e2fb13d3e828","name":"Git","type":"n8n-nodes-base.git","typeVersion":1,"position":[240,-160],"alwaysOutputData":true,"notesInFlow":true,"credentials":{"gitPassword":{"id":"7JHhvGSTGUGgQb6S","name":"gitea.ia86.cc account"}},"onError":"continueRegularOutput","notes":"Clonage repo dans /tmp/repo"},{"parameters":{"command":"ls /tmp/repo"},"id":"40130976-207a-474b-8817-bbbe6b90272e","name":"Execute Command1","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[1280,-240],"alwaysOutputData":true,"notesInFlow":true,"notes":"Lister fichiers Git"},{"parameters":{"options":{"reset":false}},"id":"c942acf6-6861-4563-868e-704b9e6ffd0b","name":"Loop Over Items","type":"n8n-nodes-base.splitInBatches","typeVersion":3,"position":[140,120],"notesInFlow":true,"notes":"Traite fichier par fichier"},{"parameters":{"fileSelector":"=/tmp/repo/{{$json[\"fileName\"]}}","options":{}},"id":"076ba28c-951b-40fc-b8e5-b057f0c2f610","name":"Read/Write Files from Disk","type":"n8n-nodes-base.readWriteFile","typeVersion":1,"position":[360,200],"notesInFlow":true,"notes":"Lit le fichier"},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"1b92e512-49fc-47c9-a93e-b80bc1d48f3b","leftValue":"={{ $items(\"Set2\")[0].json.filtre }}","rightValue":"=.{{ $json[\"fileExtension\"] }}|","operator":{"type":"string","operation":"contains"}}],"combinator":"and"},"options":{}},"id":"cedf5e54-d0dd-42bc-bdfe-736789d061c5","name":"If","type":"n8n-nodes-base.if","typeVersion":2,"position":[560,200],"notesInFlow":true,"notes":"Extension à traiter ?"},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"={{$node[\"Webhook\"].json[\"body\"][\"commits\"][0][\"author\"][\"email\"]}}","subject":"[IA-Gitea] Code introspection","html":"=<h1>Consigne</h1>\n{{ $items(\"Set2\")[0].json.consigne }}\n<h1>Filtre</h1>\n{{ $items(\"Set2\")[0].json.filtre }}\n<h1>Résultat</h1>\n{{ $node[\"Set\"].json[\"concatenatedResults\"] }}\n","options":{"replyTo":"noreply@n8n.ia86.cc"}},"id":"18637207-8730-4db8-bc96-0d661ae5078e","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[560,40],"notesInFlow":true,"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}},"notes":"Courriel avec Variable"},{"parameters":{"httpMethod":"POST","path":"ac8544e6-b735-43c9-9d7b-dfa201f36008","options":{}},"id":"dafe642f-c21d-4b26-a17e-d93aae1320d6","name":"Webhook","type":"n8n-nodes-base.webhook","typeVersion":1.1,"position":[-160,-160],"webhookId":"ac8544e6-b735-43c9-9d7b-dfa201f36008","notesInFlow":true,"notes":"Webhook Gitea sur commit "},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"e182d1f3-0b86-4a38-951e-4eac8bfd025c","leftValue":"={{$node[\"Webhook\"].json[\"body\"][\"commits\"][0][\"message\"]}}","rightValue":"@inspectALL","operator":{"type":"string","operation":"contains"}}],"combinator":"and"},"options":{}},"id":"6395bddc-6989-4bfa-8a92-8847a3c75ad4","name":"If1","type":"n8n-nodes-base.if","typeVersion":2,"position":[1040,-160],"notesInFlow":true,"notes":"commit msg =~ @inspectAL
|