...
Code Block |
---|
|
{
"rules": [
{
"events": ["Push", "BranchCreate"],
"notifications": [
{ "address": "allthethings@example.com" }
]
}
]
} |
Send hook notifications to users and groups
...
Code Block |
---|
language | js |
---|
title | Example - Send to multiple email addresses |
---|
|
{
"rules": [
{
"notifications": [
{ "address": ["allthethings@example.com", "anotherlist@example.com"] }
]
}
]
} |
Two variables have been added to the json configuration:
${group.<groupname>} | To send a notification to all group members. ie: ${group.bitbucket-users} |
---|
${user.<username> | To send a notification to a specifc user ie: ${user.arthur.dent} |
---|
Code Block |
---|
language | js |
---|
title | Example - Send to all group members |
---|
|
{
"rules": [
{
"notifications": [
{ "address": "${group.bitbucket-users}" }
]
}
]
} |
Notification on Fork events
...