Add GitHub Action to run doctools.py on pull requests and commit data changes#1070
Add GitHub Action to run doctools.py on pull requests and commit data changes#1070ahouseholder merged 4 commits intomainfrom
Conversation
Co-authored-by: sei-renae <190382933+sei-renae@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds CI enforcement to run ssvc.doctools on pull requests that modify src/ssvc/**, with the intent of ensuring regenerated data/ artifacts are committed before merge.
Changes:
- Introduces a new GitHub Actions workflow to run
python -m ssvc.doctools --overwrite --datadir ./dataon relevant PRs. - Removes existing
data/json/decision_pointsprior to regeneration to avoid stale outputs. - Attempts to auto-commit and push any resulting
data/changes back to the PR branch.
|
@copilot apply changes based on the comments in this thread |
…or check Co-authored-by: ahouseholder <2594236+ahouseholder@users.noreply.github.com>
Applied both reviewer suggestions in commit
|
Independent contributors rely on local git hooks to run
src/ssvc/doctools.pywhensrc/ssvc/*changes. This adds a CI enforcement step so PRs always regenerate and commit updateddata/files before merging.Changes
.github/workflows/run_doctools.yml— new workflow that:src/ssvc/**uv, clears staledata/json/decision_points/, then runspython -m ssvc.doctools --overwrite --datadir ./datadata/changes back to the PR branch; no-ops if nothing changeddata/regeneration is needed; fails with a clear error message instructing the contributor to runmake regenerate_jsonlocally and push the results (sinceGITHUB_TOKENcannot push back to a fork)github-actions[bot](viaif: github.actor != 'github-actions[bot]') to prevent recursion while still allowing all other CI checks to run on the auto-committeddata/updateOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.