Skip to content

Commit b247433

Browse files
simplify previous_sha logic for github case (#70)
1 parent 0df6103 commit b247433

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/utils/github.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def self.repo_name
5050
end
5151

5252
def self.previous_sha
53-
Git.previous_sha
53+
return unless push?
54+
github_event_data[:before]
5455
end
5556

5657
def self.github_event_data

0 commit comments

Comments
 (0)