Skip to content

[Docs](fix) extend quick start with next-step development index #3198

[Docs](fix) extend quick start with next-step development index

[Docs](fix) extend quick start with next-step development index #3198

Workflow file for this run

name: "Auto labeling"
on:
issues:
types: [opened, edited]
pull_request_target:
types: [opened, synchronize, reopened, edited]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.issue.number || github.event.pull_request.number }}
cancel-in-progress: true
permissions: {}
jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
# ── Ensure all expected labels exist in the repo ──
- name: Ensure labels
uses: actions/github-script@v7
with:
script: |
const DESIRED = {
'build': 'Changes to build system or configuration',
'CICD': 'Changes to CI/CD workflows or actions',
'compiler': 'Changes to C/C++ compiler backend (lib/, include/)',
'python': 'Changes to Python runtime or bindings',
'tests': 'Changes to test files or infrastructure',
'ascend-backend': 'Changes to the Ascend NPU backend',
'kernels': 'Changes to Triton kernels',
'dependencies': 'Changes to project dependencies',
'docker': 'Changes to Docker configuration',
'documentation': 'Changes to documentation',
'scripts': 'Changes to utility scripts or tooling',
'release': 'Changes to release process or versioning',
};
const { data: existing } = await github.rest.issues.listLabelsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
per_page: 100,
});
const existingNames = new Set(existing.map(l => l.name));
for (const [name, desc] of Object.entries(DESIRED)) {
if (!existingNames.has(name)) {
await github.rest.issues.createLabel({
owner: context.repo.owner,
repo: context.repo.repo,
name,
description: desc,
color: 'ededed',
});
console.log(`Created label: ${name}`);
}
}
console.log('All labels present');
# ── Issue labeling (regex match on title + body) ──
- if: github.event_name == 'issues'
uses: jimschubert/labeler-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
config_path: .github/actions/issue-labeler.yml
# ── PR labeling (file-path glob match) ──
- if: github.event_name == 'pull_request_target'
uses: actions/labeler@v5
with:
configuration-path: .github/actions/labeler.yml
sync-labels: true