You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@yetus.apache.org by aw...@apache.org on 2020/11/10 23:18:00 UTC

[yetus] branch main updated: YETUS-1073. GITHUB_REPO_DEFAULT isn't honored (#199)

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

aw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus.git


The following commit(s) were added to refs/heads/main by this push:
     new ac651af  YETUS-1073. GITHUB_REPO_DEFAULT isn't honored (#199)
ac651af is described below

commit ac651af90232c6ee54b066f9cf490c2ce455a772
Author: Allen Wittenauer <aw...@apache.org>
AuthorDate: Tue Nov 10 15:17:50 2020 -0800

    YETUS-1073. GITHUB_REPO_DEFAULT isn't honored (#199)
    
    Signed-off-by: Sean Busbey <bu...@apache.org>
---
 precommit/src/main/shell/test-patch.d/github.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/precommit/src/main/shell/test-patch.d/github.sh b/precommit/src/main/shell/test-patch.d/github.sh
index 0c83079..79fcbab 100755
--- a/precommit/src/main/shell/test-patch.d/github.sh
+++ b/precommit/src/main/shell/test-patch.d/github.sh
@@ -184,6 +184,8 @@ function github_initialize
     GITHUB_AUTH=(-H "Authorization: token ${GITHUB_TOKEN}")
   fi
 
+  GITHUB_REPO=${GITHUB_REPO:-${GITHUB_REPO_DEFAULT}}
+
   if [[ -z "${GITHUB_REPO}" ]]; then
     yetus_error "WARNING: --github-repo not autodetermined or provided. Brute forcing."
     pushd "${BASEDIR}" >/dev/null || return 1