lib/onebox/engine/github_pullrequest_onebox.rb in onebox-1.5.13 vs lib/onebox/engine/github_pullrequest_onebox.rb in onebox-1.5.14

- old
+ new

@@ -19,12 +19,12 @@ def data result = raw.clone result['link'] = link result['created_at'] = Time.parse(result['created_at']).strftime("%I:%M%p - %d %b %y") + result['repository_path'] = "#{URI(link).host}/#{URI(link).path.split('/')[1]}/#{URI(link).path.split('/')[2]}" + result['repository_url'] = "https://#{result['repository_path']}" result end end end end - -