ci: add weekly upstream digest workflow (#37)

Problem: new upstream issues and PRs slip through because there's no
mechanism to surface them — manual polling of stevearc/oil.nvim is
required and easy to forget.

Solution: add a Monday 9am UTC scheduled workflow that reads the
highest stevearc/oil.nvim number from doc/upstream.md, fetches merged
PRs and new open issues/PRs above that threshold via the gh CLI, and
creates a structured digest issue in barrettruth/canola.nvim. No issue
is created when there's nothing new. Falls back to a 30-day window if
doc/upstream.md can't be parsed.
This commit is contained in:
Barrett Ruth 2026-03-03 14:15:46 -05:00 committed by GitHub
parent 63fb912d52
commit c4d827070e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 177 additions and 0 deletions

21
.github/workflows/upstream-digest.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: upstream digest
on:
schedule:
- cron: "0 9 * * 1"
workflow_dispatch:
permissions:
issues: write
contents: read
jobs:
digest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create upstream digest issue
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 .github/scripts/upstream_digest.py