Skip to content

Commit 1d869a7

Browse files
authored
Use the new Triage assistant (#3305)
1 parent 44ab407 commit 1d869a7

File tree

1 file changed

+39
-20
lines changed

1 file changed

+39
-20
lines changed

.github/workflows/label-with-ai.yml

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,53 @@ name: Apply labels using AI
33
on:
44
issues:
55
types: [opened, reopened]
6+
workflow_dispatch:
7+
inputs:
8+
issue_number:
9+
description: 'Issue number to triage'
10+
required: true
11+
type: number
612

713
jobs:
814
apply-label-and-add-comment:
915
runs-on: ubuntu-latest
1016
permissions:
17+
contents: read
1118
issues: write
19+
models: read
1220
steps:
13-
- uses: mattleibow/dev-tools@action/label-with-ai
14-
name: Apply AREA labels
21+
22+
- name: Determine AREA labels
23+
uses: mattleibow/triage-assistant@v0
24+
with:
25+
issue: ${{ inputs.issue_number || github.event.issue.number }}
26+
label-prefix: 'area/'
27+
template: 'single-label'
28+
29+
- name: Determine PLATFORM labels
30+
uses: mattleibow/triage-assistant@v0
1531
with:
16-
label-pattern: '^area/.*'
17-
apply-label: 'false'
18-
add-comment: 'false'
19-
- uses: mattleibow/dev-tools@action/label-with-ai
20-
name: Apply PLATFORM labels
32+
issue: ${{ inputs.issue_number || github.event.issue.number }}
33+
label-prefix: 'os/'
34+
template: 'multi-label'
35+
36+
- name: Determine BACKEND labels
37+
uses: mattleibow/triage-assistant@v0
2138
with:
22-
label-pattern: '^os/.*'
23-
apply-label: 'false'
24-
add-comment: 'false'
25-
- uses: mattleibow/dev-tools@action/label-with-ai
26-
name: Apply BACKEND labels
39+
issue: ${{ inputs.issue_number || github.event.issue.number }}
40+
label-prefix: 'backend/'
41+
template: 'multi-label'
42+
43+
- name: Determine TENET labels
44+
uses: mattleibow/triage-assistant@v0
2745
with:
28-
label-pattern: '^backend/.*'
29-
apply-label: 'false'
30-
add-comment: 'false'
31-
- uses: mattleibow/dev-tools@action/label-with-ai
32-
name: Apply TENET labels
46+
issue: ${{ inputs.issue_number || github.event.issue.number }}
47+
label-prefix: 'tenet/'
48+
template: 'single-label'
49+
50+
- name: Apply all labels and add comment
51+
uses: mattleibow/triage-assistant@v0
3352
with:
34-
label-pattern: '^tenet/.*'
35-
apply-label: 'false'
36-
add-comment: 'false'
53+
issue: ${{ inputs.issue_number || github.event.issue.number }}
54+
apply-labels: false
55+
apply-comment: false

0 commit comments

Comments
 (0)