mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-14 16:40:30 +00:00
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.
31 lines
762 B
YAML
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 });
|