name: Label pull requests by area # Every 30 minutes, at minute 0 and minute 30 of each hour (UTC). # Scheduled runs use the default-branch workflow and GITHUB_TOKEN, so fork # pull requests can be labeled without checking out or running their code. on: schedule: - cron: '*/30 * * * *' workflow_dispatch: permissions: {} concurrency: group: label-pull-requests cancel-in-progress: false jobs: label: runs-on: ubuntu-latest timeout-minutes: 20 permissions: contents: read issues: write pull-requests: write steps: - name: Check out the default branch uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Set up Node.js uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 24.22.1 - name: Label open pull requests env: GITHUB_TOKEN: ${{ github.token }} GITHUB_REPOSITORY: ${{ github.repository }} run: node scripts/pr-area-labels.mjs