Skip to content

Fail PRs when Swift files are missing from RevenueCat.xcodeproj#6716

Merged
ajpallares merged 1 commit into
mainfrom
pallares/danger-fail-missing-xcodeproj-files
Apr 30, 2026
Merged

Fail PRs when Swift files are missing from RevenueCat.xcodeproj#6716
ajpallares merged 1 commit into
mainfrom
pallares/danger-fail-missing-xcodeproj-files

Conversation

@ajpallares

@ajpallares ajpallares commented Apr 30, 2026

Copy link
Copy Markdown
Member

Motivation

The Dangerfile already detects Swift files that are added (or removed) on disk but not registered in the hand-maintained RevenueCat.xcodeproj. Until now this mismatch was reported only as a warning, so PRs could still merge in a state that breaks the xcframework build (see #6713 / #6694).

Description

Promote the existing warn to fail in check_swift_files_in_project so the Danger check blocks merge until the project file is back in sync. No other behaviour changes — the same files are detected and the same remediation message is shown.

This obsoletes the heavier xcframework-build-smoke CI job approach in #6715 for this specific failure mode: Danger runs early, costs almost nothing, and pinpoints the exact missing files with a clear fix-up message.

Made with Cursor


Note

Low Risk
Low risk: this only tightens CI/Danger enforcement by turning an existing warning into a failure, with no product/runtime behavior changes.

Overview
Blocks merges when RevenueCat.xcodeproj is out of sync with Swift files on disk.

Promotes the existing check_swift_files_in_project Danger check from warn to fail, so added Swift files missing from the project (or deleted files still referenced) now fail the PR instead of merely warning.

Reviewed by Cursor Bugbot for commit a99deb4. Bugbot is set up for automated code reviews on this repo. Configure here.

The Dangerfile already detects Swift files that are added (or removed)
on disk but not registered in the hand-maintained `RevenueCat.xcodeproj`.
Until now, that mismatch was reported as a warning, so PRs could merge
in a state that breaks the xcframework build (see #6713/#6694).

Promote the existing `warn` to `fail` so the PR's required Danger check
blocks merge until the project file is in sync.

Made-with: Cursor

@facumenzella facumenzella left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

easy

@ajpallares ajpallares merged commit d843a4a into main Apr 30, 2026
16 of 19 checks passed
@ajpallares ajpallares deleted the pallares/danger-fail-missing-xcodeproj-files branch April 30, 2026 08:46
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.

2 participants