Repository navigation
CI: check dependency graph on fork PR heads - #285
Conversation
|
@claude review this |
|
Claude finished @logan-nc's task in 17s —— View job Review of PR #285The fix for fork PRs is correct, but it breaks the auto-commit push for same-repo PRs. What works
Issue: same-repo PRs can no longer push the regenerated file (
Suggested fix: make the push target explicit. Using - name: Commit if the graph changed
env:
HEAD_REF: ${{ github.head_ref }}
run: |
...
if git push origin "HEAD:refs/heads/${HEAD_REF}"; then
On a fork PR the push still can't succeed, because the Minor
|
|
The above claude suggestion seems important, but I deffer to @matt-pharr for a official expert review |
|
@matt-pharr did the changes @logan-nc requested. Can you check? |
The
depsjob currently checks outgithub.head_reffrom the base repository. On every fork PR that branch is absent, so the job fails before generating the dependency graph even when all compiler jobs pass.Check out the event's actual head repository and immutable SHA.
workflow_dispatchretains the current-repository/current-SHA fallback. The existing push block already treats inability to push a regenerated file to a fork as a warning, as documented in the workflow comment.This is intentionally separate from #284, which changes only two PENTRC spline boundary conditions and otherwise passes all GNU/Intel build jobs.