mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
github.event.pull_request.merge_commit_sha
may be empty
This commit is contained in:
parent
63f6f87e86
commit
bf9cbdef12
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Git
|
|||
|
||||
def initialize(oldrev, newrev, branch = nil)
|
||||
@oldrev = oldrev
|
||||
@newrev = newrev
|
||||
@newrev = newrev.empty? ? 'HEAD' : newrev
|
||||
@branch = branch
|
||||
|
||||
# GitHub may not fetch github.event.pull_request.base.sha at checkout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue