From b11660df1d513ad3c17d5c72ebe61dda0eb9e167 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 05:33:39 +0000 Subject: [PATCH] Add check-gradient-lhs caller Wires Morrison-Lab/gha's check-gradient-lhs (psw#488, gha#1538): a line a PR adds that says "the gradient is ..." should write the gradient symbol as the left-hand side of its equation. Warn-only. Part of Morrison-Lab/gha#1654. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_019xfc9qHcYVZ9pfvuZZYpVo --- .github/workflows/check-gradient-lhs.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/check-gradient-lhs.yml diff --git a/.github/workflows/check-gradient-lhs.yml b/.github/workflows/check-gradient-lhs.yml new file mode 100644 index 000000000..1862a8b67 --- /dev/null +++ b/.github/workflows/check-gradient-lhs.yml @@ -0,0 +1,20 @@ +# Flags a stated gradient ("the gradient is ...") on a line a PR adds when the +# equation has no gradient symbol on its left-hand side (psw#488, gha#1538). +# Warns rather than fails: the check is a heuristic. Set `fail: true` once +# sampled hits across the notes repos are all real. +# No push trigger: a push run has no base to diff against and would report +# success having checked nothing. A manual run scans the whole tree. +name: Check gradient left-hand sides + +on: + pull_request: + workflow_dispatch: + +jobs: + check: + permissions: + contents: read + uses: Morrison-Lab/gha/.github/workflows/check-gradient-lhs.yml@v3 + with: + whole-tree: ${{ github.event_name == 'workflow_dispatch' }} + paths-ignore: '_extensions/**,**/outtakes/**,latex-macros/**'