Automate GitHub Issue Assignment and Notifications
detail.loadingPreview
Streamline your GitHub issue management by automatically assigning issues and commenting based on user requests. This workflow ensures issues are promptly handled and notifications are sent effectively.
About This Workflow
This n8n workflow automates crucial aspects of GitHub issue management. It triggers on new issues and issue comments within a specified repository. The workflow intelligently analyzes incoming events, distinguishing between new issue creations and comments. It then checks for specific keywords like 'assign me' to identify user intent. Based on whether an issue is already assigned and the user's request, it can automatically assign the issue to the creator or commenter, add an 'assigned' label, or leave a helpful comment informing users of the current assignee. This dramatically reduces manual overhead and improves team responsiveness.
Key Features
- Automated Issue Assignment: Assign issues to the creator or commenter based on specific triggers.
- Smart Commenting: Leave informative comments when an issue is already assigned.
- Keyword Detection: Recognizes phrases like 'assign me' in comments to gauge user intent.
- Event-Driven Triggers: Responds to both new issue creations and comments on existing issues.
- Customizable Repository & Events: Easily configure which repositories and events to monitor.
How To Use
- Configure GitHub Trigger: Set up the
Github Triggernode to monitor your desired repository (owner,repository) and select the relevantevents(e.g.,issues,issue_comment). Authenticate using your GitHub OAuth2 credentials. - Define Action Logic: Use the
Switchnode to differentiate between different issueactiontypes (e.g., 'opened', 'created'). - Check for Assignees (New Issues): Connect the
Switchnode to theIF no assignee?node. This node checks if an issue has any assignees and if the issue body contains the phrase 'assign me' using a regex. - Assign Issue Creator: If no assignee is found and the issue body requests assignment, connect
IF no assignee?toAssign Issue Creator. Configure this node to edit the issue, assign the issue creator, and add an 'assigned' label. - Handle Comment Requests: Connect the
Switchnode to theIF wants to work?node. This node checks if a comment body contains the phrase 'assign me' using a regex. - Check if Already Assigned: Connect
IF wants to work?toIF not assigned?. This node checks if the issue has any assignees. - Assign Commenter: If the issue is not assigned and the commenter requested it, connect
IF not assigned?toAssign Commenter. Configure this node to assign the commenter to the issue and add an 'assigned' label. - Notify if Already Assigned: If the issue is already assigned, connect the false branch of
IF not assigned?toAdd Comment. This node will automatically comment on the issue, informing the user who is already assigned to it.
Apps Used
Workflow JSON
{
"id": "ece312ab-762f-47fc-9bc8-0b9eb2ac1982",
"name": "Automate GitHub Issue Assignment and Notifications",
"nodes": 20,
"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: ece312ab-762f...
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
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.