Skip to content

Commit

Permalink
scripts: use AxoSyslog repo/tag and 'main' branch
Browse files Browse the repository at this point in the history
Signed-off-by: László Várady <laszlo.varady@axoflow.com>
  • Loading branch information
MrAnno committed May 16, 2024
1 parent 87c14fa commit 6d004ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions news/next-pr-id.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/commits/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#
#############################################################################

commit_range=origin/master..HEAD
commit_range=origin/main..HEAD

if [ $# -gt 0 ]; then
commit_range=$1
Expand Down

0 comments on commit 6d004ad

Please sign in to comment.