Skip to content

Commit

Permalink
tests: update test-commit-tags to support build(deps) tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaian committed Apr 11, 2024
1 parent 2f50181 commit 49daf3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/dev/AcceptedCommitTagsList.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
agi
as
asterisk
build(deps)
ci
core
data
Expand Down
4 changes: 2 additions & 2 deletions library/bin/test-commit-tags
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cd $(dirname $(realpath $0))/../../
BASE_BRANCH=${1:-origin/bleeding}

# Get the list of commits
COMMITS=$(git --no-pager log --format=%B ${BASE_BRANCH}..HEAD | grep -v ^$)
COMMITS=$(git --no-pager log --format=%s ${BASE_BRANCH}..HEAD | grep -v ^$)

# Check we have at least some commits
if [ -z "$COMMITS" ]; then
Expand All @@ -25,7 +25,7 @@ for COMMIT in $COMMITS; do
ERROR=1
continue
fi
grep -E -q "${TAG}$" doc/dev/AcceptedCommitTagsList.txt
grep -q "${TAG}$" doc/dev/AcceptedCommitTagsList.txt
if [ $? -ne 0 ]; then
echo "ERROR: $TAG is not a valid commit tag"
ERROR=1
Expand Down

0 comments on commit 49daf3b

Please sign in to comment.