diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index 3e5b9e016..13830c66a 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -28,6 +28,11 @@ jobs: labels = labels.filter(label => label !== 'triage'); setLabels = true; } + if (context.payload.issue.title.match(/\[task\]/i)) { + labels.push('task'); + labels = labels.filter(label => label !== 'triage'); + setLabels = true; + } if (labels.length === 0) { labels.push('triage'); @@ -37,7 +42,7 @@ jobs: } case 'closed': { - if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement')) { + if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement') || labels.includes('task')) { labels.push('done'); setLabels = true; }