Fixed app version bump check false positives on stale PR branches#26396
Fixed app version bump check false positives on stale PR branches#26396kevinansfield merged 1 commit intomainfrom
Conversation
ref https://github.com/TryGhost/Ghost/actions/runs/21980583293/job/63501979159 The check now diffs merge-base..head and fetches main history so only PR-introduced app changes are validated.
WalkthroughThis pull request updates two GitHub workflow infrastructure files. The 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #26396 +/- ##
==========================================
- Coverage 72.78% 72.77% -0.01%
==========================================
Files 1562 1562
Lines 120942 120950 +8
Branches 14573 14571 -2
==========================================
- Hits 88032 88027 -5
- Misses 31875 31905 +30
+ Partials 1035 1018 -17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What this fixes
Why
The old diff strategy could include unrelated changes from main when a PR branch was behind, causing false-positive failures in the app version bump job.
Example failure:
https://github.com/TryGhost/Ghost/actions/runs/21980583293/job/63501979159
Testing
Ran the script with PR_BASE_SHA=2171ae59932382033c8384398a30af7017198008 and PR_COMPARE_SHA=9d946fb7c099f7c0c2c898aa5916dcd74e5bfb32.
Result: No app changes detected. Skipping version bump check.