Skip to content

Commit b0ffbbb

Browse files
dblockclaude
andcommitted
Migrate Danger to use danger-pr-comment workflow.
Add danger, danger-changelog, and danger-pr-comment gems to Gemfile. Create Dangerfile with changelog.check! and GitHub Actions workflows for danger-pr-comment integration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent c52831e commit b0ffbbb

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed
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/[email protected]
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/[email protected]
10+
secrets: inherit
11+
with:
12+
ruby-version: '3.2'
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
## 7.1.0 (Next)
22

3+
* [#277](https://github.com/mongoid/mongoid-slug/pull/277): Migrate Danger to use danger-pr-comment workflow - [@dblock](https://github.com/dblock)
34
* [#274](https://github.com/mongoid/mongoid-slug/pull/274): Added support for scoping slugs by multiple fields - [@mikekosulin](https://github.com/mikekosulin)
45
* Your contribution here.
56

Dangerfile

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

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ else
1313
gem 'mongoid', version
1414
end
1515

16+
gem 'danger', require: false
17+
gem 'danger-changelog', require: false
18+
gem 'danger-pr-comment', require: false
1619
gem 'rake'
1720
gem 'rspec'
1821
gem 'rspec-its'

0 commit comments

Comments
 (0)