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

Deployments: added missing 'delete deployment' endpoint #991

Merged
merged 5 commits into from
Apr 7, 2021

Conversation

clxmstaab
Copy link
Contributor

@clxmstaab clxmstaab commented Mar 29, 2021

this api endpoint was missing completely from the client. this is the only missing feature in 2.x for me, so it would be really cool this could be merged into 2.x.

my php constraints do not allow me to update to 3.x yet.

this PR added the endpoint as described in https://docs.github.com/en/rest/reference/repos#delete-a-deployment

@staabm
Copy link
Contributor

staabm commented Mar 31, 2021

Test incoming

Copy link
Collaborator

@acrobat acrobat left a comment

Choose a reason for hiding this comment

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

Can you add a docs entry for this endpoint? Otherwise the pr is good to go!

acrobat pushed a commit that referenced this pull request Apr 4, 2021
…bat)

This PR was squashed before being merged into the 2.x branch.

Discussion
----------

fixes
```
Warning: Illegal string offset 'code' in GithubExceptionThrower.php on line 59
```
when deleting a deployment which is not yet set to inactive, see #991

I guess the warning beeing fixed is not explicitly related to the new endpoint added in #991 but I experienced it in this case.

Commits
-------

2afb40c fixed php warning in GithubExceptionThrower
2b35311 added testcase
a54c223 Update lib/Github/HttpClient/Plugin/GithubExceptionThrower.php
e000f00 Update GithubExceptionThrower.php
0e0265f fix CS
1ae94ab Improve single message errors and testcase
@clxmstaab
Copy link
Contributor Author

docs added

lib/Github/Api/Deployment.php Outdated Show resolved Hide resolved
@acrobat acrobat merged commit 4fa7f3e into KnpLabs:2.x Apr 7, 2021
@acrobat
Copy link
Collaborator

acrobat commented Apr 7, 2021

Thank you @clxmstaab

acrobat added a commit that referenced this pull request Apr 7, 2021
* 2.x:
  Bump 2.x branch alias
  feature #991 Deployments: added missing 'delete deployment' endpoint (clxmstaab)
@clxmstaab clxmstaab deleted the delete-deployment branch April 7, 2021 09:46
@staabm
Copy link
Contributor

staabm commented Apr 14, 2021

@acrobat thx for merging. do you have plans for a new release ?

@acrobat
Copy link
Collaborator

acrobat commented Apr 16, 2021

@staabm I've released 2.20.0, enjoy!

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.

3 participants