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

maintainer-scorecard.yml

47 lines1.4 KB

1name: Maintainer Scorecard
2​
3# Daily maintainer to-do digest posted to Discord: SLA breaches, ready-to-merge
4# PRs, per-maintainer queues, new/stale items, and response-time stats.
5# Requires the DISCORD_MAINTAINER_WEBHOOK repo secret; without it the digest
6# only lands in the workflow step summary.
7​
8on:
9 schedule:
10 # 21:00 UTC ≈ start of the Australian workday
11 - cron: '0 21 * * *'
12 workflow_dispatch:
13 inputs:
14 dry_run:
15 description: 'Print the digest instead of posting to Discord'
16 type: boolean
17 default: true
18​
19concurrency:
20 group: ${{ github.workflow }}
21 cancel-in-progress: false
22​
23permissions: {}
24​
25jobs:
26 scorecard:
27 name: Scorecard
28 runs-on: ubuntu-latest
29 timeout-minutes: 15
30 permissions:
31 contents: read
32 issues: read
33 pull-requests: read
34 discussions: read
35 steps:
36 - name: Checkout
37 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38 with:
39 persist-credentials: false
40 - name: Setup Tools
41 uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
42 - name: Build and post scorecard
43 run: pnpm maintainer:scorecard
44 env:
45 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_MAINTAINER_WEBHOOK }}
47 DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run && '1' || '' }}