Skip to content

Commit 4e201cc

Browse files
Merge pull request #4 from syedsufyan-coder/automation-feature
Update n8n workflow to use final_labels and clean up pinData
2 parents 1805da5 + 611525a commit 4e201cc

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

automation/PR Classifier n8n workflow.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"parameters": {
3636
"mode": "runOnceForEachItem",
37-
"jsCode": "return {\n owner: $('Normalize').first().json.owner,\n repo: $('Normalize').first().json.repo,\n number: $('Normalize').first().json.number,\n\n github_labels: $json.github_labels,\n sentiment: $json.sentiment,\n priority_score: $json.priority_score\n};"
37+
"jsCode": "return {\n owner: $('Normalize').first().json.owner,\n repo: $('Normalize').first().json.repo,\n number: $('Normalize').first().json.number,\n\n github_labels: $json.final_labels,\n sentiment: $json.sentiment,\n priority_score: $json.priority_score\n};"
3838
},
3939
"type": "n8n-nodes-base.code",
4040
"typeVersion": 2,
@@ -110,20 +110,7 @@
110110
}
111111
}
112112
],
113-
"pinData": {
114-
"Normalize": [
115-
{
116-
"json": {
117-
"title": "Upload n8n automation workflow files",
118-
"body": "- Upload the JSON Workflow file for n8n automation.\n- Make sure that no sensitive data exists in the file.\n- Upload a screenshot of the workflow.\n- Add the documentation afterwards in the documentation/automation folder, which is necessary to understand and implement the workflow.",
119-
"number": 2,
120-
"repo": "Git-PR-Analyzer",
121-
"owner": "syedsufyan-coder",
122-
"type": "issue"
123-
}
124-
}
125-
]
126-
},
113+
"pinData": {},
127114
"connections": {
128115
"Webhook": {
129116
"main": [
@@ -175,7 +162,7 @@
175162
"executionOrder": "v1",
176163
"binaryMode": "separate"
177164
},
178-
"versionId": "1886be5b-01b4-4b5c-91f3-54f8dc301155",
165+
"versionId": "390999aa-d224-4e94-a752-5bfcbaf4b424",
179166
"meta": {
180167
"instanceId": "1a149f0b90f998f8b1765ebd03f3957a87ef5ba755980789d7ef683d013bf8eb"
181168
},

0 commit comments

Comments
 (0)