Files
vercel__next.js/.github/workflows/next-maintainer-auto-close.yml
Marcos Hernanz 4fffc2c653 Enable hourly next-maintainer auto-close workflow (#98225)
## Summary

- enable the existing auto-close workflow once per hour
- keep manual dispatch available
- leave the workflow logic and permissions unchanged

## Verification

- production `workflow_dispatch` succeeded end to end:
https://github.com/vercel/next.js/actions/runs/33788887152
- production returned a clean empty-queue response after OIDC
authentication and Vercel Trusted Sources validation
- Prettier and `git diff --check` pass
2026-09-03 13:03:41 -07:00

39 lines
1.1 KiB
YAML

name: Next Maintainer Auto Close
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
permissions: {}
concurrency:
group: next-maintainer-auto-close
cancel-in-progress: false
jobs:
close-one-verified-issue:
if: github.repository == 'vercel/next.js' && github.ref == 'refs/heads/canary'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
id-token: write
issues: write
steps:
- name: Checkout trusted workflow code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.sha }}
persist-credentials: false
sparse-checkout: .github/scripts/next-maintainer-auto-close.js
sparse-checkout-cone-mode: false
- name: Pull and deliver one verified close
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { deliverOneVerifiedClose } = require('./.github/scripts/next-maintainer-auto-close.js')
await deliverOneVerifiedClose({ core, github })