From 3464d289dddab3fe1d4e540d3d02689fba738162 Mon Sep 17 00:00:00 2001 From: Test User Date: Sun, 21 Jun 2026 00:53:11 +0200 Subject: [PATCH] fix(gitignore): add /.pr*/ pattern to prevent agent scratch dirs from 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 --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 04695ebde..572d79445 100644 --- a/.gitignore +++ b/.gitignore @@ -146,6 +146,9 @@ projects/odilo/ /session-ses_*.md /security_audit_report_*.md /pr_review_files/ +# Agent scratch directories created at repo root (#2763) +# Patterns like .pr2659/ are created by PR-reviewer agents. +/.pr*/ # Heredoc accidents (bare EOF/PYEOF files created by malformed shell heredocs) /EOF /PYEOF