Skip to content

Commit

Permalink
revert commit_message change, add commit_subject
Browse files Browse the repository at this point in the history
if someone wants to use the full commit message they can, commit subject is simpler though as you don’t need it all
  • Loading branch information
joshk committed Feb 16, 2015
1 parent e79b75b commit 62f1af7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/travis/addons/util/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def args
branch: data[:commit][:branch],
commit: data[:commit][:sha][0..6],
author: data[:commit][:author_name],
commit_message: commit_message,
commit_subject: commit_subject,
commit_message: data[:commit][:message],
result: data[:build][:state].to_s,
duration: seconds_to_duration(data[:build][:duration]),
message: message,
Expand All @@ -37,7 +38,7 @@ def args
}
end

def commit_message
def commit_subject
(data[:commit][:message] || "").split("\n").first
end

Expand Down

0 comments on commit 62f1af7

Please sign in to comment.