Skip to content

Add .worktreeinclude to copy example .env files into new worktrees#86

Open
ryanrishi wants to merge 1 commit into
mainfrom
add-worktreeinclude
Open

Add .worktreeinclude to copy example .env files into new worktrees#86
ryanrishi wants to merge 1 commit into
mainfrom
add-worktreeinclude

Conversation

@ryanrishi

Copy link
Copy Markdown
Member

Summary

New worktrees are fresh checkouts, so gitignored .env files under getting_started/examples/ don't carry over — examples can't run without recreating secrets by hand. This adds a .worktreeinclude (docs) that copies them in automatically. It uses gitignore syntax and only copies files that are already gitignored, so tracked .env.example files are never duplicated.

Also broadens the .gitignore env patterns (.env.*, *.env, .*env) to catch .env.local/.env.development, keeping .env.example tracked via !.env.example.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • Release / version bump

Checklist

  • Tests added/updated
  • Documentation updated
  • Tested E2E

SDK Parity

This is the Python SDK. If this change affects shared functionality, ensure the TypeScript SDK is updated as well.

Tip: Use the /sync-to-ts-sdk skill in Claude Code to automatically generate and create a TypeScript SDK PR from your changes.

  • Change is Python-specific (no TypeScript update needed)
  • TypeScript SDK PR created:

New worktrees are fresh checkouts, so gitignored .env files under getting_started/examples/ don't carry over. .worktreeinclude copies them in automatically — gitignore syntax, and only files that are already gitignored get copied, so tracked .env.example files are never duplicated.

Also broaden the .gitignore env patterns (.env.*, *.env, .*env) to catch .env.local/.env.development, keeping .env.example tracked via negation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 16, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants