Skip to content

Commit 2ba156a

Browse files
rdimitrovclaude
andcommitted
Gitignore claude-code-action's .claude-pr/ scratch dir
PR #759 got a bad "Add upstream-release-docs content for toolhive v0.23.1" commit carrying 17 files of leakage from .claude-pr/.claude/* + .claude-pr/CLAUDE.md + .claude-pr/.husky/. That directory is created by anthropics/claude-code-action@v1 as scratch workspace during skill runs — it clones our own .claude/ skill configs into a sibling dir for its own use. None of it belongs on the repo's main branch. Our workflow's "Commit and push" step runs `git add -A` after the skill, which scooped up the scratch dir alongside any legitimate content. Ignoring /.claude-pr at the root so it never gets staged. The legit content from the skill (guide updates, v1alpha1 → v1beta1 migration docs) lands as intended via claude-code-action's own auto-commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 97e8b74 commit 2ba156a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ yarn-error.log*
2727
/GAPS.md
2828
/NO_CHANGES.md
2929
.claude/scheduled_tasks.lock
30+
31+
# Scratch workspace claude-code-action creates during skill runs.
32+
# Contains a duplicate of .claude/ plus CLAUDE.md and husky hooks;
33+
# none of it belongs in the repo. First seen leaking into PR #759 when
34+
# our workflow's `git add -A` swept it up after the skill step.
35+
/.claude-pr

0 commit comments

Comments
 (0)