Bitbucket - message format

Pull request message format

{
  "text":"",
  "attachments": [
    {
      "authorName": "${userName}",
      "authorIcon": "${avatar}",
      "color": "${activityColor}",
      "text": "${activityText}",
      "fields": [
        {
          "title": "Description",
          "value": "${activityDes}",
          "short": true
        },
        {
          "title": "Reviewers",
          "value": "${activityReviewers}",
          "short": true
        },
        {
          "title": "Source",
          "value": "${source}",
          "short": true
        },
        {
          "title": "Destination",
          "value": "${destination}",
          "short": true
        }
      ]
    }
  ]
}
NameDescriptionSample
${projectKey}this is key of current projectSC
${repoName}this is name of current repositorySlack connector for Bitbucket
${userName}this is author(creator) of this pull requestRobert
${avatar}
this is avatar url of author
${activityColor}
BLUE("#2267c4") : open PR , re-open
PALE_BLUE("#439fe0") : comment on PR
GREEN("#2dc422") : approve PR
DARK_GREEN("#1e8217") : merge PR 
PURPLE("#9055fc") : update PR , rescope PR
GRAY("#aabbcc") : 
RED("#ff0024") : un-approve PR
DARK_RED("#990016") : decline PR

${activityText}


${activityDes}


${activityReviewers}
this is a list reviewers in given PRRobert , Michale
${source}
this is branch or tag which need to merge to destinatione.g : issue/DEV-01-login
${destination}
this is targe branch or targe.g : master , release/1.0

Push message format

{
  "text":"${pushInfo}",
  "attachments": [
    {
      "color": "${commitColor}",
      "text": "${commitLog}"
    }
  ]
}
NameDescriptionSample
${pushInfo}
the summary of pushing code
${commitColor}


${commitLog}
the detail information of commit