Skip to content

Fix key-only line replacement in env files - #2

Merged
nadaverell merged 1 commit into
mainfrom
fix/key-only-line-replacement
Oct 27, 2025
Merged

Fix key-only line replacement in env files#2
nadaverell merged 1 commit into
mainfrom
fix/key-only-line-replacement

Conversation

@nadaverell

Copy link
Copy Markdown
Contributor

Fixes duplication when env files contain key-only lines (e.g., SENTRY_RELEASE without =).

Updated pattern to match both KEY=value and key-only KEY lines to ensure proper replacement instead of adding duplicates.

Previously, key-only lines (e.g., "SENTRY_RELEASE" without "=") were
not detected as existing entries, causing duplicates when patching.

Now correctly matches and replaces both "KEY=value" and key-only "KEY"
lines (with optional trailing whitespace) to prevent duplication.
@nadaverell
nadaverell merged commit bdf3349 into main Oct 27, 2025
6 checks passed
@nadaverell
nadaverell deleted the fix/key-only-line-replacement branch October 27, 2025 21:21
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant