Auto-Assign GitHub Issues & Comments on 'Assign Me' Keyword
detail.loadingPreview
Automate GitHub issue assignment and comment responses. Assigns issues to creators or commenters when 'assign me' is detected. Saves developer time.
🚀Ready to Deploy This Workflow?
About This Workflow
How it works
This workflow automates GitHub issue management based on specific keywords.
- Github Trigger: Listens for
issue_commentandissuesevents on a specified GitHub repository. - Switch Node: Determines the type of event received. It routes to different paths for 'opened' and 'created' issue events.
- IF no assignee? Node (for opened issues): Checks if an issue has any assignees. If not, it proceeds to assign the issue creator.
- Assign Issue Creator Node: If the issue has no assignees, this node assigns the issue creator as the assignee and adds an 'assigned' label.
- IF wants to work? Node (for comments): Triggers when a new comment is made on an issue. It checks if the comment body contains the regex pattern
/[a,A]ssign[\w*\s*]*me/gm, indicating the commenter wants to be assigned. - IF not assigned? Node: If the 'wants to work' condition is met, this node checks if the issue is currently assigned.
- Assign Commenter Node: If the issue is not already assigned and the comment requests assignment, this node assigns the commenter to the issue and adds an 'assigned' label.
- Add Comment Node: If the issue is already assigned, this node posts a comment on the issue informing the commenter that it's already assigned to someone else.
- NoOp Nodes: Act as placeholders to signify the end of a logic path without performing any action.
Key Features
- Automatic issue assignment based on creator.
- Automatic assignee assignment from issue comments.
- Keyword detection for assignment requests ('assign me').
- Real-time GitHub event monitoring.
- Notification for already assigned issues.
How To Use
- GitHub Trigger: Configure the GitHub trigger node with your repository owner, name, and select the
issue_commentandissuesevents. Ensure you have authenticated with GitHub using OAuth2. - Switch Node: Set the
value1to={{$json["body"]["action"]}}to switch based on the GitHub event action. - IF no assignee? Node: Configure conditions to check if
={{$json["body"]["issue"]["assignees"].length}}is equal to0and if the issue body matches/[a,A]ssign[\w*\s*]*me/gm(optional, for when an issue is opened and someone immediately requests assignment in the body). - Assign Issue Creator Node: Ensure the GitHub credentials are set. The
owner,repository, andissueNumbershould be dynamically pulled from the trigger. Theassigneeshould be={{$json["body"]["issue"]["user"]["login"]}}. - IF wants to work? Node: Set the
value1to={{$json["body"]["comment"]["body"]}}and thevalue2to/[a,A]ssure[\w*\s*]*me/gmto detect assignment requests in comments. - IF not assigned? Node: Set the condition to check if
={{$json["body"]["issue"]["assignees"].length}}is equal to0. - Assign Commenter Node: Ensure the GitHub credentials are set. The
owner,repository, andissueNumbershould be dynamically pulled. Theassigneeshould be={{$json["body"]["comment"]["user"]["login"]}}. - Add Comment Node: Configure the message for when an issue is already assigned. Use placeholders like
@{{$json["body"]["comment"]["user"]["login"]}}and{{$json["body"]["issue"]["assignee"]["login"]}}.
Apps Used
Workflow JSON
{
"id": "bbe4b584-0693-49ef-bcb6-507fdbda2865",
"name": "Auto-Assign GitHub Issues & Comments on 'Assign Me' Keyword",
"nodes": 0,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: bbe4b584-0693...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Integrations
- GitHub + Schedule Trigger(25 workflows)
- GitHub + n8n(18 workflows)
- Execute Workflow Trigger + GitHub(17 workflows)
- GitHub + Split Out(12 workflows)
- GitHub + GitHub Trigger(11 workflows)
- GitHub Trigger + Pipedrive(5 workflows)
- GitHub Trigger + Slack(5 workflows)
- GitHub + Slack(5 workflows)
- Execute Command + GitHub(4 workflows)
- GitHub + Telegram(4 workflows)
Related Workflows
Discover more workflows you might like
Automated n8n Workflow GitHub Backup & Sync
Automatically back up and synchronize your n8n workflows to a GitHub repository, ensuring version control, easy collaboration, and reliable recovery. This subworkflow intelligently compares existing files with new versions and updates or creates them on GitHub as needed.
AI-Powered Linear Issue Management with n8n Tools
This n8n workflow empowers your AI agents to fully manage Linear issues by exposing a comprehensive suite of actions (create, read, update, delete) as callable tools. Integrate intelligent automation directly into your project management processes.
One-Click Rundeck Job Automation
This workflow provides a simple, manual trigger to instantly execute a predefined job within your Rundeck environment. Perfect for on-demand operations, it streamlines the initiation of critical IT tasks with a single click.
Automated Jira Ticket Triage and Enhancement
Streamline your Jira workflow with intelligent automation. This solution automatically fetches open tickets, enhances them with AI-powered labeling, prioritization, and summary rewriting, and updates your Jira instance.
Automate Claude API Calls with Batch Processing
Streamline your AI interactions with Claude by leveraging n8n for efficient batch prompt submission. This workflow automates sending multiple prompts simultaneously and retrieving their results, saving you time and resources.
Build a Custom OpenAI-Compatible LLM Proxy with n8n
This workflow transforms n8n into a powerful OpenAI-compatible API proxy, allowing you to centralize and customize how your applications interact with various Large Language Models. It enables a unified interface for diverse AI capabilities, including multimodal input handling and dynamic model routing.