Commit graph

5 commits

Author SHA1 Message Date
Thomas Stringer
14ea447010
Fix newline for denied (#22)
This was originally fixed for approved in #12 but the denied case was
missing. This adds a failing test and the fix for it.
2022-06-29 20:54:06 -04:00
Thomas Stringer
75c263a9f8
Fix bug with not accepting newlines (#12)
Prior to this PR, if there was a newline (or multiple newline
characters) at the end of the keyword then it wouldn't match. With this
fix any number of newlines at the end of the keyword match will now be
considered for approve or deny.
2022-05-25 19:47:51 -04:00
Edmund Dipple
4d12fc4297
Set minimum approvals (#1)
* Allow approval of a worflow with a set number of approvals

* update action interface

* Added test for when not enough approvals have been registered and minimumApprovals is set

* Warning raised by invalid minimumApprovals value should be an error

* update new input name to use hyphens

* Input env variable does in fact contain hyphens
2022-04-05 09:05:47 -04:00
Thomas Stringer
a55d8b93fb add flexible accepted keywords 2022-03-26 09:39:58 -04:00
Thomas Stringer
80c1360591 initial commit 2022-03-24 20:41:13 -04:00