This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 961cacf fix: optimize release-notes scripts
961cacf is described below
commit 961cacf64fa3e0a44d471ee5eca3cafcce388c27
Author: LiLi <[email protected]>
AuthorDate: Wed Mar 16 17:17:04 2022 +0800
fix: optimize release-notes scripts
Signed-off-by: LiLi <[email protected]>
---
site2/website-next/scripts/.gitignore | 3 ++-
site2/website-next/scripts/release-notes.sh | 8 +++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/site2/website-next/scripts/.gitignore
b/site2/website-next/scripts/.gitignore
index 7f4c629..1c0f705 100644
--- a/site2/website-next/scripts/.gitignore
+++ b/site2/website-next/scripts/.gitignore
@@ -1 +1,2 @@
-release-notes/
\ No newline at end of file
+release-notes/
+token
\ No newline at end of file
diff --git a/site2/website-next/scripts/release-notes.sh
b/site2/website-next/scripts/release-notes.sh
index 88d5aa6..3fdab39 100755
--- a/site2/website-next/scripts/release-notes.sh
+++ b/site2/website-next/scripts/release-notes.sh
@@ -2,8 +2,10 @@
ROOT_DIR=$(git rev-parse --show-toplevel)
-echo $TOKEN >./token
-gh auth login --with-token <token
+echo $TOKEN >$ROOT_DIR/site2/website-next/scripts/token
+gh auth login --with-token <$ROOT_DIR/site2/website-next/scripts/token
+rm $ROOT_DIR/site2/website-next/scripts/token
+
cd $ROOT_DIR/../pulsar
mkdir -p $ROOT_DIR/site2/website-next/scripts/release-notes
@@ -13,4 +15,4 @@ for version in $VERSIONS; do
gh pr list --limit 200 --label "release/"$version --state merged --json
labels,title,number >
$ROOT_DIR/site2/website-next/scripts/release-notes/$version.json
done
-node $ROOT_DIR/site2/website-next/scripts/release-notes.js $ROOT_DIR
+node $ROOT_DIR/site2/website-next/scripts/release-notes.js $ROOT_DIR
\ No newline at end of file