We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf3f15 commit f8d175aCopy full SHA for f8d175a
scripts/analysis/detectWrongSettings.sh
@@ -8,8 +8,8 @@ snapshotCount=$(./gradlew dependencies | grep SNAPSHOT -c)
8
betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/setup.xml -c)
9
libraryHash=$(grep androidLibraryVersion build.gradle | cut -d= -f2 | tr -d \")
10
11
+lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 20)
12
baseBranch="master"
-lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 10)
13
14
if [[ $(echo "$lastHashes" | grep -c $libraryHash) -ne 1 ]]; then
15
echo "Library commit not within last 10 hashes, please rebase!"
0 commit comments