Workflow: n8n workflow code for Http Github Send Webhook
Integrations: githubTrigger, httpRequest, if, noOp, pipedrive

{"meta": {"instanceId": "237600ca44303ce91fa31ee72babcdc8493f55ee2c0e8aa2b78b3b4ce6f70bd9"}, "nodes": [{"id": "28409b8d-3ae2-4cdb-a4ba-b0af9f31c1f2", "name": "HTTP Request", "type": "n8n-nodes-base.httpRequest", "position": [940, 440], "parameters": {"url": "={{$json[\"body\"].sender.url}}", "options": {}, "authentication": "predefinedCredentialType", "nodeCredentialType": "githubApi"}, "credentials": {"githubApi": {"id": "7", "name": "GitHub account"}}, "typeVersion": 2}, {"id": "aa604a92-7691-4b25-bbd0-ce42b8147fd8", "name": "Search PR user in Pipedrive by email", "type": "n8n-nodes-base.pipedrive", "position": [1220, 440], "parameters": {"term": "={{ $json[\"email\"]}}", "resource": "person", "operation": "search", "additionalFields": {"fields": "email"}}, "credentials": {"pipedriveApi": {"id": "1", "name": "Pipedrive account"}}, "typeVersion": 1, "alwaysOutputData": true}, {"id": "444a840f-3d34-48c4-b539-fe23a2a2a39c", "name": "person exists", "type": "n8n-nodes-base.if", "position": [1460, 440], "parameters": {"conditions": {"string": [{"value1": "={{$json[\"name\"]}}", "operation": "isNotEmpty"}]}}, "typeVersion": 1}, {"id": "b713ebee-0346-453e-bc1e-5dec1c74057f", "name": "Pipedrive", "type": "n8n-nodes-base.pipedrive", "position": [1780, 340], "parameters": {"content": "=Created a PR \n{{$node[\"ON Pull Request\"].json[\"body\"][\"pull_request\"][\"html_url\"]}}", "resource": "note", "additionalFields": {"person_id": "={{ $json[\"id\"] }}"}}, "credentials": {"pipedriveApi": {"id": "1", "name": "Pipedrive account"}}, "typeVersion": 1}, {"id": "72b08b20-5b30-4f06-bf7e-34ab28421455", "name": "NoOp", "type": "n8n-nodes-base.noOp", "position": [1780, 540], "parameters": {}, "typeVersion": 1}, {"id": "e0a1b859-16d4-4884-a17a-6e857fdbe8d4", "name": "ON Pull Request", "type": "n8n-nodes-base.githubTrigger", "position": [640, 440], "webhookId": "ec0c326f-4ccd-4c07-8653-ec0fe23765d5", "parameters": {"owner": "John-n8n", "events": ["pull_request"], "repository": "DemoRepo"}, "credentials": {"githubApi": {"id": "7", "name": "GitHub account"}}, "typeVersion": 1}], "connections": {"HTTP Request": {"main": [[{"node": "Search PR user in Pipedrive by email", "type": "main", "index": 0}]]}, "person exists": {"main": [[{"node": "Pipedrive", "type": "main", "index": 0}], [{"node": "NoOp", "type": "main", "index": 0}]]}, "ON Pull Request": {"main": [[{"node": "HTTP Request", "type": "main", "index": 0}]]}, "Search PR user in Pipedrive by email": {"main": [[{"node": "person exists", "type": "main", "index": 0}]]}}}