LintBot: 자동화 코드 품질 어시스턴트
고급
이것은Engineering, AI분야의자동화 워크플로우로, 20개의 노드를 포함합니다.주로 Set, Code, Webhook, Aggregate, HttpRequest 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. Google Gemini AI를 사용한 GitHub PR 코드 검사 및 자동 수정 자동화
사전 요구사항
- •HTTP Webhook 엔드포인트(n8n이 자동으로 생성)
- •대상 API의 인증 정보가 필요할 수 있음
- •Google Gemini API Key
사용된 노드 (20)
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "mfAxsn2XqfEzDtYr",
"meta": {
"instanceId": "24ca526572eca60ee26bbee4ba7087b1023a6874af4ebeed61b2d126e50e531b",
"templateCredsSetupCompleted": true
},
"name": "LintBot: Your Automated Code Quality Assistant",
"tags": [],
"nodes": [
{
"id": "8dedfb4b-d477-4fa5-9a9b-68b74450d1fe",
"name": "GitHub 워크플로우 트리거 수신",
"type": "n8n-nodes-base.webhook",
"position": [
-1040,
-540
],
"webhookId": "1da5a6e1-9453-4a65-bbac-a1fed633f6ad",
"parameters": {
"path": "1da5a6e1-9453-4a65-bbac-a1fed633f6ad",
"options": {
"responseHeaders": {
"entries": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"responseMode": "responseNode"
},
"typeVersion": 1
},
{
"id": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"name": "AI 에이전트",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1780,
-580
],
"parameters": {
"text": "=<files>\n{{ JSON.stringify($json.data) }}\n</files>",
"options": {
"systemMessage": "=You are an expert at code linting. Your job is to receive a JSON-formatted request with various file paths and the code inside each file.\n\nYou will:\n\n1. Look for and fix any linting issues in the files.\n2. First, check if a branch exists and if, create a new branch using the name {{ $('Get PR GitHub Branch').item.json.head.ref }}-linting-fix. If so, use the existing branch.\n3. Commit the new files with fixes to the branch.\n4. Create a PR from that branch with the name: \"Linting fixes for PR:{{ $('Listen for Trigger from Github Workflow').item.json.pull_request_number }}\""
},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "0e043c94-5b69-41f5-9f27-9dd5ea45a628",
"name": "웹훅 응답",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
2200,
-660
],
"parameters": {
"options": {},
"respondWith": "allIncomingItems"
},
"typeVersion": 1.2
},
{
"id": "68047540-a8ea-4836-9d5b-3b81515f98fc",
"name": "PR 파일 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
360,
-540
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/pulls/{{ $('Listen for Trigger from Github Workflow').item.json.pull_request_number }}/files",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "29b9cace-ceaa-446c-a547-ac25c4331d5a",
"name": "파일 내용 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
580,
-540
],
"parameters": {
"url": "={{ $json.contents_url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "a8920578-706a-4ed6-8c58-9be88f16420c",
"name": "Base64를 텍스트 파일로 변환",
"type": "n8n-nodes-base.convertToFile",
"position": [
780,
-540
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "content"
},
"typeVersion": 1.1
},
{
"id": "1fccb56b-ca82-4c9b-9ede-f669a97067f6",
"name": "파일에서 추출",
"type": "n8n-nodes-base.extractFromFile",
"position": [
980,
-560
],
"parameters": {
"options": {},
"operation": "text"
},
"typeVersion": 1
},
{
"id": "543be972-e489-4ca0-8a43-d77442081016",
"name": "코드/파일 경로 객체 생성",
"type": "n8n-nodes-base.set",
"position": [
1200,
-560
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "d18801c8-8c93-4c66-add8-0a5915ac3a6f",
"name": "code",
"type": "string",
"value": "={{ $json.data }}"
},
{
"id": "6da8a116-f59e-481c-a815-acda60e19398",
"name": "filePath",
"type": "string",
"value": "={{ $('Get File Contents').item.json.path }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "ac2ac571-5a1c-4f06-b45f-296fc43557c8",
"name": "변경된 모든 파일 수집",
"type": "n8n-nodes-base.aggregate",
"position": [
1440,
-560
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData"
},
"typeVersion": 1
},
{
"id": "9062c98b-6937-4411-9a21-6f047084ab78",
"name": "PR GitHub 브랜치 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
-580,
-520
],
"parameters": {
"url": "={{ $json.gitHubApiBaseEndpointUri }}/pulls/{{ $('Listen for Trigger from Github Workflow').item.json.pull_request_number }}",
"options": {},
"authentication": "predefinedCredentialType",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "8c9f3d57-b73d-46a1-a7f8-b8ea49fbdbd0",
"name": "GitHub Blob 생성",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
1660,
-120
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/git/blobs",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "content",
"value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters0_Value', ``, 'string') }}"
},
{
"name": "encoding",
"value": "utf-8"
}
]
},
"toolDescription": "Creates a GitHub blob for a file",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "3bba3645-f54e-46aa-866f-426404581221",
"name": "GitHub Tree 생성",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
1880,
-120
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/git/trees",
"method": "POST",
"options": {},
"jsonBody": "={\n \"base_tree\": \"{{ $('Get Latest Main Branch Tree Hash').item.json.tree.sha }}\",\n \"tree\": {{ $fromAI('json_array_of_files','','string') }}\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"toolDescription": "Creates a GitHub tree object with one file",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "26213bce-5117-475c-98a1-926140cdeec4",
"name": "GitHub Commit 생성",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
2080,
-140
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/git/commits",
"method": "POST",
"options": {},
"jsonBody": "={\n \"message\": \"{{ $fromAI('message', '', 'string').replace(/\\n/g, '\\\\n') }}\",\n \"tree\": \"{{ $fromAI('treeHash', '', 'string') }}\",\n \"parents\": [\n \"{{ $('Get Latest Main Branch Commit SHA').item.json.object.sha }}\"\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"toolDescription": "Creates a commit from the new tree. ",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "cb6918d1-4345-4f77-8667-c4ae6c790db5",
"name": "Pull Request 생성",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
2580,
-520
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/pulls",
"method": "POST",
"options": {},
"jsonBody": "={\n \"title\": \"{{ $fromAI('title','','string') }}\",\n \"head\": \"refs/heads/{{ $fromAI('head','','string') }}\",\n \"base\": \"main\",\n \"body\": \"{{ $fromAI('body','','string') }}\"\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"toolDescription": "Creates a Pull Request",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "8b9240b2-e23a-4f49-851a-1810d24f1bf3",
"name": "브랜치 생성",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
2480,
-300
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/git/refs",
"method": "POST",
"options": {},
"jsonBody": "= {\n \"ref\": \"refs/heads/{{ $fromAI('branch_ref','','string') }}\",\n \"sha\": \"{{ $fromAI('commit_sha','','string') }}\"\n }",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"toolDescription": "Creates a branch to point to the new commit",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "ea314631-174f-4d03-a947-0710b2870ed1",
"name": "최신 메인 브랜치 커밋 SHA 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
-340,
-540
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/git/ref/heads/main",
"options": {},
"authentication": "predefinedCredentialType",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "36633281-8335-4381-9393-cb1f64390bee",
"name": "최신 메인 브랜치 트리 해시 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
140,
-540
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/git/commits/{{ $json.object.sha }}",
"options": {},
"authentication": "predefinedCredentialType",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "435d5b12-3a71-4dbf-9d5d-97b30b249414",
"name": "브랜치 가져오기",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
2280,
-200
],
"parameters": {
"url": "={{ $('Set Common Fields').item.json.gitHubApiBaseEndpointUri }}/branches/{{ $fromAI('branch_name','','string') }}",
"options": {},
"authentication": "predefinedCredentialType",
"toolDescription": "Get a branch from the GitHub repo",
"nodeCredentialType": "githubApi"
},
"credentials": {
"githubApi": {
"id": "MI5Ul9UqEbdI0RRe",
"name": "GitHub account"
}
},
"typeVersion": 4.2
},
{
"id": "b26415fa-b898-4d79-a7da-8f66451f0747",
"name": "Google Gemini 채팅 모델",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
1500,
-340
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash"
},
"credentials": {
"googlePalmApi": {
"id": "ARYVKWu9TZzwQ3fB",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "9ec4b763-a3c8-4d5b-a50c-64842038a4ba",
"name": "공통 필드 설정",
"type": "n8n-nodes-base.code",
"position": [
-820,
-540
],
"parameters": {
"jsCode": "const commonFields = {\n 'gitHubRepoName': 'my-membership',\n 'gitHubOrgName': 'carved-rock-fitness-gym'\n}\ncommonFields['gitHubApiBaseEndpointUri'] = `https://api.github.com/repos/${commonFields.gitHubOrgName}/${commonFields.gitHubRepoName}`\n\nreturn commonFields"
},
"typeVersion": 2
}
],
"active": false,
"pinData": {
"Listen for Trigger from Github Workflow": [
{
"json": {
"pull_request_number": 204
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "17951810-1716-46ae-90bb-d698a6062483",
"connections": {
"4bec8f3a-5670-4fe5-916f-b7fab3165880": {
"main": [
[
{
"node": "0e043c94-5b69-41f5-9f27-9dd5ea45a628",
"type": "main",
"index": 0
}
]
]
},
"435d5b12-3a71-4dbf-9d5d-97b30b249414": {
"ai_tool": [
[
{
"node": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"type": "ai_tool",
"index": 0
}
]
]
},
"68047540-a8ea-4836-9d5b-3b81515f98fc": {
"main": [
[
{
"node": "29b9cace-ceaa-446c-a547-ac25c4331d5a",
"type": "main",
"index": 0
}
]
]
},
"8b9240b2-e23a-4f49-851a-1810d24f1bf3": {
"ai_tool": [
[
{
"node": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"type": "ai_tool",
"index": 0
}
]
]
},
"1fccb56b-ca82-4c9b-9ede-f669a97067f6": {
"main": [
[
{
"node": "543be972-e489-4ca0-8a43-d77442081016",
"type": "main",
"index": 0
}
]
]
},
"29b9cace-ceaa-446c-a547-ac25c4331d5a": {
"main": [
[
{
"node": "a8920578-706a-4ed6-8c58-9be88f16420c",
"type": "main",
"index": 0
}
]
]
},
"9ec4b763-a3c8-4d5b-a50c-64842038a4ba": {
"main": [
[
{
"node": "9062c98b-6937-4411-9a21-6f047084ab78",
"type": "main",
"index": 0
}
]
]
},
"8c9f3d57-b73d-46a1-a7f8-b8ea49fbdbd0": {
"ai_tool": [
[
{
"node": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"type": "ai_tool",
"index": 0
}
]
]
},
"3bba3645-f54e-46aa-866f-426404581221": {
"ai_tool": [
[
{
"node": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"type": "ai_tool",
"index": 0
}
]
]
},
"cb6918d1-4345-4f77-8667-c4ae6c790db5": {
"ai_tool": [
[
{
"node": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"type": "ai_tool",
"index": 0
}
]
]
},
"26213bce-5117-475c-98a1-926140cdeec4": {
"ai_tool": [
[
{
"node": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"type": "ai_tool",
"index": 0
}
]
]
},
"9062c98b-6937-4411-9a21-6f047084ab78": {
"main": [
[
{
"node": "ea314631-174f-4d03-a947-0710b2870ed1",
"type": "main",
"index": 0
}
]
]
},
"b26415fa-b898-4d79-a7da-8f66451f0747": {
"ai_languageModel": [
[
{
"node": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"ac2ac571-5a1c-4f06-b45f-296fc43557c8": {
"main": [
[
{
"node": "4bec8f3a-5670-4fe5-916f-b7fab3165880",
"type": "main",
"index": 0
}
]
]
},
"a8920578-706a-4ed6-8c58-9be88f16420c": {
"main": [
[
{
"node": "1fccb56b-ca82-4c9b-9ede-f669a97067f6",
"type": "main",
"index": 0
}
]
]
},
"543be972-e489-4ca0-8a43-d77442081016": {
"main": [
[
{
"node": "ac2ac571-5a1c-4f06-b45f-296fc43557c8",
"type": "main",
"index": 0
}
]
]
},
"36633281-8335-4381-9393-cb1f64390bee": {
"main": [
[
{
"node": "68047540-a8ea-4836-9d5b-3b81515f98fc",
"type": "main",
"index": 0
}
]
]
},
"ea314631-174f-4d03-a947-0710b2870ed1": {
"main": [
[
{
"node": "36633281-8335-4381-9393-cb1f64390bee",
"type": "main",
"index": 0
}
]
]
},
"8dedfb4b-d477-4fa5-9a9b-68b74450d1fe": {
"main": [
[
{
"node": "9ec4b763-a3c8-4d5b-a50c-64842038a4ba",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
고급 - 엔지니어링, 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
Azure 검색, Entra ID, Jira를 통합한 AI IT 지원 어시스턴트 구축
Azure 검색, Entra ID 및 Jira 통합된 AI IT 지원 어시스턴트 구축
Set
Code
Webhook
+
Set
Code
Webhook
30 노드Adam Bertram
지원
[템플릿] AI 반려동물 가게 v8
🐶 AI 펫 샵 어시스턴트 - GPT-4o, Google 캘린더 및 WhatsApp/Instagram/Facebook 통합
If
N8n
Set
+
If
N8n
Set
244 노드Amanda Benks
영업
AI 대리인 레스토랑 [템플릿]
🤖 WhatsApp, 인스타그램, 메신저의 AI 레스토랑 도우미
If
N8n
Set
+
If
N8n
Set
239 노드Amanda Benks
기타
시각화 참조 라이브러리에서 n8n 노드를 탐색
可视化 참조 라이브러리에서 n8n 노드를 탐색
If
Ftp
Set
+
If
Ftp
Set
113 노드I versus AI
기타
전사 평가기
DeepGram 및 GPT-4o를 사용한 오디오 대화 분석 및 시각화
Set
Code
Html
+
Set
Code
Html
54 노드RealSimple Solutions
인공지능
반려동물 가게 4
🐶 펫 샵 예약 AI 대리자
If
Set
Code
+
If
Set
Code
187 노드Bruno Dias
인공지능