Merged
Conversation
Add .env file to project output directory
Contributor
WalkthroughTwo .csproj files were updated: the test project now copies a local Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
MichalFrends1
approved these changes
Feb 4, 2026
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@Frends.Template/Frends.Echo.Execute/Frends.Echo.Execute.Tests/Frends.Echo.Execute.Tests.csproj`:
- Around line 12-14: The project currently unconditionally includes ".env" via
the <ItemGroup>/<None Include=".env" CopyToOutputDirectory="PreserveNewest"/>
entry which fails CI when .env is absent and can leak secrets; update the csproj
so the None Include for ".env" is only added when the file exists (use a
Condition like Exists('.env') on the ItemGroup or the None element) or remove
CopyToOutputDirectory for production builds, and instead commit a ".env.example"
for defaults; modify the <None Include=".env"...> entry (and/or its enclosing
<ItemGroup>) so it is conditional on file existence to avoid build failures and
secret leakage.
Frends.Template/Frends.Echo.Execute/Frends.Echo.Execute.Tests/Frends.Echo.Execute.Tests.csproj
Show resolved
Hide resolved
Add condition to include .env file only if it exists.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please review my changes :)
Summary by CodeRabbit