Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/danger-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Danger Comment

on:
workflow_run:
workflows: [Danger]
types: [completed]

jobs:
comment:
uses: numbata/danger-pr-comment/.github/workflows/[email protected]
secrets: inherit
31 changes: 11 additions & 20 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
---
name: danger
on: [pull_request]
name: Danger

on:
pull_request:
types: [opened, reopened, edited, synchronize]

jobs:
danger:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: Gemfile.danger
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run Danger
run: |
# the personal token is public, this is ok, base64 encode to avoid tripping Github
TOKEN=$(echo -n Z2hwX0xNQ3VmanBFeTBvYkZVTWh6NVNqVFFBOEUxU25abzBqRUVuaAo= | base64 --decode)
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
uses: numbata/danger-pr-comment/.github/workflows/[email protected]
secrets: inherit
with:
ruby-version: '3.4'
bundler-cache: true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### 2.2.1 (Next)

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

### 2.2.0 (2025/09/22)
Expand Down
4 changes: 3 additions & 1 deletion Dangerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
danger.import_dangerfile(gem: 'slack-ruby-danger')
danger.import_dangerfile(gem: 'danger-pr-comment')

changelog.check!
toc.check!
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ gemspec
gem 'bundler'
gem 'byebug'
gem 'capybara'
gem 'danger-changelog'
gem 'danger-pr-comment'
gem 'danger-toc'
gem 'fabrication'
gem 'faker'
gem 'faraday'
Expand Down
6 changes: 0 additions & 6 deletions Gemfile.danger

This file was deleted.