Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleExample
{
  "rules": [
    {
        "events": ["Push", "BranchCreate"],
        "notifications": [
            { "address": "allthethings@example.com" }
        ]
 
  }
  ]
}

Send hook notifications to users and groups

...

Code Block
languagejs
titleExample - 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
languagejs
titleExample - Send to all group members
{
  "rules": [
    {
        "notifications": [
            { "address": "${group.bitbucket-users}" }
        ]

   }
  ]
}

Notification on Fork events

...