Skip to content

feat: block prs with out-of-sync gemfile.lock - #521

Merged
jaspermayone merged 1 commit into
mainfrom
feat/lockfile-guard
Jul 30, 2026
Merged

feat: block prs with out-of-sync gemfile.lock#521
jaspermayone merged 1 commit into
mainfrom
feat/lockfile-guard

Conversation

@jaspermayone

Copy link
Copy Markdown
Member

Adds a Lockfile Guard workflow so a Gemfile/Gemfile.lock desync can never silently break deploys again (the way #510 did — see #519).

On every PR it checks the lockfile against the Gemfile using Bundler's own Definition#nothing_changed? (no gem install, no network resolution needed):

  • Out of sync → the job fails and github-actions leaves a blocking REQUEST_CHANGES review explaining how to fix it.
  • Back in sync → the review is dismissed automatically and the job goes green.

The review is deduplicated via an HTML-comment marker, so repeated pushes don't stack reviews. Fork PRs (read-only token) skip the review steps and just get the failing check.

flowchart LR
    A[PR opened / updated] --> B{Gemfile.lock in sync?}
    B -- no --> C[Job fails + blocking review]
    C --> D[Author runs bundle install, pushes]
    D --> B
    B -- yes --> E[Review dismissed, job green]
Loading

@jaspermayone
jaspermayone merged commit 56bdd27 into main Jul 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant