John,

I'd suggest making use of the "approval" state. This is available through
the API, and can be checked by a pre-commit hook. An example hook for git
can be found at
https://github.com/reviewboard/rbtools/blob/master/contrib/tools/git-hook-check-approval

By default, a review request is "approved" if there's at least one "Ship
It" and no open issues. That logic can be changed by creating an extension
that uses the ReviewRequestApprovalHook:
https://www.reviewboard.org/docs/manual/2.5/extending/extensions/hooks/review-request-approval-hook/

If you choose to do it through some other mechanism, I'd highly recommend
making use of the API rather than trying to query the database directly.

-David



On Thu, Feb 18, 2016 at 2:23 AM john levin <smart.le...@gmail.com> wrote:

> Hello,
>
> I'm pretty new to ReviewBoard. The Motive of us to Create a Pre-commit
> hook and block users whose review havent approved.
> So is this possible to connect ReviewBoard DB in backend ? So that we can
> give query and make a check in pre-commit hooks.
> Or any other way to achieve this ?
>
> /BR
> John
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-David

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to