Basic checks plugins

Flowie also provides the same Bitbucket basic checks.

ts
import {configure} from "flowie.app"
 
import {
noChangesRequested,
noUnresolvedTasks,
minimumBuilds,
minimumApprovals,
minimumApprovalsDefaultReviewers,
maximumCommitsBehind,
} from "flowie.app/plugins"
 
// Hoover plugins below for more info
configure({
plugins: [
noChangesRequested(),
noUnresolvedTasks(),
minimumBuilds(1),
minimumApprovals(2),
minimumApprovalsDefaultReviewers(2),
maximumCommitsBehind(2),
],
})

Additional functionality

In addition to the standard functionality from merge checks, Flowie approvals checks also provides additional configurations:

Count authors approval BETA

By default, the author’s approval does not count towards the required approvals, but you change this behavior using countAuthorApproval

ts
import {configure} from "flowie.app"
 
import {minimumApprovals} from "flowie.app/plugins"
 
configure({
plugins: [minimumApprovals({require: 2, countAuthorApproval: true})],
})

Require all reviewers BETA

You can also require that any reviewers added to the pull request have to approve it using the requireAllReviewers.

In the example below, it requires at least two approvals, one optionally being from the author. However, if a third reviewer is added, it will require their approval as well.

ts
import {configure} from "flowie.app"
 
import {minimumApprovals} from "flowie.app/plugins"
 
configure({
plugins: [
minimumApprovals({
require: 2,
countAuthorApproval: true,
requireAllReviewers: true,
}),
],
})
Further reference

BCLOUD-21293, BCLOUD-14510