Skip to content

chore: gitignore CLAUDE.local.md - #37545

Merged
mateo-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_gitignore_claude_local
Aug 19, 2026
Merged

mateo-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_gitignore_claude_local

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • CLAUDE.local.md was not gitignored
  • Personal local agent notes risked being committed

How it solves it:

  • Adds CLAUDE.local.md to .gitignore, next to .claude

User Flow

Before: a contributor keeping personal Claude Code notes in the repo sees them show up as an untracked file, easy to commit by accident

  1. They create CLAUDE.local.md at the repo root with their own local notes
  2. They run git status and see CLAUDE.local.md listed under untracked files
  3. A git add -A or git commit -a sweeps that personal file into the commit

After: the same file stays local and invisible to git

  1. They create CLAUDE.local.md at the repo root with their own local notes
  2. They run git status and it reports a clean tree, no untracked CLAUDE.local.md
  3. git add -A picks nothing up, so the notes can't leak into a commit

Relevant issues

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Note on tests: this is a one-line .gitignore change with no runtime behavior, so there is nothing meaningful to unit test. git check-ignore output below is the verification

Screenshots / Proof of Fix

Before (3f2e0ba)

  1. git checkout 3f2e0badb4 -- .gitignore && touch CLAUDE.local.md && git check-ignore -v CLAUDE.local.md; echo "exit=$?"
exit=1
  1. git status --short CLAUDE.local.md
?? CLAUDE.local.md

After (7bdcfa6)

  1. git check-ignore -v CLAUDE.local.md
.gitignore:8:CLAUDE.local.md	CLAUDE.local.md
  1. git status --short CLAUDE.local.md

Type

🚄 Infrastructure

Caveats (if any)

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Link to Devin session: https://app.devin.ai/sessions/7a429144935d4ffbad4371c0bd13c6f4
Requested by: @mateo-berri

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri mateo-berri self-assigned this Aug 19, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@mateo-berri mateo-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mateo-berri
mateo-berri enabled auto-merge August 19, 2026 23:10
@greptile-apps

greptile-apps Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds CLAUDE.local.md to the repository’s ignore rules so contributors’ personal Claude Code notes are not accidentally committed.

  • Places the ignore entry alongside the existing .claude entry.
  • Does not affect application runtime, builds, schemas, or security boundaries.

Confidence Score: 5/5

The PR appears safe to merge because the isolated ignore-rule change introduces no actionable failure.

The new pattern prevents the described local notes file from appearing in Git status or bulk-add operations, without changing application behavior.

Important Files Changed

Filename Overview
.gitignore Adds the intended local-notes filename to Git’s ignore patterns; no actionable issue was identified.

Reviews (1): Last reviewed commit: "chore: gitignore CLAUDE.local.md" | Re-trigger Greptile

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mateo-berri
mateo-berri merged commit 75a290e into litellm_internal_staging Aug 19, 2026
65 checks passed
@mateo-berri
mateo-berri deleted the litellm_gitignore_claude_local branch August 19, 2026 23:25
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