Block 1 - GH - Get PR
- Type / Role
- n8n-nodes-base.github - github
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
Workflow: Automatic Unit Test Creator from GitHub ️ Architecture Overview This workflow listens for GitHub pull request events, analyzes changed React/TypeScript files, auto generates Jest tests ...
n8n-nodes-base.github, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.githubtool, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Varritech.
Original n8n.io sourceThis workflow listens for GitHub pull-request events, analyzes changed React/TypeScript files, auto-generates Jest tests via AI, has them reviewed by a second AI pass, and posts suggestions back as PR comments:
flowchart LR
A[Webhook: /github/pr-events] --> B[GitHub: Get PR]
B --> C[Function: Parse diff_url + owner/repo]
C --> D[HTTP Request: GET diff_url]
D --> E[Function: Split on "diff --git"]
E --> F[Filter: /\.tsx$/]
F --> G[GitHub: Get File Contents]
G --> H[Test Maker Agent]
H --> I[Code Reviewer Agent]
I --> J[Function: Build Comment Payload]
J --> K[HTTP Request: POST to PR Comments]
/webhook/github/pr-events)pull_request.opened, pull_request.synchronize// generated tests…
{ "body": "<tests>" }
https://api.github.com/repos/{owner}/{repo}/issues/{pull_number}/commentsThis catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Automatic jest test generation for GitHub PRs with dual AI review |
|---|---|
| Complexity | advanced |
| Nodes | 24 |
| Categories | Engineering, Multimodal AI |
| Author | Varritech |
| Published | 13 May 2025 |
Use the JSON export at /data/workflows/4013/4013.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Workflow: Automatic Unit Test Creator from GitHub ️ Architecture Overview This workflow listens for GitHub pull request events, analyzes changed React/TypeScript files, auto generates Jest tests ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, Multimodal AI use case.