Browse Source

what s new

sebavan 6 years ago
parent
commit
8c812f153c
1 changed files with 17 additions and 15 deletions
  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.