mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
cf31982127
* test(utils): add test for validate names * test(utils): add unit test for dist-tags normalize utility * refactor(notifications): unit test for notifications * test(cli): add unit test for address validation * chore: add new constants * chore: ignore debug from coverage * test(bootstrap): test https is fails on start * refactor: update code for rebase
20 lines
1 KiB
YAML
20 lines
1 KiB
YAML
notify:
|
|
'example-google-chat':
|
|
method: POST
|
|
headers: [{ 'Content-Type': 'application/json' }]
|
|
endpoint: https://chat.googleapis.com/v1/spaces/AAAAB_TcJYs/messages?key=myKey&token=myToken
|
|
content: '{"text":"New package published: `{{ name }}{{#each versions}} v{{version}}{{/each}}`"}'
|
|
'example-hipchat':
|
|
method: POST
|
|
headers: [{ 'Content-Type': 'application/json' }]
|
|
endpoint: https://usagge.hipchat.com/v2/room/3729485/notification?auth_token=mySecretToken
|
|
content: '{"color":"green","message":"New package published: * {{ name }}*","notify":true,"message_format":"text"}'
|
|
'example-stride':
|
|
method: POST
|
|
headers:
|
|
[
|
|
{ 'Content-Type': 'application/json' },
|
|
{ 'authorization': 'Bearer secretToken' },
|
|
]
|
|
endpoint: https://api.atlassian.com/site/{cloudId}/conversation/{conversationId}/message
|
|
content: '{"body": {"version": 1,"type": "doc","content": [{"type": "paragraph","content": [{"type": "text","text": "New package published: * {{ name }}* Publisher name: * {{ publisher.name }}"}]}]}}'
|