Automate GitHub Issue Assignments with n8n GitHub Trigger

This workflow automates GitHub issue assignment by automatically assigning either the issue creator or commenters based on the issue state and comments, solving delays and confusion in managing open issues on repositories.
githubTrigger
switch
if
+2
Workflow Identifier: 1397
NODES in Use: GitHub Trigger, Switch, IF, NoOp, GitHub

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This n8n workflow helps to assign GitHub issues automatically.
This stops delays in fixing problems and confusion about who is working on what.
It assigns the person who made the new issue or a user who comments “assign me”.
It also adds a label “assigned” to mark issues that were given someone.

The workflow watches for new issues and comments.
It then checks if the issue is unassigned and assigns the right person.


Inputs, Processing Steps, and Outputs

Inputs

  • GitHub Issue Event: Trigger when a new issue is opened.
  • GitHub Issue Comment Event: Trigger when someone comments on an issue.

Processing Steps

  • The workflow checks if the event is a new issue or a comment.
  • If it is a new issue with no assignee, it assigns the issue creator.
  • When a comment says “assign me” (in any case or spacing), the workflow checks if the issue has no assignee.
  • If unassigned, it assigns the commenter.
  • If the issue has an assignee already, the workflow comments back telling who is assigned.
  • Whenever an assignment happens, the issue is labeled as “assigned”.

Outputs

  • GitHub Issue Assigned: Issue assigned to the correct user.
  • GitHub Comment Added: Comment informs users if assignment is taken.
  • GitHub Label Added: “assigned” label marks assigned issues.

Who should use this workflow

Users managing busy GitHub repositories with many issues.
Anyone who wants to save time and avoid confusion in assigning issues.

This suits open source maintainers, small dev teams, and community managers.


Tools and services used

  • GitHub API: Receives issue and comment events, updates issues.
  • n8n Platform: Runs the workflow and connects GitHub nodes.
  • GitHub OAuth2 Credentials: Authenticates API calls.

Beginner step-by-step: How to use this workflow in n8n

Step 1: Download and import the workflow

  1. Click the “Download” button on this page.
  2. Open n8n editor already logged in.
  3. Choose “Import from File” in the workflow menu.
  4. Select the downloaded workflow JSON.

Step 2: Configure credentials and settings

  1. Add GitHub OAuth2 credentials linked to your account.
  2. Update the owner and repository names if different.
  3. Set any other required IDs, emails, or labels mentioned.

Step 3: Test the workflow

  1. Trigger by opening a test issue or making a test comment.
  2. Check if the issue assigns correctly or comment gets added.
  3. Fix any errors shown in the n8n execution panel.

Step 4: Activate for production

  1. Enable the workflow by toggling “Active” at the top.
  2. Make sure the GitHub webhook matches the GitHub Trigger node URL.
  3. Observe issues and comments to confirm automation works.

If self hosting n8n, consider useful self-host n8n options.


Customization ideas

  • Change the phrase to trigger assignment from “assign me” to anything like “count me in”.
  • Add more GitHub events such as pull requests for wider automation.
  • Assign based on labels using extra logic nodes.
  • Modify comments to include links to contribution rules or thank-you messages.
  • Integrate Slack or Discord notifications on new assignments.

Troubleshooting tips

  • Problem: No workflow runs on issues or comments.
    Fix: Check webhook URL and selected GitHub events match in GitHub settings.
  • Problem: Issue assignments not updating.
    Fix: Ensure GitHub OAuth2 token has repo permissions.
    Verify expressions for owner, repo, and issue number in nodes.
  • Problem: Assignment triggers not matching comment text.
    Fix: Test and adjust regex pattern for “assign me” phrase.

Pre-production checklist

  • Confirm GitHub OAuth2 credentials work and have permissions.
  • Test webhook URL by creating a test issue or comment.
  • Review all node configurations and connections in n8n.
  • Verify GitHub repository webhook is active and receiving events.

Deployment guide

After testing, set the workflow to active.
Monitor executions regularly in the n8n dashboard.

Optionally add logging or alert nodes for record keeping or notifications.


Summary of benefits and results

✓ Saves over 3 hours a week by automating GitHub issue assignments.
✓ Prevents delays and confusion about who’s working on issues.
✓ Makes collaboration faster and clearer by labeling assigned issues.
→ Creates a smooth, automatic way for assigning GitHub issues.
→ Reduces manual work for maintainers and teams.


Frequently Asked Questions

It triggers on the GitHub issue opened event and checks if the issue has no assignees. Then it assigns the issue creator.
The workflow posts a comment replying to the user, telling them the current assignee’s username.
Yes, the regex in the IF node checking comments can be updated to any phrase like ‘count me in’.
Yes, the GitHub OAuth2 credentials must allow reading issues and changing assignees and labels.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free