⚡ Only 300 spots remaining • Closes in 2d 14h 32m
Automate community appreciation. This workflow detects when a Pull Request is merged into your main branch. It checks the contributor history, and if this is their first contribution, comments a customized thank-you note.
This workflow is pre-configured and ready for deployment. Simply import the JSON template into your n8n instance and configure your credentials.
This is an exclusive blueprint. Copy the JSON below to use it.
PRO TIP
Always test your workflow in a development environment before pushing to production.
{
"nodes": [
{
"parameters": {
"owner": "org-name",
"repository": "repo-name",
"events": [
"pull_request"
]
},
"name": "PR Merged Trigger",
"type": "n8n-nodes-base.githubTrigger",
"typeVersion": 1,
"position": [
100,
300
]
},
{
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{$json.pull_request.merged}}",
"value2": true
}
]
}
},
"name": "Is Merged?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
300,
300
]
},
{
"parameters": {
"url": "https://api.github.com/repos/org-name/repo-name/commits?author={{$node[\"PR Merged Trigger\"].json.pull_request.user.login}}"
},
"name": "Check Commits Count",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
500,
200
]
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json.length}}",
"operation": "equal",
"value2": 1
}
]
}
},
"name": "First Contribution?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
700,
200
]
},
{
"parameters": {
"resource": "issueComment",
"operation": "create",
"owner": "org-name",
"repository": "repo-name",
"issueId": "={{$node[\"PR Merged Trigger\"].json.pull_request.number}}",
"body": "🎉 Thank you for making your first contribution to our project, @{{$node[\"PR Merged Trigger\"].json.pull_request.user.login}}! We appreciate your support."
},
"name": "Post Thank You",
"type": "n8n-nodes-base.github",
"typeVersion": 1,
"position": [
900,
100
]
}
],
"connections": {
"PR Merged Trigger": {
"main": [
[
{
"node": "Is Merged?",
"type": "main",
"index": 0
}
]
]
},
"Is Merged?": {
"main": [
[
{
"node": "Check Commits Count",
"type": "main",
"index": 0
}
]
]
},
"Check Commits Count": {
"main": [
[
{
"node": "First Contribution?",
"type": "main",
"index": 0
}
]
]
},
"First Contribution?": {
"main": [
[
{
"node": "Post Thank You",
"type": "main",
"index": 0
}
]
]
}
}
}To use this, copy the JSON above and paste it directly onto your n8n canvas.
Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.