Page MenuHomePhabricator

How can I use conduit to get the last commit messages for a specific branch in a specific repo?
Closed, ResolvedPublic

Asked by mahmoud.abdelfattah on Jan 24 2017, 7:43 AM.

Details

I used "https://careem.phacility.com/api/diffusion.getrecentcommitsbypath" and it worked fine and returned lit of commit ids, when I try to query "https://careem.phacility.com/api/differential.getcommitmessage"... It does not work and return this error

"Expected a numeric scalar or null for %Ld conversion. Query: r.id IN (%Ld)"

Answers

avivey
Updated 2,649 Days Ago

Try diffusion.historyquery:

$ curl https://secure.phabricator.com/api/diffusion.historyquery \
    -d api.token=<api-token> \
    -d commit=master \
    -d limit=1 \
    -d repository=P

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.