We are building a custom extension for Phabricator hosted git repos and we could really use the git clone url for each repo.
Right now a repo object looks like this ( source ):
[...] "5": { "id": "5", "name": "Phabricator", "phid": "PHID-REPO-9a38b7db1b795ae3e348", "callsign": "P", "monogram": "rP", "vcs": "git", "uri": "https:\/\/secure.phabricator.com\/diffusion\/P\/", "remoteURI": "git:\/\/github.com\/facebook\/phabricator.git", "description": null, "isActive": true, "isHosted": true, "isImporting": false }, [...]
And a git clone url looks like this ( source ):
ssh://dweller@secure.phabricator.com/diffusion/P/phabricator.git
I suggest to add the git clone url to the repo object. Something like this:
[...] "5": { "id": "5", "name": "Phabricator", "phid": "PHID-REPO-9a38b7db1b795ae3e348", "callsign": "P", "monogram": "rP", "vcs": "git", "uri": "https:\/\/secure.phabricator.com\/diffusion\/P\/", "remoteURI": "git:\/\/github.com\/facebook\/phabricator.git", "description": null, "isActive": true, "isHosted": true, "isImporting": false, "checkout":{ "ssh": "ssh://dweller@secure.phabricator.com/diffusion/P/phabricator.git", "http": "https://secure.phabricator.com/diffusion/P/phabricator.git" } }, [...]