You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2018/10/04 10:30:49 UTC

[ignite-teamcity-bot] branch master updated: add git and JIRA URL samples - Fixes #26.

This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new d823dc9  add git and JIRA URL samples - Fixes #26.
d823dc9 is described below

commit d823dc915ca87dc1fa182f5fe5de3cf431b822bf
Author: Dmitrii Ryabov <So...@gmail.com>
AuthorDate: Thu Oct 4 13:30:37 2018 +0300

    add git and JIRA URL samples - Fixes #26.
    
    Signed-off-by: Dmitriy Pavlov <dp...@apache.org>
---
 conf/apache.auth.properties                           | 12 +++++++++++-
 ignite-tc-helper-web/src/main/webapp/js/common-1.6.js |  6 ++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/conf/apache.auth.properties b/conf/apache.auth.properties
index 653d082..da84ef6 100644
--- a/conf/apache.auth.properties
+++ b/conf/apache.auth.properties
@@ -1,3 +1,13 @@
 host=https://ci.ignite.apache.org/
  
-logs=apache_logs
\ No newline at end of file
+logs=apache_logs
+
+git.api_url=https://api.github.com/repos/apache/ignite/
+jira.api_url=https://issues.apache.org/jira/rest/api/2/
+
+
+#specify JIRA Auth token (if needed)
+jira.auth_token=
+
+#specify GitHub Auth token (if needed)
+github.auth_token=
\ No newline at end of file
diff --git a/ignite-tc-helper-web/src/main/webapp/js/common-1.6.js b/ignite-tc-helper-web/src/main/webapp/js/common-1.6.js
index 8f15680..3a4688d 100644
--- a/ignite-tc-helper-web/src/main/webapp/js/common-1.6.js
+++ b/ignite-tc-helper-web/src/main/webapp/js/common-1.6.js
@@ -326,8 +326,10 @@ function _fillGitUrls(result) {
  * @private
  */
 function _sendRequestsToFillAutocompleteLists() {
-    for (var entry of gitUrls.entries())
-        scriptRequest(entry[1] + "pulls?sort=updated&direction=desc", _fillBranchAutocompleteList);
+    for (var entry of gitUrls.entries()) {
+        if (entry[1])
+            scriptRequest(entry[1] + "pulls?sort=updated&direction=desc", _fillBranchAutocompleteList);
+    }
 }
 
 /**