You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@yetus.apache.org by aw...@apache.org on 2018/12/13 16:22:47 UTC

[3/3] yetus git commit: YETUS-720. github/jira bridge collapses when jira issues list isn't defined

YETUS-720. github/jira bridge collapses when jira issues list isn't defined

Signed-off-by: Allen Wittenauer <aw...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/1fcaabd4
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/1fcaabd4
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/1fcaabd4

Branch: refs/heads/master
Commit: 1fcaabd4ea91ca7f0b5acd67febcb0cc62ea568d
Parents: 9a2cd58
Author: Allen Wittenauer <aw...@apache.org>
Authored: Thu Nov 15 14:59:13 2018 -0800
Committer: Allen Wittenauer <aw...@apache.org>
Committed: Thu Dec 13 08:22:12 2018 -0800

----------------------------------------------------------------------
 precommit/src/main/shell/test-patch.d/jira.sh | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/1fcaabd4/precommit/src/main/shell/test-patch.d/jira.sh
----------------------------------------------------------------------
diff --git a/precommit/src/main/shell/test-patch.d/jira.sh b/precommit/src/main/shell/test-patch.d/jira.sh
index 00c7a54..cb2b53a 100755
--- a/precommit/src/main/shell/test-patch.d/jira.sh
+++ b/precommit/src/main/shell/test-patch.d/jira.sh
@@ -90,6 +90,10 @@ function jira_determine_issue
     return 0
   fi
 
+  if [[ -z "${JIRA_ISSUE_RE}" ]]; then
+    return 1
+  fi
+
   # shellcheck disable=SC2016
   patchnamechunk=$(echo "${input}" | "${AWK}" -F/ '{print $NF}')