Skip to content

campbellbartlett/code-insight-extension

Repository files navigation

Code Insights Extension for BitBucket Server

Introduction

With the release of BitBucket Server 7, repository administrators now have the ability to configure compulsory insight reports that must report their status before merging can take place. An administrator also has the ability to list which of these reports must pass.

This has been a great addition and, in some ways, brings the code insights feature up to par with similar GitHub and GitLab features.

However, there is one thing that is not yet implemented - the ability for an administrator to 'force' the merge from the UI by using their admin privileges. This feature is important because sometimes a failed status check is a risk that a product owner or chief engineer is willing to accept in order to resolve a different issue.

Example of functionality in a GitHub pull request:

KNH6q

Examples that spring to mind are issues in common libraries, that are medium severity and have no ETA on a fix. If a second issue is found in a critical area of the codebase (say an exploit that allowed anyone to login as anyone else), the decision would probably be made to move ahead with the merge to fix the critical bug immediately instead of waiting for the medium severity issue to be fixed.

This extension adds the ability for a repository administrator to override a blocked merge in these situations.

Images

Screen Shot 2020-07-09 at 1 05 15 pm

Screen Shot 2020-07-09 at 1 05 24 pm

Usage

This extension is not available on the BitBucket Server market place (yet). An administrator could install the extension to their BitBucket Server by first cloning this repository and following the below steps:

  1. Install and configure the Atlassian SDK. Instructions here
  2. Clone this repository to your machine.
  3. Run the command atlas-package from within the project directory. A jar of this plugin will be created at src/target/.
  4. Install the plugin in your BitBucket Server using the Universal Plugin Manager

About

An extension for BitBucket Server that adds new features to code insights and pull requests

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •