{"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":"=