| 1 | name: Request verification on released issues |
| 2 | |
| 3 | # A PR that writes "Fixes #N" auto-closes its issue on merge. One that writes |
| 4 | # "Refs"/"Related"/"Addresses" does not, so the report stays open waiting for a |
| 5 | # follow-up nobody remembers to send after the release. This sends it. |
| 6 | |
| 7 | on: |
| 8 | workflow_dispatch: |
| 9 | inputs: |
| 10 | tag: |
| 11 | description: Release tag to announce (e.g. desktop-v1.18.0) |
| 12 | required: true |
| 13 | type: string |
| 14 | dry_run: |
| 15 | description: Print the targets without commenting |
| 16 | required: false |
| 17 | default: true |
| 18 | type: boolean |
| 19 | release: |
| 20 | types: [published] |
| 21 | push: |
| 22 | branches: |
| 23 | - main-v2 |
| 24 | paths: |
| 25 | - '.github/workflows/release-verify-issues.yml' |
| 26 | - 'scripts/release-verify-issues.mjs' |
| 27 | - 'scripts/release-verify-issues.test.mjs' |
| 28 | |
| 29 | permissions: |
| 30 | contents: read |
| 31 | issues: write |
| 32 | |
| 33 | concurrency: |
| 34 | group: release-verify-issues-${{ github.event.inputs.tag || github.event.release.tag_name || github.ref }} |
| 35 | cancel-in-progress: false |
| 36 | |
| 37 | jobs: |
| 38 | notify: |
| 39 | if: github.repository == 'esengine/DeepSeek-Reasonix' |
| 40 | runs-on: ubuntu-latest |
| 41 | steps: |
| 42 | - uses: actions/checkout@v7 |
| 43 | with: |
| 44 | fetch-depth: 0 |
| 45 | - uses: actions/setup-node@v7 |
| 46 | with: |
| 47 | node-version: '22' |
| 48 | - name: Test notifier |
| 49 | run: node --test scripts/release-verify-issues.test.mjs |
| 50 | # A push that only touched the script has no release to announce; the test |
| 51 | # above is the whole point of that trigger. |
| 52 | - name: Request verification |
| 53 | if: github.event_name != 'push' |
| 54 | env: |
| 55 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 56 | TAG: ${{ github.event.inputs.tag || github.event.release.tag_name }} |
| 57 | DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }} |
| 58 | run: | |
| 59 | set -euo pipefail |
| 60 | args=(--tag "$TAG") |
| 61 | if [ "$DRY_RUN" = "true" ]; then args+=(--dry-run); fi |
| 62 | node scripts/release-verify-issues.mjs "${args[@]}" |
| 63 |