瀏覽代碼

what s new

sebavan 6 年之前
父節點
當前提交
8c812f153c
共有 1 個文件被更改,包括 17 次插入15 次删除
  1. 17 15
      Tools/Gulp/tasks/gulpTasks-whatsNew.js

+ 17 - 15
Tools/Gulp/tasks/gulpTasks-whatsNew.js

@@ -6,23 +6,25 @@ var fs = require("fs");
  * Tests the whats new file to ensure changes have been made in the PR.
  */
 gulp.task("tests-whatsnew", function(done) {
-    console.log(process.env["AZURE_PULLREQUESTID"])
-    // Only checks on Travis
-    if (!process.env.TRAVIS) {
-        done();
-        return;
-    }
+    // Check status on azure
+    if (!process.env["AZURE_PULLREQUESTID"]) {
+        // Only checks on Travis
+        if (!process.env.TRAVIS) {
+            done();
+            return;
+        }
 
-    // Only checks on Pull Requests
-    if (process.env.TRAVIS_PULL_REQUEST == "false") {
-        done();
-        return;
-    }
+        // Only checks on Pull Requests
+        if (process.env.TRAVIS_PULL_REQUEST == "false") {
+            done();
+            return;
+        }
 
-    // Do not check deploy
-    if (process.env.TRAVIS_BRANCH == "preview") {
-        done();
-        return;
+        // Do not check deploy
+        if (process.env.TRAVIS_BRANCH == "preview") {
+            done();
+            return;
+        }
     }
 
     // Compare what's new with the current one in the preview release folder.