From 1908ac96992e98f21df45c071b5038db3a86b461 Mon Sep 17 00:00:00 2001 From: Roberto Aloi Date: Wed, 24 Feb 2021 15:04:12 +0100 Subject: [PATCH] Add 'unapprove-on-update' to generator --- test/bec_proper_gen.erl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/bec_proper_gen.erl b/test/bec_proper_gen.erl index 4dcf482..dc710c0 100644 --- a/test/bec_proper_gen.erl +++ b/test/bec_proper_gen.erl @@ -216,13 +216,20 @@ path() -> %% PR Restrictions %%============================================================================== pr_restrictions() -> - ?LET( {MergeConfig, AllApprovers, AllTasks, Approvers, Builds} - , {merge_config(), bool(), bool(), nat(), nat()} + ?LET( { MergeConfig + , AllApprovers + , AllTasks + , Approvers + , Builds + , UnapproveOnUpdate + } + , {merge_config(), bool(), bool(), nat(), nat(), bool()} , #{ 'merge-config' => MergeConfig , 'required-all-approvers' => AllApprovers , 'required-all-tasks-complete' => AllTasks , 'required-approvers' => Approvers , 'required-successful-builds' => Builds + , 'unapprove-on-update' => UnapproveOnUpdate }). merge_config() ->