Skip to content

Commit 527c3f5

Browse files
authored
Merge pull request #17831 from MinaProtocol/lyh/fix-bypass-changelog
fix bypass changelog
2 parents e12dfd6 + 44979db commit 527c3f5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

buildkite/scripts/changelog.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if [[ ! "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" ]]; then
7474
exit 1
7575
fi
7676

77-
./buildkite/scripts/git/check-bypass.sh "!ci-bypass-changelog"
77+
./buildkite/scripts/git/check-bypass.sh "!ci-bypass-changelog" && exit 0;
7878

7979
REMOTE_BRANCH="origin/${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"
8080

buildkite/scripts/git/check-bypass.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ if [[ "$COMMENTED_CODE" == 0 ]]; then
4949
echo "⏭️ Skipping run as PR is bypassed"
5050
exit 0
5151
elif [[ "$COMMENTED_CODE" == 1 ]]; then
52-
echo "⚙️ PR is not bypassed. Proceeding with changelog check..."
52+
echo "⚙️ PR is not bypassed. Proceeding with check..."
53+
exit 2
5354
else
54-
echo "❌ Failed to check PR for being eligible for changelog check bypass"
55+
echo "❌ Failed to check PR for being eligible for check bypass"
5556
exit 1
56-
fi
57+
fi

0 commit comments

Comments
 (0)