Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Infra
CI Jobs
Official Devices Validator
Commits
3e919a03
Commit
3e919a03
authored
Mar 20, 2021
by
José Henrique
Browse files
Send on maintainers chat as well
parent
61e701b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
runner.sh
View file @
3e919a03
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment