Get danger working in GitHub actions

This commit is contained in:
Tom Hughes 2024-10-26 12:12:15 +01:00
parent cb16d3c331
commit 754e811b70
3 changed files with 23 additions and 17 deletions

View file

@ -28,4 +28,4 @@ jobs:
env:
DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bundle exec danger --verbose --base=${{ github.event.pull_request.base.sha }} --head=${{ github.event.pull_request.head.sha }}
bundle exec danger --verbose

View file

@ -148,7 +148,7 @@ gem "zeitwerk", "< 2.7"
group :development do
gem "better_errors"
gem "binding_of_caller"
gem "danger"
gem "danger", :github => "tomhughes/danger", :ref => "pull-request-target"
gem "danger-auto_label"
gem "debug_inspector"
gem "i18n-tasks"

View file

@ -1,3 +1,23 @@
GIT
remote: https://github.com/tomhughes/danger.git
revision: a265cf74d2f464a25796b48d95697f5eed553454
ref: pull-request-target
specs:
danger (9.5.1)
base64 (~> 0.2)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
cork (~> 0.1)
faraday (>= 0.9.0, < 3.0)
faraday-http-cache (~> 2.0)
git (~> 1.13)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
octokit (>= 4.0)
pstore (~> 0.1)
terminal-table (>= 1, < 4)
GEM
remote: https://rubygems.org/
specs:
@ -168,20 +188,6 @@ GEM
rexml
crass (1.0.6)
dalli (3.2.8)
danger (9.5.1)
base64 (~> 0.2)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
cork (~> 0.1)
faraday (>= 0.9.0, < 3.0)
faraday-http-cache (~> 2.0)
git (~> 1.13)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
octokit (>= 4.0)
pstore (~> 0.1)
terminal-table (>= 1, < 4)
danger-auto_label (1.3.1)
danger-plugin-api (~> 1.0)
danger-plugin-api (1.0.0)
@ -681,7 +687,7 @@ DEPENDENCIES
config
connection_pool
dalli
danger
danger!
danger-auto_label
dartsass-sprockets
debug