Skip to content

Add an AI triage assistant #42

Add an AI triage assistant

Add an AI triage assistant #42

name: "Triage: Apply Labels"
on:
pull_request:
types: [reopened, synchronize, opened]
# issues:
# types: [opened, edited]
workflow_dispatch:
inputs:
issue_number:
description: 'Issue number to triage'
required: true
type: number
permissions:
contents: read
issues: read
models: read
jobs:
triage-issue:
name: Apply Labels
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Determine label for the issue
id: triage
uses: ./.github/actions/triage-labels
with:
issue: ${{ github.event_name == 'workflow_dispatch' && inputs.issue_number || '29634' }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Log Labels
run: |
echo "Labels to apply: ${{ steps.triage.outputs.labels }}"
echo "Labels file: ${{ steps.triage.outputs.labels-file }}"