Hi,

If you access /api/review-requests/?commit-id=<your_commit_ID>, you should
get a list of commit IDs that match. This may return multiple entries (if
the same commit ID happens to be used on multiple repositories). If you
know the numeric repository ID, you can filter that down to at most one
result by doing
/api/review-requests/?commit-id=<your_commit_ID>&repoistory=<repository_id>

Christian

On Thu, Dec 9, 2021 at 12:44 AM 'liudaolunhuibl' via Review Board Community
<[email protected]> wrote:

> I know I can use / API / review requests / review_ ID to query the
> information of the review request according to the ID, but my current
> scenario is that if the status of this review request is not 'submitted'
> and it is not allowed to push to the GIT warehouse, I plan to use the GIT
> hook function to implement it, but I can't get the ID of this review
> request in the GIT hook function, so I can only get the commit ID, So I
> need an interface that can get the review request status according to the
> commit ID. does this interface exist?
>
> --
> 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
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/394fc674-fe80-4e61-9045-e5d921f23eddn%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/394fc674-fe80-4e61-9045-e5d921f23eddn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAE7VndkR28g_q7TaiNMf-KFo4hL239-0sp0dKjCoE8qxo-p3uA%40mail.gmail.com.

Reply via email to