Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only displaying the first line in the commit message

  • Loading branch information...
commit 95be31168c63d72e80a4752e0a608719103d0c0f 1 parent fee74c3
@zmoazeni authored
Showing with 8 additions and 3 deletions.
  1. +6 −1 coffee/site.coffee
  2. +1 −1  index.html
  3. +1 −1  js/site.js
View
7 coffee/site.coffee
@@ -208,7 +208,12 @@ class Event extends Spine.Model
repo:@repo.name
]
when "push"
- commits = @commits.map((c, i) => {commit:c.sha.slice(0, 5), commit_url:"https://github.com/#{@repo.name}/commit/#{c.sha}", message:c.message, hidden:i > 2})
+ commits = @commits.map (c, i) =>
+ commit:c.sha.slice(0, 5)
+ commit_url:"https://github.com/#{@repo.name}/commit/#{c.sha}"
+ message:c.message.split("\n")[0]
+ hidden:i > 2
+
[view,
id:@id,
login:@actor.login,
View
2  index.html
@@ -29,7 +29,7 @@
<script src="js-lib/spine/route.js" type="text/javascript"></script>
<script src="js-lib/mustache.js" type="text/javascript"></script>
<script src="js/views.js?8" type="text/javascript"></script>
- <script src="js/site.js?8" type="text/javascript"></script>
+ <script src="js/site.js?9" type="text/javascript"></script>
<!-- footer to try and trick gh-pages fork -->
</body>
View
2  js/site.js
@@ -380,7 +380,7 @@
return {
commit: c.sha.slice(0, 5),
commit_url: "https://github.com/" + _this.repo.name + "/commit/" + c.sha,
- message: c.message,
+ message: c.message.split("\n")[0],
hidden: i > 2
};
});
Please sign in to comment.
Something went wrong with that request. Please try again.