Skip to content

Migrate Danger to danger-pr-comment workflows - #84

Merged
dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/danger-pr-comment
Oct 14, 2026
Merged

dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/danger-pr-comment

Conversation

@dblock

@dblock dblock commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Follow mongoid/mongoid-slug#277: import danger-pr-comment, validate changelog entries, and separate read-only PR checks from report-based comment publishing. Replace the embedded-token workflow with GitHub token authentication and the pinned reusable comment workflow.

Keep Danger in the existing isolated Gemfile.danger so checking PRs does not install Rails/Mongoid or depend on the legacy test matrix. Remove mongoid-danger from both the Danger bundle and gemspec development dependencies; use danger-changelog 0.9.0 for bot attribution support. Ruby 3.4 runs only the Danger job; application compatibility is unchanged.

Validation: isolated bundle installs, changed Ruby files pass syntax checks, workflow YAML parses, and git diff --check passes. Existing application CI is left unchanged.

Prepared by AI on behalf of @dblock.

CI follow-up: replace default Bundler 1 with 2.4.22 for modern Rails bundles, explicitly require Logger before Rails 6, retain Minitest 5 for the existing assertion helper, replace the MongoDB action with health-checked official service containers, and add Ruby 3.4/4.0 with MongoDB 7/8 and Mongoid 9. The local Mongoid 9 suite passes: 18 tests, 57 assertions; RuboCop also passes.

@dblock
dblock force-pushed the dblock/danger-pr-comment branch 3 times, most recently from c5d8cd4 to 7190505 Compare October 14, 2026 22:33
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/danger-pr-comment branch from 7190505 to 52d836b Compare October 14, 2026 22:36
@dblock
dblock merged commit 417976d into mongoid:master Oct 14, 2026
22 checks passed
@dblock
dblock deleted the dblock/danger-pr-comment branch October 17, 2026 02:20
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