From a48bb08c4ce2a3a193bab765f8d682be241e8d54 Mon Sep 17 00:00:00 2001
From: Jan Frenzel <jan.frenzel@tu-dresden.de>
Date: Tue, 1 Feb 2022 14:29:52 +0100
Subject: [PATCH] Use CI_PROJECT_ID in create-issues-all-pages.sh.

---
 doc.zih.tu-dresden.de/util/create-issues-all-pages.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc.zih.tu-dresden.de/util/create-issues-all-pages.sh b/doc.zih.tu-dresden.de/util/create-issues-all-pages.sh
index 55c874c07..6ed586418 100755
--- a/doc.zih.tu-dresden.de/util/create-issues-all-pages.sh
+++ b/doc.zih.tu-dresden.de/util/create-issues-all-pages.sh
@@ -12,6 +12,7 @@ description=""
 for f in $files; do
   description="$description- [ ] $f\n"
 done
-echo "CI_JOB_TOKEN=${CI_JOB_TOKEN+x}"
+echo "SCHEDULED_PAGE_CHECK_PAT=${SCHEDULED_PAGE_CHECK_PAT+x}"
+echo "CI_PROJECT_ID=$CI_PROJECT_ID"
 
-curl --verbose --request POST --form "token=$CI_JOB_TOKEN" --form 'title="Regular check of all pages"' --form "description=\"$description\"" --form "labels=Bot" https://gitlab.hrz.tu-chemnitz.de/api/v4/projects/8840/issues
+curl --verbose --request POST --header "PRIVATE-TOKEN: $SCHEDULED_PAGE_CHECK_PAT" --form 'title="Regular check of all pages"' --form "description=\"$description\"" --form "labels=Bot" https://gitlab.hrz.tu-chemnitz.de/api/v4/projects/${CI_PROJECT_ID}/issues
-- 
GitLab