Skip to content

fix(cli): only treat an exact .sentryclirc line as gitignored - #2571

Merged
BYK merged 1 commit into
mainfrom
fix/cli-wizard-sentryclirc-gitignore
Nov 27, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/cli-wizard-sentryclirc-gitignore

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Follows up #2544.

The Apple wizard writes a .sentryclirc in the project directory and adds it to an existing .gitignore. It skipped adding the rule whenever the file contained the text .sentryclirc anywhere, for example in a comment like # .sentryclirc.

Now only a line that is exactly .sentryclirc or /.sentryclirc (after trimming) counts as already ignored. Otherwise the wizard appends the rule as before.

via @BYK.

--

View Session [Sentry]

The Apple wizard skipped adding .sentryclirc to an existing .gitignore
whenever the file mentioned the name anywhere, such as in a comment.
Only count an uncommented .sentryclirc or /.sentryclirc line.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from BYK November 27, 2026 22:41
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 27, 2026 10:42pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 27, 2026 10:42pm UTC

Request Review

@BYK
BYK enabled auto-merge November 27, 2026 22:43
@BYK
BYK added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 257d04a Nov 27, 2026
29 checks passed
@BYK
BYK deleted the fix/cli-wizard-sentryclirc-gitignore branch November 27, 2026 22:56

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — a4dc2ebe Deployed Nov 27, 2026 by vercel[bot]
Preview – sentry-local — a4dc2ebe Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant