bbs-code-insights

Code Insights for Bitbucket Server

Usage no npm install needed!

<script type="module">
  import bbsCodeInsights from 'https://cdn.skypack.dev/bbs-code-insights';
</script>

README

npm npm GitHub code size in bytes NPM

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