Files
dbx/.github/workflows/issue-database-label.yml

66 lines
1.8 KiB
YAML

name: Issue Triage Labels
on:
issues:
types: [opened, edited, reopened]
push:
branches: [main]
paths:
- .github/scripts/database-issue-catalog.mjs
- .github/scripts/label-issue-database.mjs
- .github/workflows/issue-database-label.yml
- apps/desktop/src/types/database.ts
- crates/dbx-core/assets/database-drivers.manifest.json
workflow_dispatch:
concurrency:
group: issue-database-label-${{ github.event_name }}-${{ github.event.issue.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
issues: write
jobs:
label:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'issues' && !github.event.issue.pull_request }}
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22.13.0
- name: Triage issue labels and title
run: node .github/scripts/label-issue-database.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Assess repair and implementation priority with AI
continue-on-error: true
timeout-minutes: 2
run: node .github/scripts/ai-issue-priority.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ATLASCLOUD_API_KEY: ${{ secrets.ATLASCLOUD_API_KEY }}
ISSUE_TRIAGE_MODEL: ${{ vars.ISSUE_TRIAGE_MODEL }}
sync:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'issues' }}
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22.13.0
- name: Synchronize database labels
run: node .github/scripts/label-issue-database.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SYNC_DATABASE_LABELS: "1"