Skip to content

Commit

Permalink
Merge pull request #5295 from tomhughes/danger-branches
Browse files Browse the repository at this point in the history
Create base and head branches before running danger
  • Loading branch information
gravitystorm authored Nov 13, 2024
2 parents fef9ace + 356738e commit 8c0f575
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
ruby-version: 3.1
rubygems: 3.4.10
bundler-cache: true
- name: Create base branch
run: |
git fetch ${{ github.event.pull_request.base.repo.clone_url }} ${{ github.event.pull_request.base.ref }}:danger_base
- name: Create head branch
run: |
git fetch ${{ github.event.pull_request.head.repo.clone_url }} ${{ github.event.pull_request.head.ref }}:danger_head
- name: Danger
env:
DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ gem "zeitwerk", "< 2.7"
group :development do
gem "better_errors"
gem "binding_of_caller"
gem "danger", :github => "tomhughes/danger", :ref => "pull-request-target"
gem "danger"
gem "danger-auto_label"
gem "debug_inspector"
gem "i18n-tasks"
Expand Down
36 changes: 15 additions & 21 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
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:
Expand Down Expand Up @@ -190,6 +170,20 @@ 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)
Expand Down Expand Up @@ -690,7 +684,7 @@ DEPENDENCIES
config
connection_pool
dalli
danger!
danger
danger-auto_label
dartsass-sprockets
debug
Expand Down

0 comments on commit 8c0f575

Please sign in to comment.