Skip to content

ci: open the citation cache refresh as a pull request - #499

Open
mjmirza wants to merge 1 commit into
mainfrom
cursor/refresh-citations-pr-fff8
Open

mjmirza wants to merge 1 commit into
mainfrom
cursor/refresh-citations-pr-fff8

Conversation

@mjmirza

@mjmirza mjmirza commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What this changes

The weekly citation refresh pushed .ref-cache.json directly to main. Branch protection rejected that push (GH006: required status checks are expected), so the refreshed cache never landed. The workflow now commits the cache on chore/citation-cache-refresh, force-updates that branch, and opens or updates a pull request into main. An unchanged cache exits successfully and does not open a pull request.

Verification

  • python3 tools/check-structure.py
890/890 entries pass the structural gate
  • python3 tools/check-prose.py
935/935 files pass the prose gate
  • python3 tools/check-code.py --strict

Run with Go 1.23.12, the version CI installs. The default Go 1.22 on this machine cannot compile the iter samples in patterns/01-design-patterns-gof/iterator.md.

2710 compiled, 0 failed, 136 skipped (no toolchain), 2846 total
  • python3 tools/validate-refs.py --strict
4995 distinct citations, 46 to probe
every citation resolves
  • npx --yes markdownlint-cli2@0.23.2
Summary: 0 issues in 0 files
  • actionlint 1.7.12 with shellcheck 0.9.0 on .github/workflows/refresh-citations.yml exited 0 with no findings.

Unit tests from make check passed. Catalogue status, discovery indexes, and dist/entries.json were regenerated and matched the committed files, so none of them are in this diff.

For a new or corrected entry

Not applicable. No entry changed.

Notes for reviewers

The workflow never pushes main and never merges. The cache commit is authored by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>.

The pull request the workflow opens notes that pull requests created with GITHUB_TOKEN do not trigger other workflows, so required checks may need a manual re-run or close/reopen.

This diff is under .github/workflows/. The security check stays red until a maintainer applies the security-reviewed label.

A local remote was used to exercise the branch update: an unchanged cache does not create the branch, a changed cache is one commit ahead of main and is force-pushed only to chore/citation-cache-refresh, and a later run replaces that branch so it stays one commit ahead of the new main tip.

Open in Web Open in Cursor 

The weekly job pushed .ref-cache.json straight to main, and branch
protection rejected the push because the required status checks never
ran. Publish the refreshed cache on chore/citation-cache-refresh and
open or update a pull request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant