Automate GitHub Issue Assignment with n8n Workflow

Discover how this unique n8n workflow automates GitHub issue assignment, instantly assigning issues to creators or volunteers who comment ‘assign me.’ Save hours in repository management and avoid manual errors using GitHub and n8n integration.
githubTrigger
switch
if
+2
Workflow Identifier: 1393
NODES in Use: GitHub Trigger, Switch, IF, NoOp, GitHub
Automate GitHub issue assignment 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 workflow automatically assigns GitHub issues when they are created or when someone comments asking to be assigned. It checks if the issue has no one assigned. If it is free, it assigns the issue to the creator or the commenter who says “assign me”. If the issue is already assigned, it leaves a polite reply saying who owns it. It also adds an “assigned” label to help track the issue.

This saves time by removing manual steps. It stops mistakes like missed assignments or slow answers. Contributors get quick feedback, helping teamwork run better.


Who Should Use This Workflow

This is for GitHub project maintainers who handle many issues and want to assign them fast and clearly. It helps open-source projects or teams where volunteers ask to help by commenting. If manual assignment feels slow or confusing, this workflow suits you.


Tools and Services Used

  • n8n: Automation platform to build and run the workflow.
  • GitHub API: Listens for issue events and manages issue assignees and comments.
  • GitHub OAuth2 Credentials: Authentication for API access with permission to edit issues.

How the Workflow Works (Input → Process → Output)

Inputs

  • Events from GitHub when issues open or comments are made.
  • Issue or comment data including author, assignees, and content.

Processing Steps

  • Detect if event is a new issue opening or a new comment.
  • For new issues, check if no one is assigned. If free, assign the creator.
  • For comments, check if “assign me” phrase (case-insensitive) is present.
  • If commenter requests assignment and issue is free, assign commenter.
  • If issue already assigned, post a polite comment naming the current assignee.
  • Always add a label “assigned” to assigned issues.

Outputs

  • GitHub issues updated with assignees and labels.
  • Comments added for assignment responses when needed.

Beginner Step-by-Step: Using This Workflow in n8n

1. Import the Workflow

  1. Inside the n8n editor, click the “Import” button from the menu.
  2. Select the workflow file from this page using the Download button.

2. Configure Credentials

  1. In n8n, go to Credentials and add your GitHub OAuth2 credentials with repo write access.
  2. Assign those credentials to the Webhook node and any GitHub nodes.

3. Update Repository Info if Needed

  1. Check the repository owner and name fields in GitHub nodes.
  2. Change if your repository is different from the default.

4. Test the Workflow

  1. Create a new issue on the repo with no assignee to check if it assigns the creator.
  2. Add a comment on any issue with “assign me” to test assignment or polite reply.

5. Activate for Production

  1. Turn the workflow ON in the n8n editor to start listening and reacting to events.
  2. Make sure webhooks in your GitHub repo are active and linked to n8n.

If you want to run this workflow on your own server, consider self-host n8n setup for more control and uptime.


Customization Ideas

  • You can change the phrase that triggers assignments by editing the regex in the check nodes for comments and issues.
  • Assign issues automatically to multiple users or a team by adding more assignees in the assignment nodes.
  • Modify labels added to issues to fit your project tracking style.
  • Change the comment text that informs users about current assignees to be more friendly or detailed.

Edge Cases and Troubleshooting

  • If authentication fails, check your OAuth2 token has correct scopes and refresh if expired.
  • If issues are not assigned after “assign me” comments, test and correct the regex patterns in the workflow.
  • If workflow triggers do not occur, verify GitHub webhooks settings include both issues and issue_comment events and correct URLs.
  • Use NoOp nodes to handle branches without action to avoid workflow errors.

Summary

✓ Automatically assign new GitHub issues to creators when unassigned.
✓ Assign interested commenters after “assign me” phrase detected.
✓ Add clear labels “assigned” for tracking.
✓ Post polite replies if issues already have assignees.
✓ Reduce manual work and improve response time for contributors.


Automate GitHub issue assignment with n8n and GitHub

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

Yes, personal access tokens work but OAuth2 is preferred for better security and token refresh.
The workflow uses minimal API calls mostly for assignments and comments, typically staying within free tier limits.
Yes, it is safe if OAuth credentials and webhook settings are kept secure.
Update the regular expression in the IF nodes that check comment bodies to detect your chosen phrase.

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.