I was wondering if I can use tfs shelve set for code review and then gated check-in. The idea behind is to fix any issue in the code (if any) and then close review by submiting gate-in checking using build definition.
When I was testing this solution everything was fine, until the place when I was trying to retrieve code review details (see below)
Shelve set is deleted after successful build (that is OK for me), and all code review entries too (as that was pointing to shelve set).