bbs-code-insights
v0.0.2
Published
Code Insights for Bitbucket Server
Downloads
3
Maintainers
Readme
Code Insights for Bitbucket Server
Wrapper for Code Insights on Bitbucket Server
Installation
npm install bbs-code-insights
Usage
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