We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae58041 commit 39fad7aCopy full SHA for 39fad7a
lib/travis/listener/schemas.rb
@@ -108,7 +108,7 @@ def self.event_details(event_type, payload)
108
{
109
repository: payload["repository"]["full_name"],
110
ref: payload['ref'],
111
- head: payload['head_commit']['id'][0..6],
+ head: payload['head_commit'] && payload['head_commit']['id'][0..6],
112
commits: (payload["commits"] || []).map {|c| c['id'][0..6]}.join(","),
113
sender: payload['sender']['login']
114
}
0 commit comments