Aggiornato con webhook kuma e gitea
This commit is contained in:
parent
c0ebf87cc0
commit
8cbbba264e
1 changed files with 40 additions and 4 deletions
|
@ -37,7 +37,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"xmppServer": {
|
"xmppServer": {
|
||||||
"service": "wss://woodpeckersnest.space:5281/xmpp-websocket"
|
"service": "wss://woodpeckersnest.space:5281/xmpp-websocket",
|
||||||
"domain": "woodpeckersnest.space",
|
"domain": "woodpeckersnest.space",
|
||||||
"username": "Ted",
|
"username": "Ted",
|
||||||
"password": "sekret",
|
"password": "sekret",
|
||||||
|
@ -49,7 +49,15 @@
|
||||||
"password": null
|
"password": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "lozibaldone@groups.chat.sabatino.cloud",
|
"id": "lozibaldone@conference.xmpp-it.net",
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "service@chat.woodpeckersnest.space",
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xmpp-it@conference.xmpp-it.net",
|
||||||
"password": null
|
"password": null
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -58,6 +66,33 @@
|
||||||
{
|
{
|
||||||
"path": "/webhooks/roughnecks",
|
"path": "/webhooks/roughnecks",
|
||||||
"action": "send_xmpp_message"
|
"action": "send_xmpp_message"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "/webhooks/kuma",
|
||||||
|
"action": "send_xmpp_template",
|
||||||
|
"args": {
|
||||||
|
"destination": "service@chat.woodpeckersnest.space",
|
||||||
|
"type": "groupchat"
|
||||||
|
},
|
||||||
|
"template": "${heartbeat.time}\r\n${msg}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "/webhooks/gitea",
|
||||||
|
"action": "send_xmpp_template",
|
||||||
|
"args": {
|
||||||
|
"destination": "xmpp-it@conference.xmpp-it.net",
|
||||||
|
"type": "groupchat"
|
||||||
|
},
|
||||||
|
"template": "Commit da: ${commits[0].committer.username} - Data: ${commits[0].timestamp} - Repository: ${repository.name} - Messaggio: ${commits[0].message}\r\n${compare_url}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "/webhooks/newrepo",
|
||||||
|
"action": "send_xmpp_template",
|
||||||
|
"args": {
|
||||||
|
"destination": "xmpp-it@conference.xmpp-it.net",
|
||||||
|
"type": "groupchat"
|
||||||
|
},
|
||||||
|
"template": "Repository ${repository.full_name} ${action}, visibilita': ${repository.owner.visibility}\r\n${repository.html_url}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"xmppHooks": [
|
"xmppHooks": [
|
||||||
|
@ -67,13 +102,14 @@
|
||||||
"args": ["send_to_roughnecks"]
|
"args": ["send_to_roughnecks"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"outgoingWebhooks": [
|
"outgoingWebhooks": [
|
||||||
{
|
{
|
||||||
"code": "send_to_roughnecks",
|
"code": "send_to_roughnecks",
|
||||||
"url": "https://trigger.macrodroid.com/d26e0afa-b0170fb55664/fake",
|
"url": "https://trigger.macrodroid.com/d26e0afa-b0170fb55664/fake",
|
||||||
"timeout": 2000,
|
"timeout": 2000,
|
||||||
"strictSSL": false,
|
"strictSSL": false,
|
||||||
"contentType": "application/json"
|
"contentType": "application/json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue