Automate GitHub Issue Assignments
detail.loadingPreview
Streamline your GitHub workflow by automatically assigning issues to the right people. This automation handles both newly created issues and comments that explicitly request an assignment, ensuring no task goes unassigned.
About This Workflow
This n8n workflow automates the process of assigning GitHub issues, significantly improving team productivity and issue management. It triggers on new issues or issue comments, intelligently deciding who to assign based on predefined conditions. For newly opened issues, it assigns the creator by default if no other assignee is specified. For comments, it checks if the commenter explicitly requests an assignment using a specific phrase. If the issue is already assigned, it notifies the commenter. This eliminates manual assignment tasks and ensures issues are promptly handled by the appropriate team members.
Key Features
- Automatic Assignment: Assigns new issues to their creators automatically.
- Comment-Based Assignment: Assigns issues to users who comment requesting assignment.
- Intelligent Routing: Differentiates between issue creation and comments to apply correct logic.
- Assignment Notification: Informs users if an issue they commented on is already assigned.
- Label Management: Automatically adds an 'assigned' label to issues once assigned.
How To Use
- GitHub Trigger: Configure the
Github Trigger1node with your GitHub owner, repository, and selectissuesandissue_commentevents. - Event Switching: The
Switchnode routes incoming events based on theactionfield (e.g.,openedfor issues,createdfor comments). - New Issue Logic: For newly opened issues, the
IF no assignee?node checks if the issue has any assignees. If not,Assign Issue Creatorassigns the issue to the original creator and adds an 'assigned' label. - Comment Logic: For issue comments, the
IF wants to work?node checks if the comment body contains a phrase like "assign me" using a regex. - Assign Commenter or Notify: If the comment indicates a desire for assignment and the
IF not assigned?node confirms the issue is unassigned,Assign Commenterassigns the issue to the commenter. If the issue is already assigned, theAdd Commentnode informs the commenter who the current assignee is. - NoOps: The
NoOpandNoOp1nodes serve as placeholders for actions that don't require further processing or represent branches where no action is taken.
Apps Used
Workflow JSON
{
"id": "bfbf3592-71a3-4c34-8622-8dfaf29cd753",
"name": "Automate GitHub Issue Assignments",
"nodes": 9,
"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: bfbf3592-71a3...
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.