curl -s-X POST -d"{\"body\": \"$message\"}"-H"Authorization: token $GH_PERSONAL_TOKEN""https://api.github.com/repos/PixelExperience/official_devices/issues/$GIT_PR_NUMBER/comments">/dev/null
curl -s-X POST -d"{\"body\": \"$message\"}"-H"Authorization: token $GH_PERSONAL_TOKEN""https://api.github.com/repos/PixelExperience/official_devices/issues/$GIT_PR_NUMBER/comments">/dev/null
}
function approvePR(){
curl -s-X POST -d"{\"commit_id\": \"${COMMIT_HASH}\", \"event\": \"APPROVE\"}"-H"Authorization: token $GH_PERSONAL_TOKEN""https://api.github.com/repos/PixelExperience/official_devices/pulls/$GIT_PR_NUMBER/reviews">/dev/null
curl -s-X POST -d"{\"commit_id\": \"${COMMIT_HASH}\", \"event\": \"APPROVE\"}"-H"Authorization: token $GH_PERSONAL_TOKEN""https://api.github.com/repos/PixelExperience/official_devices/pulls/$GIT_PR_NUMBER/reviews">/dev/null
}
function checkLint(){
...
...
@@ -55,9 +56,8 @@ function checkJsons() {
echo-e"$message"
fi
elif["$RESULT"-ne 0 ];then
sendAdmins "\`Official-Devices CI%0A%0ASomeone has merged a failing file. Please look in ASAP.\`%0A%0A\`Error message: ${ERROR_MESSAGE}\`%0A%0A\`File: ${FAILED_FILE}\`%0A%0A${ADMINS}"
sendTG "Someone has merged a failing file. Please look in ASAP.\nError message: ${ERROR_MESSAGE}\nFile: ${FAILED_FILE}\n${ADMINS}"
else
sendAdmins "\`Official-Devices CI\`%0A%0A**I am building master branch job.** %0A**Commit Point:** [${COMMIT_SMALL_HASH}](https://github.com/PixelExperience/official_devices/commit/${COMMIT_HASH})"