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

- old
+ new

@@ -25,9 +25,11 @@ if result['commit']['message'].lines.count > 1 result['message'] = result['commit']['message'].split("\n", 2).last.strip end result['commit_date'] = Time.parse(result['commit']['author']['date']).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