Skip to content

Change DeployKeys::update method to match GitHub API #797

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

Merged
merged 4 commits into from
Jun 10, 2019

Conversation

mitchdav
Copy link

There is an inconsistency between the client and the GitHub API, where when trying to update a deploy key on a repo, the client simply calls patch, but this is not supported by the GitHub API, so a suitable workaround would instead be to call remove and then create.

I have created the pull request that provides this workaround now, and have altered the DeployKeysTest file to match.

Alternatively, to avoid deciding on this behaviour for the user, you could just remove the update method entirely, though I imagine this would be a breaking change.

Mitchell Davis added 4 commits June 10, 2019 12:42
… then create a new one, in accordance with the supported GitHub APIs
… then create a new one, in accordance with the supported GitHub APIs
# Conflicts:
#	test/Github/Tests/Api/Repository/DeployKeysTest.php
@acrobat
Copy link
Collaborator

acrobat commented Jun 10, 2019

I think we can keep this "helper" method for now! Thanks for the fix @mitchdav and congrats on your first contribution!

@acrobat acrobat merged commit e6a4997 into KnpLabs:master Jun 10, 2019
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.

2 participants