Skip to content

Deployments: added missing 'delete deployment' endpoint - #991

Merged
acrobat merged 5 commits into
KnpLabs:2.xfrom
clxmstaab:delete-deployment
Apr 7, 2021
Merged

Deployments: added missing 'delete deployment' endpoint#991
acrobat merged 5 commits into
KnpLabs:2.xfrom
clxmstaab:delete-deployment

Conversation

@clxmstaab

@clxmstaab clxmstaab commented Mar 29, 2021

Copy link
Copy Markdown
Contributor

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

staabm commented Mar 31, 2021

Copy link
Copy Markdown
Contributor

Test incoming

@acrobat acrobat left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor Author

docs added

Comment thread test/Github/Tests/Api/DeploymentTest.php
Comment thread lib/Github/Api/Deployment.php Outdated
@acrobat
acrobat merged commit 4fa7f3e into KnpLabs:2.x Apr 7, 2021
@acrobat

acrobat commented Apr 7, 2021

Copy link
Copy Markdown
Collaborator

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

staabm commented Apr 14, 2021

Copy link
Copy Markdown
Contributor

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

@acrobat

acrobat commented Apr 16, 2021

Copy link
Copy Markdown
Collaborator

@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