No unresolved comments plugin

This plugin adds a merge check that requires all comments to be resolved before merging.

Unresolved checks

It will show the unresolved comments and allow you to easily navigate on the pull request by clicking on them.

In order to enable it, use the following config:

ts
import {configure} from "flowie.app"
import {noUnresolvedComments} from "flowie.app/plugins"
 
configure({
plugins: [noUnresolvedComments()],
})

Restricting who can resolve comments

By default, anyone can resolve comments. However, you can specify who should be able to resolve the comments in order for the check to pass, using the allowResolve option.

ts
import {configure} from "flowie.app"
import {noUnresolvedComments} from "flowie.app/plugins"
 
configure({
plugins: [noUnresolvedComments({allowResolve: ["@owner"]})],
})
Pending comments

The @owner is a special value that refers to the user who made the initial comment. When someone else resolves the comment, it will then have to be accepted by someone else in the allowResolve list.

In this example, Sarah has resolved a comment made by John, so in order for the check to pass, John(the owner) has to click on ‘Accept’.

You can also use groups to specify who should be able to accept comments:

ts
import {configure} from "flowie.app"
import {noUnresolvedComments} from "flowie.app/plugins"
 
configure({
plugins: [
noUnresolvedComments({
allowResolve: ["@owner", "Team leaders"],
}),
],
})