Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Deployment API - For Review #174

Merged
merged 8 commits into from
Mar 28, 2015
Merged

Conversation

ericduran
Copy link
Contributor

This is still a work in progress but I figure I'll open up this PR now for comments, reviews, concern, etc..

public function all($username, $repository, array $params = array())
{
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments', array(),
['Accept' => 'application/vnd.github.cannonball-preview+json']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should not use the short array syntax, as it is not compatible with PHP 5.3

@Nek-
Copy link
Contributor

Nek- commented Sep 3, 2014

Thank you for contribution :) .

But this PR is missing for:

  • Unit tests (5.4 array will fail on testing because we test also with php 5.3)
  • docblocks (and @link docblock to be more precise)

@lol768
Copy link

lol768 commented Feb 12, 2015

@ericduran Are you open to contributions to this PR? Would be happy to look into submitting a PR or two to https://github.com/ericduran/php-github-api/tree/deploymentapi in order to add some unit tests.

@ericduran
Copy link
Contributor Author

@lol768 sure, I'm getting back into this next week so if you can get to it before me awesome :) currently distracted with the status api. Ha.

@lol768
Copy link

lol768 commented Feb 20, 2015

@ericduran Awesome! I've opened a PR to your fork over here, let me know your thoughts there. The status API does look pretty neat.

Edit: merged. @pilot Any thoughts on this?

@ericduran
Copy link
Contributor Author

@lol768 ha just updated to the latest master it already has the status api, looking at the PR now.

@ericduran
Copy link
Contributor Author

@lol768 Ha, thanks for all that clean up and well everything. So we can keep the same PR and the conversation going I just went ahead and added you as a collab on my repo so if you need to make more changes based on any feedback you can just do that without requiring me to just merge PRs.

That being said this looks pretty good 👍

@Nek- thoughts? Would you like the commits cleans up? or is that fine? I like keeping the history since there are multiple contributors here.

@stof
Copy link
Contributor

stof commented Feb 23, 2015

@ericduran if you want to squash commits to clean the history, only squash commits which belong to the same author. Don't squash together commits with different authorship

@lol768
Copy link

lol768 commented Mar 4, 2015

Merge conflicts resolved. Given other PRs have been pulled with multiple commits, I'm not sure there's a lot to be gained by squashing everything. If it becomes apparent that squashing the commits is necessary for the PR to be pulled, this can be looked into.

At this stage it'd be nice to hear some thoughts about whether the PR can be pulled and if not, what can be done to get it to the stage where it is ready to be pulled.

public function shouldCreateDeployment()
{
$api = $this->getApiMock();
$deploymentData = array("ref" => "fd6a5f9e5a430dddae8d6a8ea378f913d3a766f9");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use single quotes

@lol768
Copy link

lol768 commented Mar 27, 2015

Updated per commit line comment.

pilot added a commit that referenced this pull request Mar 28, 2015
Adding Deployment API - For Review
@pilot pilot merged commit d561376 into KnpLabs:master Mar 28, 2015
@lol768
Copy link

lol768 commented Mar 28, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants