Skip to content

Fix #2763: add /.pr*/ pattern to .gitignore#926

Open
AlexMikhalev wants to merge 1 commit into
mainfrom
task/2763-pr-dir-gitignore
Open

Fix #2763: add /.pr*/ pattern to .gitignore#926
AlexMikhalev wants to merge 1 commit into
mainfrom
task/2763-pr-dir-gitignore

Conversation

@AlexMikhalev

Copy link
Copy Markdown
Contributor

Summary

  • Adds /.pr*/ glob to .gitignore to prevent PR-reviewer agent scratch directories (e.g. .pr2659/) from appearing in git status and being accidentally committed
  • Pattern anchored at repo root so it does not interfere with legitimate subdirectory paths

Root Cause

PR-reviewer agents create hidden directories like .pr2659/ at the repo root during review runs. These were not covered by existing agent-artefact ignore patterns, which caused them to appear in git status and risk being accidentally staged.

Test Plan

  • /.pr*/ pattern matches .pr2659/, .pr2796/ etc. at repo root only
  • git status clean after applying

Refs #2763

🤖 Generated with Claude Code

… being committed Refs #2763

PR-reviewer agents create directories like .pr2659/ at the repo root during review runs.
Adding /.pr*/ to .gitignore prevents them from appearing in git status and being accidentally staged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant