Skip to content

Commit 97a11e1

Browse files
dblockclaude
andcommitted
Migrate Danger to danger-pr-comment workflow.
Replace mongoid-danger with danger, danger-changelog, and danger-pr-comment gems. Add GitHub Actions workflows for automated PR checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent b94ef49 commit 97a11e1

5 files changed

Lines changed: 33 additions & 2 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Danger Comment
2+
3+
on:
4+
workflow_run:
5+
workflows: [Danger]
6+
types: [completed]
7+
8+
jobs:
9+
comment:
10+
uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0
11+
secrets: inherit

.github/workflows/danger.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Danger
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, edited, synchronize]
6+
7+
jobs:
8+
danger:
9+
uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.1.0
10+
secrets: inherit
11+
with:
12+
ruby-version: '3.3'
13+
bundler-cache: true

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 0.4.7 (Next)
22

3+
* [#18](https://github.com/mongoid/mongoid-shell/pull/18): Migrate Danger to danger-pr-comment workflow - [@dblock](https://github.com/dblock).
34
* Your contribution here.
45

56
### 0.4.6 (12/29/2017)

Dangerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
danger.import_dangerfile(gem: 'mongoid-danger')
1+
# frozen_string_literal: true
2+
3+
danger.import_dangerfile(gem: 'danger-pr-comment')
4+
5+
changelog.check!

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ group :development, :test do
2020
gem 'bundler'
2121
gem 'rspec', '~> 3.0'
2222
gem 'rubocop', '~> 0.49.1'
23-
gem 'mongoid-danger', '~> 0.1.1'
23+
gem 'danger'
24+
gem 'danger-changelog'
25+
gem 'danger-pr-comment'
2426
end

0 commit comments

Comments
 (0)