From 6d004ad9adea3bb2a956a43388cefea33d8dcb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Thu, 16 May 2024 18:04:04 +0200 Subject: [PATCH] scripts: use AxoSyslog repo/tag and 'main' branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: László Várady --- news/next-pr-id.py | 4 ++-- scripts/version.sh | 2 +- tests/commits/check.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/news/next-pr-id.py b/news/next-pr-id.py index a9e807557b..bc8ce947aa 100755 --- a/news/next-pr-id.py +++ b/news/next-pr-id.py @@ -27,7 +27,7 @@ def get_last_issue_or_pr_id(): - ISSUES_API = "https://api.github.com/repos/syslog-ng/syslog-ng/issues?state=all&sort=created&direction=desc" + ISSUES_API = "https://api.github.com/repos/axoflow/axosyslog/issues?state=all&sort=created&direction=desc" raw_response = urlopen(ISSUES_API).read().decode("utf-8") json_response = loads(raw_response) @@ -37,7 +37,7 @@ def get_last_issue_or_pr_id(): def is_a_discussion(id): - DISCUSSIONS_URL = "https://github.com/syslog-ng/syslog-ng/discussions/" + DISCUSSIONS_URL = "https://github.com/axoflow/axosyslog/discussions/" try: urlopen(DISCUSSIONS_URL + str(id)) diff --git a/scripts/version.sh b/scripts/version.sh index b9e85a9824..e4a6bed2a8 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -30,7 +30,7 @@ cd $BASEDIR/../ if [ "$VERSION" != "" ]; then echo $VERSION | tr -d '\n' elif [ -d .git ] && GIT_VERSION=$(git describe --tags --dirty --abbrev=7); then - echo $GIT_VERSION | sed 's/^syslog-ng-//' | tr '-' '.' | tr -d '\n' + echo $GIT_VERSION | sed 's/^axosyslog-//' | tr '-' '.' | tr -d '\n' else cat VERSION.txt | tr -d '\n' fi diff --git a/tests/commits/check.sh b/tests/commits/check.sh index f4f532de78..2893042801 100755 --- a/tests/commits/check.sh +++ b/tests/commits/check.sh @@ -21,7 +21,7 @@ # ############################################################################# -commit_range=origin/master..HEAD +commit_range=origin/main..HEAD if [ $# -gt 0 ]; then commit_range=$1