Skip to content

feat: Add automation workflows (auto-assign, dependabot) #14

feat: Add automation workflows (auto-assign, dependabot)

feat: Add automation workflows (auto-assign, dependabot) #14

Workflow file for this run

name: Issue Triage
on:
issues:
types: [opened]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const issue = context.payload.issue;
const labels = issue.labels.map(l => l.name);
// Add needs-triage if no type label
const hasTypeLabel = labels.some(l => l.startsWith('type/'));
if (!hasTypeLabel) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
labels: ['status/needs-triage']
});
}