GitHub Issue Assignee Automation
detail.loadingPreview
Automate GitHub issue assignment based on keywords in issue body or comments.
About This Workflow
This n8n workflow automates the process of assigning GitHub issues. It triggers on new issues and issue comments within a specified repository. The workflow intelligently assigns issues to the issue creator if no assignee is present and the issue body contains the phrase "assign me" (or variations). It also handles comments, assigning the issue to the commenter if they mention "assign me" and the issue is not already assigned. If an issue is already assigned when a comment requests assignment, a notification comment is added.
Key Features
- Event Triggers: Responds to
issue_commentandissuesevents from GitHub. - Keyword Detection: Uses regex to detect "assign me" (case-insensitive) in issue bodies and comments.
- Conditional Assignment: Assigns issues based on the presence of assignees and specific keywords.
- Automated Assignment: Assigns the issue to the creator or commenter when requested and appropriate.
- Status Updates: Adds a "assigned" label to issues upon assignment.
- Notification Handling: Posts a comment to inform users if an issue is already assigned when they request it.
- Webhook Integration: Utilizes GitHub webhooks for real-time automation.
How To Use
- Setup GitHub Trigger: Configure the
Github Triggernodes with your GitHub repository (owner,repository) and select the relevant events (issue_comment,issues). Ensure proper authentication is set up using GitHub OAuth2 credentials. - Branching Logic (Switch Node): The
Switchnode directs the workflow based on the GitHub event action. It distinguishes between issue creation/updates and comments. - Issue Creator Assignment Logic (IF no assignee? & Assign Issue Creator):
- The
IF no assignee?node checks if an issue has any assignees and if the issue body contains the "assign me" regex. - If no assignees are found and the regex matches, the
Assign Issue Creatornode assigns the issue to the original creator and adds an "assigned" label.
- The
- Commenter Assignment Logic (IF wants to work? -> IF not assigned? & Assign Commenter):
- The
IF wants to work?node checks if a comment body contains the "assign me" regex. - If it does, the
IF not assigned?node checks if the issue is already assigned. - If the issue is not assigned, the
Assign Commenternode assigns the issue to the commenter and adds an "assigned" label. - If the issue is already assigned, the
Add Commentnode informs the commenter that the issue is taken.
- The
Apps Used
Workflow JSON
{
"id": "abeb35c1-96cb-409a-841f-88ae3641f349",
"name": "GitHub Issue Assignee Automation",
"nodes": 5,
"category": "Automation",
"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: abeb35c1-96cb...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Dynamic Prompt Generation from GitHub with Language Model Integration
Fetches prompts from a GitHub repository, substitutes variables, and processes them with an AI agent.
Inventory Slack Alert Workflow
Triggers an alert based on inventory changes, processes data using RAG, and logs results.
Automated Google Drive Backup for n8n Workflows
Automatically back up n8n workflows to Google Drive on a schedule.