Skip to content

Commit 90b64aa

Browse files
committed
Merge pull request github#219 from philips/master
services: email: fix first_commit_sha
2 parents 73016b1 + e6fb4b6 commit 90b64aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/email.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def repo_url
152152

153153
def mail_subject
154154
if first_commit
155-
"[#{name_with_owner}] #{first_commit_sha}: #{first_commit_title}"
155+
"[#{name_with_owner}] #{first_commit_sha.slice(0, 6)}: #{first_commit_title}"
156156
else
157157
"[#{name_with_owner}]"
158158
end
@@ -208,7 +208,7 @@ def repository_name
208208
end
209209

210210
def first_commit_sha
211-
first_commit[:id]
211+
first_commit['id']
212212
end
213213

214214
def first_commit_title(limit = 50)

0 commit comments

Comments
 (0)