n8n-nodes-diffy
This is an n8n community node that lets you use Diffy - an AI-powered code review tool - in your n8n workflows.
Diffy provides intelligent code reviews for GitLab and GitHub, analyzing pull requests and merge requests for bugs, security issues, performance problems, and code quality.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
``bash
npm install n8n-nodes-diffy
`
Or install via the n8n UI: Settings → Community Nodes → Install → Enter n8n-nodes-diffy
Operations
This node supports the following resources and operations:
$3
-
Trigger Review - Start a new code review on a merge request or pull request
-
Get Review - Get review details and comments by ID
-
List Reviews - List reviews with optional filters
-
Cancel Review - Cancel an in-progress review
-
Generate Summary - Generate an AI-powered summary for an MR/PR
$3
-
Create - Connect a new repository to Diffy
-
Get - Get repository details
-
List - List all connected repositories
-
Update - Update repository settings
-
Delete - Disconnect a repository
-
List Merge Requests - List MRs/PRs for a repository
-
Search GitLab Projects - Search GitLab projects you have access to
-
Search GitHub Projects - Search GitHub repositories you have access to
$3
-
Get Stats - Get context/embedding statistics for a repository
-
Sync - Sync codebase context and embeddings
-
Clear - Clear all context for a repository
-
Cancel Sync - Cancel an ongoing sync operation
$3
-
Index Files - Index specific files in the knowledge graph
-
Index Repository - Index the entire repository
-
Search Symbols - Search for code symbols (functions, classes, etc.)
-
Analyze Impact - Analyze the impact of file changes
-
Ask Question - Ask questions about the codebase
-
Get Graph - Get the knowledge graph for a repository
$3
-
Get Overview - Get overall metrics summary
-
Get Trends - Get review trends over time
-
Get Categories - Get issue breakdown by category
-
Get Top Files - Get files with the most issues
-
Get File Types - Get issues broken down by file type
-
Get Hourly Distribution - Get review distribution by hour
$3
-
List Global Rules - List global review rules
-
Create Global Rule - Create a new global rule
-
Update Global Rule - Update an existing global rule
-
Delete Global Rule - Delete a global rule
-
List Repo Rules - List repository-specific rules
-
Create Repo Rule - Create a repository-specific rule
$3
-
List Agents - List available review agents
-
Get Agent - Get agent details
-
Get Agent Prompt - Get the system prompt for an agent
$3
-
List Patterns - List learned code patterns
-
Create Pattern - Create a new pattern
-
Get Pattern - Get pattern details
-
Update Pattern - Update a pattern
-
Delete Pattern - Delete a pattern
-
Get Stats - Get pattern statistics
-
Analyze Code - Analyze code for matching patterns
$3
-
Health Check - Check API health status
-
List Models - List available LLM models
-
Get Providers - Get provider information
Credentials
To use this node, you need to configure the following credentials:
1. Base URL - The Diffy API base URL (default: https://app.diffy.site`)
2. API Token - Your Diffy API token from Settings → API Tokens
3. Environment - Optional label for organization (Production/Staging/Development)
Example Workflows
$3
1. Add a GitLab Trigger node to receive MR events
2. Add a Diffy node with operation "Trigger Review"
3. Map the MR IID and repository from the webhook payload
4. Optionally add a Slack node to notify your team
$3
1. Add a Schedule Trigger node (e.g., weekly)
2. Add a Diffy node with operation "Get Overview"
3. Add a Diffy node with operation "Get Trends"
4. Add an Email or Slack node to send the report
$3
1. Trigger on MR update via GitLab Trigger
2. Use Diffy "Analyze Impact" to assess changes
3. Based on impact score, add labels or request additional reviews
Resources
- Diffy Documentation
- n8n Community Nodes Documentation
- Diffy API Reference
License
MIT License
Support
- For Diffy-related questions: contact@diffy.site
- For n8n node issues: GitHub Issues