Skip to content

Commit cb19be6

Browse files
Add AutoTriage labeling workflows (#109)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com> Co-authored-by: Daniel Chalmers <daniel.chalmers@outlook.com>
1 parent 808c6d4 commit cb19be6

3 files changed

Lines changed: 61 additions & 0 deletions

File tree

.github/AutoTriage.prompt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# DesktopClock AutoTriage Policy
2+
3+
## Scope
4+
- The only allowed action is applying labels to the issue or pull request being triaged.
5+
6+
## Rules
7+
- Apply the single best primary label (`bug`, `enhancement`, or `question`) when one clearly fits.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: AutoTriage (Issues)
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
triage_issue:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: AutoTriage - triage issue
19+
uses: danielchalmers/AutoTriage@v3
20+
with:
21+
issues: ${{ github.event.issue.number }}
22+
prompt-path: .github/AutoTriage.prompt
23+
model-fast: ""
24+
model-pro: gemini-3.1-flash-lite-preview
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: AutoTriage (PRs)
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, ready_for_review]
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
triage_pr:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: AutoTriage - triage PR
19+
uses: danielchalmers/AutoTriage@v3
20+
with:
21+
issues: ${{ github.event.pull_request.number }}
22+
prompt-path: .github/AutoTriage.prompt
23+
model-fast: ""
24+
model-pro: gemini-3.1-flash-lite-preview
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}

0 commit comments

Comments
 (0)