constuctor(gh-repos-repo): set slots NAME, OWNER from arg NEWNAME #17

Merged
merged 1 commit into from Dec 30, 2012

Conversation

Projects
None yet
2 participants
Contributor

tarsius commented Dec 25, 2012

Set slot NAME and OWNER from the constructor argument NEWNAME if that
has the from "/". Actually, if the new slot FULL-NAME is
set in the constructor arguments use that instead.

This allows writing less to get an gh-repos-repo object suitable for
any api request. Instead of

(gh-repos-repo "repo" :name "<NAME>"
               :owner (gh-user "owner" :login "<OWNER>"))

which is to long, simply

(gh-repos-repo "repo" :full-name "<OWNER>/<NAME>")

or even

(gh-repos-repo "<OWNER>/<NAME>")

can be used now.

@tarsius tarsius constuctor(gh-repos-repo): set slots NAME, OWNER from arg NEWNAME
Set slot NAME and OWNER from the constructor argument NEWNAME if that
has the from "<OWNER>/<NAME>".  Actually, if the new slot FULL-NAME is
set in the constructor arguments use that instead.

This allows writing less to get an gh-repos-repo object suitable for
any api request.  Instead of

  (gh-repos-repo "repo" :name "<NAME>"
                 :owner (gh-user "owner" :login "<OWNER>"))

which is to long, simply

  (gh-repos-repo "repo" :full-name "<OWNER>/<NAME>")

or even

  (gh-repos-repo "<OWNER>/<NAME>")

can be used now.
9c584dd

sigma merged commit 9c584dd into sigma:master Dec 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment