Page tree

Versions Compared

Key

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

See the Project Settings - Notification Policies and Repository Settings - Notification Policies for creating, deleting and editing notification policies. 

Bitbucket has a complete event subsystem that fires events whenever anything happens inside the application. For example, an event is fired whenever a branch is created or a pull request is merged.

To notify Mattermost from Bitbucket when a branch is created, your Bitbucket Administrator will set up the correct policy.  Then, when a branch is created in a repository in Bitbucket, the designated Mattermost channel will receive a notification. 

Example:

A Bitbucket user creates a branch in the repository namedApolloUI.  This repository belongs to the project Team.  This project has, for its project channels, the Mattermost channel Bitbucket.  With a "branch created" notification policy set for the project, the following notification would be seen in the Bitbucket channel upon branch creation:



The date/time of creation are shown.  The notification shows the Bitbucket project (Team), the repository (ApolloUI) and the name of the branch (adam).

Links to Bitbucket are provided for team, repository and branch.


Here are the results in Mattermost for the different notifications:

Repository Events

Code pushed

Branch created

Branch deleted

Pull Request Events
Opened

Image Added

Commented

Image Added

Declined

Image Added

Deleted

Image Added

Merged

Image Added

ReopenedRescoped

Image Added

Reviewed

Image Added

Approved

Image Added


Unapproved

Image Added

Updated

Image Added