amfeng / phabricator-ruby

Wrapper around Phabricator's Conduit API
MIT License
16 stars 16 forks source link

Allow passing in Phabricator:: objects for the fields to create a task. #9

Closed jshirley closed 8 years ago

jshirley commented 8 years ago

Often times we're writing code that already has a fully initialized Project or User, so having to pass in the name adds some additional cruft to the code. This just proxies the lookup through a method that loads if it's not already the expected object.

r? @astrieanna || @amfeng

astrieanna commented 8 years ago

:+1: Wow, that's fancy! :D

rhwlo commented 8 years ago

I appreciate the stricter type-checking. :+1: