|
@@ -53,18 +53,6 @@ else
|
|
|
curl_gh -X DELETE "https://api.github.com/repos/nextcloud/$repository/issues/comments/$comment"
|
|
|
done
|
|
|
|
|
|
- # check library, only if base branch is master
|
|
|
- baseBranch=$(scripts/analysis/getBranchBase.sh "${PR_NUMBER}" | tr -d "\"")
|
|
|
- if [ $baseBranch = "master" -a $(grep "androidLibraryVersion = \"master-SNAPSHOT\"" build.gradle -c) -ne 1 ]; then
|
|
|
- checkLibraryMessage="<h1>Android-library is not set to master branch in build.gradle</h1>"
|
|
|
- checkLibrary=1
|
|
|
- elif [ $baseBranch != "master" -a $baseBranch = $stableBranch -a $(grep "androidLibraryVersion.*SNAPSHOT" build.gradle -c) -ne 0 ]; then
|
|
|
- checkLibraryMessage="<h1>Android-library is set to a SNAPSHOT in build.gradle</h1>"
|
|
|
- checkLibrary=1
|
|
|
- else
|
|
|
- checkLibrary=0
|
|
|
- fi
|
|
|
-
|
|
|
# lint and spotbugs file must exist
|
|
|
if [ ! -s app/build/reports/lint/lint.html ] ; then
|
|
|
echo "lint.html file is missing!"
|
|
@@ -131,7 +119,7 @@ else
|
|
|
notNull="org.jetbrains.annotations.* is used. Please use androidx.annotation.* instead.<br><br>"
|
|
|
fi
|
|
|
|
|
|
- bodyContent="$codacyResult $lintResult $spotbugsResult $checkLibraryMessage $lintMessage $spotbugsMessage $gplayLimitation $notNull"
|
|
|
+ bodyContent="$codacyResult $lintResult $spotbugsResult $lintMessage $spotbugsMessage $gplayLimitation $notNull"
|
|
|
echo "$bodyContent" >> "$GITHUB_STEP_SUMMARY"
|
|
|
payload="{ \"body\" : \"$bodyContent\" }"
|
|
|
curl_gh -X POST "https://api.github.com/repos/nextcloud/$repository/issues/${PR_NUMBER}/comments" -d "$payload"
|