Hi
How do I determine what the current value of “Minimum Approvals” merge check from the code inside a merge check plugin?
I tried this:
public RepositoryHookResult preUpdate(@Nonnull PreRepositoryHookContext context,
@Nonnull PullRequestMergeHookRequest request) {
int requiredApprovals = context.getSettings().getInt("approvals", 0);
log.info("settings: " + context.getSettings().asMap() );
The ‘Settings’ map is always empty.
Thanks