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 infoconfigure ({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
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
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,}),],})
Build checks customization NEW
By default, minimumBuilds
will check for the minimum passing, no pending and no failed builds.
However, you can enable or disable these checks individually:
ts
import {configure } from "flowie.app"import {minimumBuilds } from "flowie.app/plugins"configure ({plugins : [minimumBuilds ({require : 1,// Will not check for failed buildsnoFailed : false,noPending : true,}),],})
Also,
note that when 0
is specified for minimum required builds, it turns of all the checks by default.