We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
check-commits-count
master
1 parent a4822a3 commit 967d9d3Copy full SHA for 967d9d3
ci/prow/check-commits-count
@@ -5,7 +5,8 @@ set -euxo pipefail
5
git remote add upstream https://github.com/openshift/driver-toolkit.git
6
git fetch upstream
7
8
-commits_count=$(git rev-list --count HEAD ^upstream/master)
+branch_name=$(git branch --show-current)
9
+commits_count=$(git rev-list --count HEAD ^upstream/${branch_name})
10
# When Prow is testing a PR, it is creating a branch for it but then merges it
11
# into the "master" branch for testing, therefore, we also get the "merge commit"
12
# in addition to the original commit.
0 commit comments