Skip to content

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