Skip to content

Commit 213faea

Browse files
dblockclaude
andcommitted
Migrate Danger to danger-pr-comment.
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent b5ad0ca commit 213faea

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
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: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
---
2-
name: danger
3-
on: [pull_request]
1+
name: Danger
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, edited, synchronize]
6+
47
jobs:
58
danger:
6-
runs-on: ubuntu-latest
7-
env:
8-
BUNDLE_GEMFILE: Gemfile.danger
9-
steps:
10-
- uses: actions/checkout@v2
11-
with:
12-
fetch-depth: 0
13-
- name: Set up Ruby
14-
uses: ruby/setup-ruby@v1
15-
with:
16-
ruby-version: 2.7
17-
bundler-cache: true
18-
- name: Run Danger
19-
run: |
20-
# the personal token is public, this is ok, base64 encode to avoid tripping Github
21-
TOKEN=$(echo -n Z2hwX0xNQ3VmanBFeTBvYkZVTWh6NVNqVFFBOEUxU25abzBqRUVuaAo= | base64 --decode)
22-
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
9+
uses: numbata/danger-pr-comment/.github/workflows/[email protected]
10+
secrets: inherit
11+
with:
12+
ruby-version: '3.4'
13+
bundler-cache: true

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### 2.2.1 (Next)
44

55
* Your contribution here.
6+
* [#181](https://github.com/slack-ruby/slack-ruby-bot-server/pull/181): Migrated Danger to `danger-pr-comment` workflow - [@dblock](https://github.com/dblock).
67
* [#180](https://github.com/slack-ruby/slack-ruby-bot-server/pull/180): Add support for Grape v3 - [@markokajzer](https://github.com/markokajzer).
78

89
### 2.2.0 (2025/09/22)

Dangerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
danger.import_dangerfile(gem: 'danger-pr-comment')
12
danger.import_dangerfile(gem: 'slack-ruby-danger')
23
toc.check!

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ gemspec
2424
gem 'bundler'
2525
gem 'byebug'
2626
gem 'capybara'
27+
gem 'danger-changelog'
28+
gem 'danger-pr-comment'
29+
gem 'danger-toc'
2730
gem 'fabrication'
2831
gem 'faker'
2932
gem 'faraday'

Gemfile.danger

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)