workflows: Release Workflow - Avoid selecting random reviewers when no phab review
commit560efad701709cc57021ccb14f91a012c5e835d3
authorTom Stellard <tstellar@redhat.com>
Tue, 2 Aug 2022 16:35:36 +0000 (2 16:35 +0000)
committerTom Stellard <tstellar@redhat.com>
Tue, 2 Aug 2022 21:07:22 +0000 (2 14:07 -0700)
treeecbb96e80d072836c304d9ae68ef0d2981b1116c
parent577840bc7a29c4e01062fd2ed9c87dc381c44b20
workflows: Release Workflow - Avoid selecting random reviewers when no phab review

If you pass a NULL reivew ID to the differential.revision.search API,
it returns all revisions and we were just taking the first one and
assuming it was associated with the commit in the PR.

We need to exit early if we can't find a Phabricator review associated
with a commit.
llvm/utils/git/github-automation.py