Skip to content

Commit

Permalink
[chores] Removed travis-ci skip commit logic #163
Browse files Browse the repository at this point in the history
Closes #163
  • Loading branch information
praptisharma28 authored Dec 11, 2023
1 parent 828ced9 commit e177b7d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions openwisp-qa-check
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,14 @@ runblack() {

runcheckcommit() {
if [ -z "$COMMIT_MESSAGE" ]; then COMMIT_MESSAGE=$(git log -1 --pretty=%B); fi
if [ "$TRAVIS" = true ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
echo "SKIPPED: Commit message check skipped!"
else
checkcommit --message "$COMMIT_MESSAGE" &&
echo "SUCCESS: Commit message check successful!" ||
{
echo -e "Checked commit message:\n\n"
echo -e "$COMMIT_MESSAGE\n\n"
echoerr "ERROR: Commit message check failed!"
FAILURE=1
}
fi

checkcommit --message "$COMMIT_MESSAGE" &&
echo "SUCCESS: Commit message check successful!" ||
{
echo -e "Checked commit message:\n\n$COMMIT_MESSAGE\n\n"
echoerr "ERROR: Commit message check failed!"
FAILURE=1
}
}

runcheckpendingmigrations() {
Expand Down

0 comments on commit e177b7d

Please sign in to comment.