Twitter service management

You can add a Twitter service to Bitbucket. Bitbucket will post information to Twitter when your project is updated. Bitbucket will use Twitter's OAuth authentication API. If you are having trouble with the service, see Troubleshooting Bitbucket services.

Setting Up the service

 You must have administrative access on a repository to add this service.

  1. Go to the repository's settings.
  2. Click Services in the left-hand navigation.
    The Services page appears.
  3. Select the Twitter service from the services dropdown.
  4. Click Add service.
    A new section appears for the Twitter service.
  5. Click the Authorise your Twitter account to communicate with Bitbucket link.
    A Twitter screen appears. If you are not logged into Twitter, you are prompted to log in now. If you are already logged in to Twitter, prompts you to allow or deny Bitbucket access to your Twitter account.
  6. Click Allow.
    The system redirects you back to Bitbucket. The Twitter Secret and Token fields are filled in the Twitter service section.
  7. Use the default value for the Format or change the template to suit your needs, as described below.

  8. Press Save.
    Commits to your account will be posted to Twitter using the format you defined. 

Choosing the Format of the Twitter Update

The default format is:

${repository.name} - ${commit.author} - ${commit.message}

You can change the template to suit your own needs. The fields correspond directly to how the payload is delivered. For a description of the payload, see our guide to writing brokers.

There is also a shortcut for creating a TinyURL to the commit:

${commit.tinyurl}

Was this helpful?

Thanks for your feedback!

Powered by Confluence and Scroll Viewport