mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
65cb26cf31
* refactor(hooks): new structure for notifications * chore: fix build * chore: add debug * chore: add changeset
16 lines
949 B
YAML
16 lines
949 B
YAML
notify:
|
|
'example-google-chat':
|
|
method: POST
|
|
headers: [{ 'Content-Type': 'application/json' }]
|
|
endpoint: http://slack-service/foo?auth_token=mySecretToken
|
|
content: '{"text":"New package published: `{{ name }}{{#each versions}} v{{version}}{{/each}}`"}'
|
|
'example-hipchat':
|
|
method: POST
|
|
headers: [{ 'Content-Type': 'application/json' }]
|
|
endpoint: http://slack-service/foo?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: http://slack-service/foo?auth_token=mySecretToken
|
|
content: '{"body": {"version": 1,"type": "doc","content": [{"type": "paragraph","content": [{"type": "text","text": "New package published: * {{ name }}* Publisher name: * {{ publisher.name }}"}]}]}}'
|