[Notice] Announcing the End of Demo Server [Read me]
채수원 2015-03-10
Merge branch 'issue-2193' of dlab/hive
from pull-request 1502

* refs/heads/issue-2193:
  Notification: removed outdated commits from message

Reviewed-by: 이응준 
@07d0b07141d510508137a3d6f2d527c0b99be4ed
app/models/NotificationEvent.java
--- app/models/NotificationEvent.java
+++ app/models/NotificationEvent.java
@@ -481,10 +481,12 @@
         builder.append(Messages.get("notification.pullrequest.current.commits"));
         builder.append("\n");
         for (PullRequestCommit commit : commits) {
-            builder.append(commit.getCommitShortId());
-            builder.append(" ");
-            builder.append(commit.getCommitShortMessage());
-            builder.append("\n");
+            if (commit.state == PullRequestCommit.State.CURRENT) {
+                builder.append(commit.getCommitShortId());
+                builder.append(" ");
+                builder.append(commit.getCommitShortMessage());
+                builder.append("\n");
+            }
         }
         return builder.toString();
     }
Add a comment
List