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 } ] } ] }
Name | Description | Sample |
---|---|---|
${projectKey} | this is key of current project | SC |
${repoName} | this is name of current repository | Slack connector for Bitbucket |
${userName} | this is author(creator) of this pull request | Robert |
${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 PR | Robert , Michale |
${source} | this is branch or tag which need to merge to destination | e.g : issue/DEV-01-login |
${destination} | this is targe branch or targ | e.g : master , release/1.0 |
Push message format
{ "text":"${pushInfo}", "attachments": [ { "color": "${commitColor}", "text": "${commitLog}" } ] }
Name | Description | Sample |
---|---|---|
${pushInfo} | the summary of pushing code | |
${commitColor} | ||
${commitLog} | the detail information of commit |