Assign GitHub PR reviewers by file ownership with Supabase and Slack
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Supabase and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set GitHub PR Variables (Edit Fields (Set)): sets 12 fields: github_token, repo_owner, repo_name…
- Check PR Action Type (If): checks a condition and branches into true / false
- Fetch PR Changed Files (HTTP Request): calls an HTTP API
- Retrieve Reviewer List (Supabase): get many
- Combine File and Review Data (Merge): merges the data from its input branches
- Identify File Owners (Code): runs custom JavaScript code
- Check Reviewers Availability (If): checks a condition and branches into true / false
- Assign GitHub Reviewers (HTTP Request): calls an HTTP API (POST)
- Split Each Reviewer (Split Out): splits a list into separate items
- Send Reviewer Slack Notification (Slack): uses Slack
…plus 1 more step. See the full node list below.
Services it uses
Other GitHub + Slack templates (68) · Other Supabase + Slack templates (42) · Other GitHub + Supabase templates (3)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Supabase
n8n-nodes-base.supabase - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp - Merge
n8n-nodes-base.merge
From the author
Quick Overview This workflow listens for GitHub pull request webhooks, looks up changed files and a reviewer roster in Supabase, selects matching reviewers based on file path ownership and last assignment time, then requests reviews in GitHub and notifies the…