Skip to content

Commit

Permalink
hub4j#1965 Adding delete method
Browse files Browse the repository at this point in the history
  • Loading branch information
sbouchexbellomie-Philips committed Oct 3, 2024
1 parent 768c715 commit 56aa4b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/kohsuke/github/GHDeployment.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,16 @@ public String getSha() {
return sha;
}

/**
* Deletes this deployment.
*
* @throws IOException
* the io exception
*/
public void delete() throws IOException {
root().createRequest().method("DELETE").withUrlPath(owner.getApiTailUrl("deployments/" + getId())).send();
}

/**
* Create status gh deployment status builder.
*
Expand Down

0 comments on commit 56aa4b3

Please sign in to comment.