https://github.com/idirouhab/bitbucket2insights
Bitbucket events to Insights events middleware
https://github.com/idirouhab/bitbucket2insights
bitbucket-server bitbucket-webhooks newrelic newrelic-insights nodejs-api
Last synced: 3 months ago
JSON representation
Bitbucket events to Insights events middleware
- Host: GitHub
- URL: https://github.com/idirouhab/bitbucket2insights
- Owner: idirouhab
- License: apache-2.0
- Created: 2018-11-21T19:47:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2026-02-13T13:33:26.000Z (4 months ago)
- Last Synced: 2026-02-13T22:38:16.132Z (4 months ago)
- Topics: bitbucket-server, bitbucket-webhooks, newrelic, newrelic-insights, nodejs-api
- Language: JavaScript
- Homepage:
- Size: 486 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Bitbucket2Insights
[](https://travis-ci.org/idirouhab/bitbucket2insights)
[](https://snyk.io/test/github/idirouhab/bitbucket2insights?targetFile=package.json)
[](https://david-dm.org/idirouhab/bitbucket2insights.svg)
[](https://codeclimate.com/github/idirouhab/bitbucket2insights/maintainability)
[](https://microbadger.com/images/idirouhab/bitbucket2insights "Get your own version badge on microbadger.com")
This repository is a simple middleware which gets [Bitbucket events payloads](https://confluence.atlassian.com/bitbucketserver/bitbucket-server-documentation-776639749.html) and sends it to [New Relic Insight as a custom event](https://docs.newrelic.com/docs/insights/insights-data-sources/custom-data/send-custom-events-event-api).
## Requirements
This application is compatible with Bitbucket Server but not Cloud. Due to some divergences between both platforms Cloud is excluded.
You must have a New Relic account and have access to generate an [Insert Key](https://docs.newrelic.com/docs/insights/insights-data-sources/custom-data/send-custom-events-event-api#register).
### Travis
Travis will push automatically the Docker image to Dockerhub.
If you decide to use your own registry, after forking the repository you may to add the following environment variables to Travis:
- `DOCKER_REPOSITORY`
- `DOCKER_USERNAME`
- `DOCKER_PASSWORD`
## Documentation
This application is using Openapi 3.0 to make the documentation, feel free to use the [online edit](http://editor.swagger.io/) to see the [documentation](documentation.json).
Also, if you are running this application, you would be able to see the documentation under the root path (`YOUR_HOST:/`)
## How to make it running?
- Run `npm install`
- Check the [config file](./config/config.js) and make sure you either are using the static port or you set up PORT as an environment variable.
- Run `npm start`
- Send any [Bitbucket events payloads](https://confluence.atlassian.com/bitbucketserver/bitbucket-server-documentation-776639749.html)
## Test
WIP
## Contribute
Is there something missing?
You are more than welcome to contribute either opening an issue or making a pull request.