Skip to content

Commit f218880

Browse files
committed
Automatically label issues using LLM
#238 [ci skip]
1 parent 58ee54a commit f218880

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ai-labeler.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ai-labeler
2+
on:
3+
issues:
4+
types: [opened, edited, reopened, labeled]
5+
pull_request:
6+
types: [opened, edited, reopened, labeled]
7+
8+
jobs:
9+
ai-labeler:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
issues: write
14+
pull-requests: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- if: >-
18+
github.event.action != 'labeled' ||
19+
github.event.label.name == 'status/needs triage'
20+
uses: jlowin/[email protected]
21+
with:
22+
include-repo-labels: true
23+
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
24+
- if: >-
25+
github.event.action == 'labeled' &&
26+
github.event.label.name == 'status/needs triage'
27+
uses: actions-ecosystem/action-remove-labels@v1
28+
with:
29+
labels: "status/needs triage"

0 commit comments

Comments
 (0)