You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/17 07:45:16 UTC
incubator-weex git commit: * [test] add log for danger test
Repository: incubator-weex
Updated Branches:
refs/heads/release-0.16 edbde500e -> 1c2369b4f
* [test] add log for danger test
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/1c2369b4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/1c2369b4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/1c2369b4
Branch: refs/heads/release-0.16
Commit: 1c2369b4f1e706751843a55927683d78b7191fa8
Parents: edbde50
Author: gurisxie <27...@qq.com>
Authored: Tue Oct 17 15:45:12 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Tue Oct 17 15:45:12 2017 +0800
----------------------------------------------------------------------
dangerfile.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/1c2369b4/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index bfa61fb..83a0ef1 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -315,8 +315,8 @@ function findReviewer(resolve, reject) {
number: danger.github.pr.number,
headers: {Accept: 'application/vnd.github.diff',"user-agent": "node.js"}
}, function (err, result) {
- console.log('parseDeleteAndNormalLines')
if ("undefined" === typeof result || "undefined" === typeof result.data || err) {
+ console.log('result:'+result+', error:'+err);
resolve()
return
}
@@ -374,6 +374,7 @@ function getContent(url) {
function parseDeleteAndNormalLines(diffData, fileToDeletedLinesMap, fileToNormalLinesMap) {
try {
+ console.log('diffData:'+diffData)
var diffs = parseDiff(diffData)
diffs.forEach(diff => {
fileToDeletedLinesMap[diff.from] = [];