Skip to content

Commit

Permalink
add 'origin/' to branches
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-mcneil committed Dec 30, 2024
1 parent d842012 commit 2d055fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
require 'ostruct'

module VSPDanger
HEAD_SHA = ENV['GITHUB_HEAD_REF'] || `git rev-parse --abbrev-ref HEAD`.chomp.freeze
BASE_SHA = ENV['GITHUB_BASE_REF'] || 'origin/master'
HEAD_SHA = ENV.fetch('GITHUB_HEAD_REF') ? "origin/#{ENV.fetch('GITHUB_HEAD_REF')}" : `git rev-parse --abbrev-ref HEAD`.chomp.freeze
BASE_SHA = ENV.fetch('GITHUB_BASE_REF') ? "origin/#{ENV.fetch('GITHUB_BASE_REF')}" : 'origin/master'

class Runner
def self.run
Expand Down

0 comments on commit 2d055fc

Please sign in to comment.