https://github.com/oeph/bbs-code-insights
Wrapper for Bibucket Server Code Insights
https://github.com/oeph/bbs-code-insights
bitbucket bitbucket-server code-insights
Last synced: 5 months ago
JSON representation
Wrapper for Bibucket Server Code Insights
- Host: GitHub
- URL: https://github.com/oeph/bbs-code-insights
- Owner: oeph
- License: mit
- Created: 2021-05-22T08:30:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T20:16:10.000Z (about 2 years ago)
- Last Synced: 2025-10-04T00:34:36.759Z (9 months ago)
- Topics: bitbucket, bitbucket-server, code-insights
- Language: TypeScript
- Homepage:
- Size: 586 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README




# Code Insights for Bitbucket Server
Wrapper for [Code Insights](https://confluence.atlassian.com/bitbucketserver/code-insights-966660485.html) on Bitbucket Server
## Installation
```sh
npm install bbs-code-insights
```
## Usage
```javascript
const codeInsights = new CodeInsights(
{
url: 'https://your-bitbucket-server.example.org',
accessToken: 'gp762nuuoqcoxypju8c569th9wz7q5',
},
{
project: 'projectKey',
repo: 'repositorySlug',
commitId: '84eb815afaea6923b08a5514b978d0a404aaf121',
reportKey: 'your.report.integration.key',
}
);
await codeInsights.createReport({
title: 'Special Test tool report',
reporter: 'Special Tool Integration',
details: 'This report was created by a integration for our special tool',
result: 'PASS',
});
```
> For Access-Tokens refer to [Personal Access Tokens](https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html)