From 1b387a83ea432b20b96bbf941742dfa8a7ed7066 Mon Sep 17 00:00:00 2001 From: Aric Camarata Date: Sun, 16 Aug 2026 12:27:55 -0400 Subject: [PATCH] fix(ci): drop permanently-unmatchable .claude/qa/findings/*.json from add-paths The real, complete root cause of the Open-auto-fix-PR failures (after the mdx-pathspec fix in #31): .claude/ is gitignored repo-wide (org-standard per GCI -- '.claude/ standard: gitignored AI memory', confirmed via 'grep claude .gitignore' hitting 5 separate ignore lines here). git add's multi-pathspec matching is atomic and does NOT count gitignored files as a match even when the file genuinely exists on disk with fresh content -- reproduced locally: echo '.claude/' > .gitignore; git add .gitignore; git commit -qm init mkdir -p .claude/qa/findings; echo '{}' > .claude/qa/findings/test.json git add -- '.claude/qa/findings/*.json' # fatal: pathspec '.claude/qa/findings/*.json' did not match any files So '.claude/qa/findings/*.json' in add-paths was ALWAYS going to fail git add the moment any other add-paths pattern (**/*.md) also had real changes to stage -- confirmed live: run 31958209014 on commit 5b79fb2 (the #31/#32 fix) failed with exactly this pathspec, once the mdx bug was out of the way and 44 real .md changes needed staging. This isn't a real loss: the JSON report is already preserved via the 'Upload JSON report' actions/upload-artifact step (180-day retention) and fed into the PR body directly via body-path, independent of git staging. Dropping it from add-paths means it simply never gets committed into the repo -- which is correct, since .claude/ is supposed to stay untracked everywhere. --- .github/workflows/quarterly-doc-audit.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/quarterly-doc-audit.yml b/.github/workflows/quarterly-doc-audit.yml index 448ba3f7..3742a11d 100644 --- a/.github/workflows/quarterly-doc-audit.yml +++ b/.github/workflows/quarterly-doc-audit.yml @@ -115,7 +115,6 @@ jobs: delete-branch: true add-paths: | **/*.md - .claude/qa/findings/*.json - name: Upload JSON report uses: actions/upload-artifact@v7