PR stats #1210
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR stats | |
on: | |
schedule: | |
- cron: "0 */3 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
track: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: { python-version: "3.x" } | |
- run: pip install --quiet -r requirements.txt | |
- name: Collect PR data | |
run: python collect_data.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.USER_PAT }} | |
- name: Generate chart | |
run: python generate_chart.py | |
- name: Commit chart | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: update PR‑approval chart" | |
file_pattern: "data.csv README.md docs/index.html docs/chart.png docs/chart-data.json" | |
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>" | |
commit_user_name: "github-actions[bot]" | |
commit_user_email: "github-actions[bot]@users.noreply.github.com" |