Code Review workflow
Triggered manually or by an app event. Connects Code, GitHub, Google Sheets Tool, HTTP request. 1-The GitHub Trigger node initiates the workflow whenever a pull request event occurs on a specified repository. It enables real-time automation based on GitHub activity. 2-Get PR Diffs The HTTP Request node fetches the list of changed files and their diffs from the pull request that triggered the workf
Front matter
name: Code Review workflow
description: Triggered manually or by an app event. Connects Code, GitHub, Google Sheets Tool, HTTP request. **1-The GitHub Trigger** node initiates the workflow whenever a pull request event occurs on a specified repository. It enables real-time automation based on GitHub activity. **2-Get PR Diffs** The HTTP Request node fetches the list of changed files and their diffs from the pull request that triggered the workflow. It uses the GitHub REST API to retrieve this data dynamically based on the trigger payload. {{ $env.API_BASE_URL }}{{$json.body.sender.login}}/{{$json.body.repository.name}}/pulls/{
category: Automation
kind: Workflow
software: Code|GitHub|Google Sheets Tool|HTTP requestCode Review workflow
Triggered manually or by an app event. Connects Code, GitHub, Google Sheets Tool, HTTP request. 1-The GitHub Trigger node initiates the workflow whenever a pull request event occurs on a specified repository. It enables real-time automation based on GitHub activity. 2-Get PR Diffs The HTTP Request node fetches the list of changed files and their diffs from the pull request that triggered the workflow. It uses the GitHub REST API to retrieve this data dynamically based on the trigger payload.
{{ $env.API_BASE_URL }}{{$json.body.sender.login}}/{{$json.body.repository.name}}/pulls/{
Steps
- OpenAI Chat Model (noOp)
- PR Trigger (githubTrigger)
- Get file's Diffs from PR (httpRequest)
- Create target Prompt from PR Diffs (code)
- GitHub Robot (github)
- Add Label to PR (github)
- Code Best Practices (googleSheetsTool)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Code Review Agent (noOp)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/1292_Code_GitHub_Automate_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- Githubtrigger Workflow: GitHub, Git and Home Assistant
- Manualtrigger Workflow: GitHub, Slack and HTTP request
- Production Workflow: HTTP request and Read Binary File
- Manualtrigger Workflow: ChatGPT, Code and Google Sheets
- Production Workflow: AWS, Aws Rekognition and Function
- Manualtrigger Workflow: Salesforce, Condition and HTTP request
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.