Commit 3e919a03 authored by José Henrique's avatar José Henrique
Browse files

Send on maintainers chat as well

parent 61e701b0
......@@ -17,10 +17,13 @@ COMMIT_MESSAGE="$(${GIT_CMD} log -1 --pretty=%B)"
COMMIT_SMALL_HASH="$(${GIT_CMD} rev-parse --short HEAD)"
COMMIT_HASH="$(${GIT_CMD} rev-parse --verify HEAD)"
COMMIT_URL="https://github.com/PixelExperience/official_devices/commit/$COMMIT_HASH"
ADMINS_CHAT_ID="-1001463677498"
MAINTAINERS_CHAT_ID="-1001287849567"
function sendTG() {
message="PixelExperience CI ([URL]($BUILD_URL)) ([$COMMIT_SMALL_HASH]($COMMIT_URL)): $1"
curl -s "https://api.telegram.org/bot$TELEGRAM_TOKEN/sendmessage" --data "text=$message&chat_id=-1001463677498&disable_web_page_preview=true&parse_mode=Markdown" > /dev/null
curl -s "https://api.telegram.org/bot$TELEGRAM_TOKEN/sendmessage" --data "text=$message&chat_id=$ADMINS_CHAT_ID&disable_web_page_preview=true&parse_mode=Markdown" > /dev/null
curl -s "https://api.telegram.org/bot$TELEGRAM_TOKEN/sendmessage" --data "text=$message&chat_id=$MAINTAINERS_CHAT_ID&disable_web_page_preview=true&parse_mode=Markdown" > /dev/null
}
function commentPR() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment