Repository navigation
ci: exempt env templates from danger env protection rule - #1899
Conversation
|
Warning Review limit reached
Next review available in: 33 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ 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 |
|
Failed to generate code suggestions for PR |
There was a problem hiding this comment.
No issues found across 1 file
Auto-approved: This fix exempts tracked env templates from a CI protection rule that was incorrectly blocking them, while preserving the fail on real .env files. The change is narrow, clearly beneficial, and carries no operational or security tradeoff.
Re-trigger cubic
|



Summary
PR #1674 (external contributor) fails danger with no possible resolution: the
.env*protection rule fires on.env.example, and its own message demands "explicit confirmation per project policy" but the code offers no confirmation mechanism. Any PR touching the tracked template fails forever.Fix: exempt the standard template names (
.env.example,.env.sample,.env.template) from the fail. Real.envfiles still fail.Danger runs on
pull_request_targetagainst base-repo code, so once this merges, re-running danger on #1674 picks it up without a branch update.Test plan
Summary by cubic
Exempts
.env.example,.env.sample, and.env.templatefrom the Danger.env*protection so template updates don’t fail CI, while still blocking real.envfiles. This unblocks PRs that touch tracked env templates (e.g., #1674).dangerfile.tsto ignore standard env templates in the.env*check..envfiles.Written for commit 0520fe5. Summary will update on new commits.