Add an AI triage assistant #42
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |