Reputation: 1281
Using the phabricator API (authenticated through an API key), how does one programmatically assign a user to review a diff?
Upvotes: 0
Views: 439
Reputation: 4606
You need to use the differential.revision.edit
api call. Additionally you'll probably need to use differential.revision.search
and user.search
or phid.lookup
to get the PHIDs of the diff and user objects.
echo '{
"update": "PHID-OF-DIFF-GOES-HERE"
"type": "reviewers.add",
"value": ["PHID-OF-USER-GOES-HERE"]
}' | arc call-conduit --conduit-uri $PHABRICATOR_SERVER_URL --conduit-token $API_TOKEN differential.revision.edit
Upvotes: 1