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
Automate issue assignments with n8n and GitHub

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

Learn how to Build this Workflow with AI:

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.


Automate issue assignments with n8n and GitHub

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.