klarna / bec

The BitBucket Erlang Client
Apache License 2.0
47 stars 12 forks source link

bec_wz_pr_restriction_t does not support options from the Advanced tab. #29

Open TCampmany opened 3 years ago

TCampmany commented 3 years ago

BEC cannot set either to read when using Advanced options from the Merge configuration.

escript: exception error: no function clause matching
bec_wz_pr_restriction_t:from_map(#{<<"approvalQuotaEnabled">> => true,
<<"autoMergeEnabled">> => false,
<<"automergeUsers">> => [],
<<"deleteSourceBranch">> => false,
<<"enableNeedsWorkVeto">> => true,
<<"groupQuota">> => 0,
<<"ignoreContributingReviewersApproval">> => false,
<<"mergeCondition">> => <<"approvalCount > 1">>,
<<"mergeStrategyId">> => <<"none-inherit">>,
<<"projectKey">> => <<"xxxx">>,
<<"refName">> => <<"refs/heads/master">>,
<<"repoSlug">> => <<"xxxx">>,
<<"requiredBuildsCount">> => 0,
<<"requiredSignaturesCount">> => 0,
<<"srcRefName">> => <<>>,
<<"watchBuildResult">> => false,
<<"watchTaskCompletion">> => false})