https://github.com/sbmueller/bitbucket-teams-notifications
Web service that accepts BitBucket Server notification requests, maps and forwards them to a Microsoft Teams incoming webhook.
https://github.com/sbmueller/bitbucket-teams-notifications
Last synced: about 1 month ago
JSON representation
Web service that accepts BitBucket Server notification requests, maps and forwards them to a Microsoft Teams incoming webhook.
- Host: GitHub
- URL: https://github.com/sbmueller/bitbucket-teams-notifications
- Owner: sbmueller
- License: gpl-3.0
- Created: 2022-10-02T16:42:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T10:46:05.000Z (over 3 years ago)
- Last Synced: 2025-11-12T16:24:54.541Z (8 months ago)
- Language: Rust
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BitBucket Teams Notifications
This is a small web service that can be used as target for [BitBucket server
webhooks][1]. The goal is to transform the BitBucket request in a request that
is accepted by a [Microsoft Teams webhook][2], enabling a bot that updates a
certain channel with updates on pull requests that happen in one repository.
Requires Rust nightly.
## Webhook Format
Since BitBucket decodes URLs entered as webhook, a custom escaping is required
to distinguish between URL intended for the webservice and URL that belongs to
a Teams channel incoming webhook. For that, `+` is used in the Teams incoming
webhook URL as replacement character for a slash `/`:
```
https://url.to.this.service/prupdate/https:++teams.url+some-identifier
```
Note the URL up to `prupdate/` is intended to be processed by this service
while everything afterwards is the outgoing Teams URL, where `/` is replaced by
`+`.
[1]: https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html
[2]: https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL