You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/06/06 11:48:37 UTC

incubator-weex git commit: * [all] Fix danger

Repository: incubator-weex
Updated Branches:
  refs/heads/0.14-dev b4447690d -> 939960a55


* [all] Fix danger


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/939960a5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/939960a5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/939960a5

Branch: refs/heads/0.14-dev
Commit: 939960a55adea700ac202ea80d5e4e6129d63387
Parents: b444769
Author: sospartan <so...@apache.org>
Authored: Tue Jun 6 19:47:48 2017 +0800
Committer: sospartan <so...@apache.org>
Committed: Tue Jun 6 19:47:48 2017 +0800

----------------------------------------------------------------------
 dangerfile.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/939960a5/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index 2a115b5..1b7df97 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -312,6 +312,10 @@ function findBlameReviewers(fileToDeletedLinesMap, fileToNormalLinesMap, fileToB
   Object.keys(fileToDeletedLinesMap).forEach(function (file) {
     let deletedLines = fileToDeletedLinesMap[file]
     var blames = fileToBlamesMap[file]
+    if (!blames) {
+      console.error(`failed to find blame info for (${file})`)
+      return;
+    }
     deletedLines.forEach(lineNumber => {
       var name = blames[lineNumber]
       reviewers[name] = (reviewers[name] || 0) + 3