项目在部署平台上编译部署时间比较久,一般都是切换去做别的事情,想有一个本地程序能配置 webhooks,接受持续集成平台的部署完成推送,程序收到推送后右下角弹出提示框。 大概需求就是如此,不知道 V 友们是否了解到有没有现成的可用?感谢~~~ 或者有没有别的替代方案可以及时收到部署完成的通知?(本身持续集成没有继承任何通知功能,只有 webconsole 中的日志提示,但是 webhooks 是有的)
项目在部署平台上编译部署时间比较久,一般都是切换去做别的事情,想有一个本地程序能配置 webhooks,接受持续集成平台的部署完成推送,程序收到推送后右下角弹出提示框。 大概需求就是如此,不知道 V 友们是否了解到有没有现成的可用?感谢~~~ 或者有没有别的替代方案可以及时收到部署完成的通知?(本身持续集成没有继承任何通知功能,只有 webconsole 中的日志提示,但是 webhooks 是有的)
|
ysc3839Aug 26, 2020
1
Git for Windows 有带一个命令行工具 wintoast,可以通过命令行显示通知。
$ wintoast --help WinToast Console Example [OPTIONS] --action : Set the actions in buttons --aumi : Set the App User Model Id --appname : Set the default appname --appid : Set the App Id --expirems : Set the default expiration time --text : Set the text for the notifications --image : set the image path --only-create-shortcut : create the shortcut for the app --help : Print the help description |
|
clfAug 26, 2020
2
直接发邮件
|
|
executeAug 26, 2020
3
|
|
4
@ysc3839 谢谢,这个挺好的,稍微改一下就能完成我的需求了
|
|
5
from win10toast import ToastNotifier
toaster = ToastNotifier() toaster.show_toast("Hello World!!!", "Python is 10 seconds awsm!", icon_path="custom.ico", duration=10) |
|
xomixAug 26, 2020
6
Windows 内置消息通知序列,通过 api 你可用发送你想要的任何通知
|
|
imn1Aug 26, 2020
7
powershell 就有,一年没写忘了
|
|
8
"Server 酱",推送到微信不是更方便吗?
|