Repository navigation
Added delete support to the Github/Api/Repo - #10
Conversation
|
Thanks, but to be consistent with other changes this method should be renamed to: ps. It's null because GH doesn't return any content in response (only headers with statuses, in this case 204 if successful), but I'm working on way how to handle this nicely. |
|
Will correct later on today. |
|
You mean not implement the function remove at all and use the AbstractApi delete ? Cheked that but the "problem" is the conistency as delete need the full repo url as param, where in other funcions in repo you have to set username and repo name in 2 diff params |
|
@dmtrs You should rename this function you have added from: And mocking is for "hiding" (not calling real API) real calls behind mock. Please look how it's implemented already in tests. |
Added delete support to the Github/Api/Repo
First of all, I was a little bit confused that although in the docs the
Repo::delete('user','repo)was mentioned I could not find it in the object.Secondly, response is
nullor I am doing something wrong.