Skip to content

Commit 56aa4b3

Browse files
hub4j#1965 Adding delete method
1 parent 768c715 commit 56aa4b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/org/kohsuke/github/GHDeployment.java

+10
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,16 @@ public String getSha() {
194194
return sha;
195195
}
196196

197+
/**
198+
* Deletes this deployment.
199+
*
200+
* @throws IOException
201+
* the io exception
202+
*/
203+
public void delete() throws IOException {
204+
root().createRequest().method("DELETE").withUrlPath(owner.getApiTailUrl("deployments/" + getId())).send();
205+
}
206+
197207
/**
198208
* Create status gh deployment status builder.
199209
*

0 commit comments

Comments
 (0)