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 51% rename from .github/workflows/autotriage-issues.yml rename to .github/workflows/autotriage.yml index 9ece634..4be69a1 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,14 @@ 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 + - uses: danielchalmers/AutoTriage@v4 with: - issues: ${{ github.event.issue.number }} - prompt-path: .github/AutoTriage.prompt - model-fast: "" - model-pro: gemini-3.1-flash-lite-preview + issues: ${{ github.event.pull_request.number || github.event.issue.number }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}