Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

maintainer-sweep.yml

44 lines1.2 KB

1name: Maintainer Sweep
2​
3# Scheduled triage sweep: assigns open PRs/issues to maintainers, posts a
4# one-time ack + pre-review checklist, and reconciles waiting-on labels.
5# API-only — PR code is never checked out or executed (no pull_request_target).
6​
7on:
8 schedule:
9 - cron: '17 */3 * * *'
10 workflow_dispatch:
11 inputs:
12 dry_run:
13 description: 'Print planned actions without executing them'
14 type: boolean
15 default: true
16​
17concurrency:
18 group: ${{ github.workflow }}
19 cancel-in-progress: false
20​
21permissions: {}
22​
23jobs:
24 sweep:
25 name: Sweep
26 runs-on: ubuntu-latest
27 timeout-minutes: 15
28 permissions:
29 contents: read
30 issues: write
31 pull-requests: write
32 discussions: read
33 steps:
34 - name: Checkout
35 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36 with:
37 persist-credentials: false
38 - name: Setup Tools
39 uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
40 - name: Run sweep
41 run: pnpm maintainer:sweep
42 env:
43 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run && '1' || '' }}