From 9c3f5ee8ede7c0000f0254a136192f848fd8f80a Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Wed, 20 May 2026 13:27:06 -0500 Subject: [PATCH 1/3] Update AutoTriage to v4 --- .github/AutoTriage.prompt | 7 ----- .github/workflows/autotriage-prs.yml | 27 ------------------- .../{autotriage-issues.yml => autotriage.yml} | 14 +++++----- 3 files changed, 7 insertions(+), 41 deletions(-) delete mode 100644 .github/AutoTriage.prompt delete mode 100644 .github/workflows/autotriage-prs.yml rename .github/workflows/{autotriage-issues.yml => autotriage.yml} (59%) diff --git a/.github/AutoTriage.prompt b/.github/AutoTriage.prompt deleted file mode 100644 index 5c45f30..0000000 --- a/.github/AutoTriage.prompt +++ /dev/null @@ -1,7 +0,0 @@ -# DesktopClock AutoTriage Policy - -## Scope -- The only allowed action is applying labels to the issue or pull request being triaged. - -## Rules -- Apply the single best primary label (`bug`, `enhancement`, or `question`) when one clearly fits. diff --git a/.github/workflows/autotriage-prs.yml b/.github/workflows/autotriage-prs.yml deleted file mode 100644 index 454d3f1..0000000 --- a/.github/workflows/autotriage-prs.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: AutoTriage (PRs) - -on: - pull_request_target: - types: [opened, ready_for_review] - -permissions: - contents: read - issues: write - pull-requests: write - -jobs: - triage_pr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - - name: AutoTriage - triage PR - uses: danielchalmers/AutoTriage@v3 - with: - issues: ${{ github.event.pull_request.number }} - prompt-path: .github/AutoTriage.prompt - model-fast: "" - model-pro: gemini-3.1-flash-lite-preview - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} diff --git a/.github/workflows/autotriage-issues.yml b/.github/workflows/autotriage.yml similarity index 59% rename from .github/workflows/autotriage-issues.yml rename to .github/workflows/autotriage.yml index 9ece634..23bbdb6 100644 --- a/.github/workflows/autotriage-issues.yml +++ b/.github/workflows/autotriage.yml @@ -1,6 +1,8 @@ -name: AutoTriage (Issues) +name: AutoTriage on: + pull_request_target: + types: [opened] issues: types: [opened] @@ -10,18 +12,16 @@ permissions: pull-requests: write jobs: - triage_issue: + triage: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - name: AutoTriage - triage issue - uses: danielchalmers/AutoTriage@v3 + - name: Triage + uses: danielchalmers/AutoTriage@v4 with: - issues: ${{ github.event.issue.number }} + issues: ${{ github.event.pull_request.number || github.event.issue.number }} prompt-path: .github/AutoTriage.prompt - model-fast: "" - model-pro: gemini-3.1-flash-lite-preview env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} From 40bf80236bccb786856b3d7b7f783e4017cf8dd7 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Wed, 20 May 2026 13:28:12 -0500 Subject: [PATCH 2/3] Update autotriage.yml --- .github/workflows/autotriage.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/autotriage.yml b/.github/workflows/autotriage.yml index 23bbdb6..81a0e46 100644 --- a/.github/workflows/autotriage.yml +++ b/.github/workflows/autotriage.yml @@ -17,8 +17,7 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Triage - uses: danielchalmers/AutoTriage@v4 + - uses: danielchalmers/AutoTriage@v4 with: issues: ${{ github.event.pull_request.number || github.event.issue.number }} prompt-path: .github/AutoTriage.prompt From 13936582d1c1daf6a1ae6d01506c9220c39ec1eb Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Wed, 20 May 2026 13:28:47 -0500 Subject: [PATCH 3/3] Update autotriage.yml --- .github/workflows/autotriage.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/autotriage.yml b/.github/workflows/autotriage.yml index 81a0e46..4be69a1 100644 --- a/.github/workflows/autotriage.yml +++ b/.github/workflows/autotriage.yml @@ -20,7 +20,6 @@ jobs: - uses: danielchalmers/AutoTriage@v4 with: issues: ${{ github.event.pull_request.number || github.event.issue.number }} - prompt-path: .github/AutoTriage.prompt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}