Skip to content

Wrapper for Bibucket Server Code Insights

License

Notifications You must be signed in to change notification settings

oeph/bbs-code-insights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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