Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Commit

Permalink
No bold
Browse files Browse the repository at this point in the history
  • Loading branch information
athieriot committed May 24, 2013
1 parent 9fa71a1 commit da1fd70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/pulls.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ getInfoPull = (org, reponame, number, callback) =>
callback error, {
title: details.title,
url: details.html_url,
infos: "#{reponame} (#{details.head.ref} -> #{details.base.ref})",
comments: Moment(details.created_at).fromNow() + " - " + details.comments + " comments" + needAttention(details.mergeable, details.state),
infos: reponame,
comments: "(#{details.head.ref} -> #{details.base.ref}) - " + Moment(details.created_at).fromNow() + " - " + details.comments + " comments" + needAttention(details.mergeable, details.state),
status: buildStatus(statuses),
avatar: details.user.gravatar_id,
order: details.created_at
Expand Down
8 changes: 4 additions & 4 deletions test/commands/pulls.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ describe 'Commands', () ->
if (count is 0)
title.should.equal "new-feature"
url.should.equal "https://github.com/octocat/Hello-World/pulls/2"
infos.should.equal "test-repo (pr-branch -> master)"
comments.should.equal "2 months ago - 10 comments - *NEED REBASE*"
infos.should.equal "test-repo"
comments.should.equal "(pr-branch -> master) - 2 months ago - 10 comments - *NEED REBASE*"
status.should.equal true
count += 1
if (count is 2) then done()
Expand All @@ -129,8 +129,8 @@ describe 'Commands', () ->
Commands.pulls.action (title, url, infos, comments, status) ->
title.should.equal "closed-feature"
url.should.equal "https://github.com/octocat/Hello-World/pulls/3"
infos.should.equal "test-repo (pr-branch -> master)"
comments.should.equal "2 months ago - 10 comments - *CLOSED*"
infos.should.equal "test-repo"
comments.should.equal "(pr-branch -> master) - 2 months ago - 10 comments - *CLOSED*"
status.should.equal true
done()
, 'https://github.com/testorg/test-repo/pull/3'
Expand Down

0 comments on commit da1fd70

Please sign in to comment.