Pulse/.github/workflows/issue-version-label-sync.yml
rcourtman 730290cc80 Split issue triage workflows
Separate silent issue metadata sync from public retest guidance so maintainer edits and reporter-facing comments do not share the same workflow boundary. Extract the shared parsing and classification logic into a local helper with a small node test so both workflows stay in sync without duplicating the script.
2026-04-15 19:08:06 +01:00

31 lines
762 B
YAML

name: Issue Version Label Sync
on:
issues:
types:
- opened
- edited
- reopened
permissions:
contents: read
issues: write
jobs:
sync:
if: ${{ github.event.issue.pull_request == null }}
runs-on: ubuntu-latest
steps:
- name: Check out triage helper
uses: actions/checkout@v4
with:
sparse-checkout: |
.github/scripts/issue-version-triage.cjs
sparse-checkout-cone-mode: false
- name: Sync issue version metadata
uses: actions/github-script@v7
with:
script: |
const triage = require(`${process.env.GITHUB_WORKSPACE}/.github/scripts/issue-version-triage.cjs`);
await triage.syncLabels({ github, context, core });