From 1739c479edc789204d06c06d0a7793a05606f11d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kr=C3=BCger?= <ak@patientsky.com>
Date: Tue, 27 Nov 2018 22:32:44 +0100
Subject: [PATCH] Fix path to Kubespray in CI auth check

---
 scripts/premoderator.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/premoderator.sh b/scripts/premoderator.sh
index 9ad490a57..dc871f9c2 100644
--- a/scripts/premoderator.sh
+++ b/scripts/premoderator.sh
@@ -8,11 +8,11 @@ MAGIC="${MAGIC:-ci check this}"
 # Get PR number from CI_BUILD_REF_NAME
 issue=$(echo ${CI_BUILD_REF_NAME} | perl -ne '/^pr-(\d+)-\S+$/ && print $1')
 # Get the user name from the PR comments with the wanted magic incantation casted
-user=$(curl ${CURL_ARGS} "https://api.github.com/repos/kubernetes-incubator/kubespray/issues/${issue}/comments" \
+user=$(curl ${CURL_ARGS} "https://api.github.com/repos/kubernetes-sigs/kubespray/issues/${issue}/comments" \
   | jq -M "map(select(.body | contains (\"$MAGIC\"))) | .[0] .user.login" | tr -d '"')
 # Check for the required user group membership to allow (exit 0) or decline (exit >0) the pipeline
 if [ "$user" = "null" ]; then
 	echo "User does not have permissions to start CI run"
 	exit 1
 fi
-curl ${CURL_ARGS} "https://api.github.com/orgs/kubernetes-incubator/members/${user}"
+curl ${CURL_ARGS} "https://api.github.com/orgs/kubernetes-sigs/members/${user}"
-- 
GitLab