Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Gastaldi2019-03-14 11:29:54 -0400
committerMichael Keppler2019-03-23 04:45:53 -0400
commite9a4057a0cb71f9e659d88f82e6b24e98f74218d (patch)
tree04bb777968ac4814562c4125437d41dbb9d18586
parentec22d54e95654cd234e7e19949a1466e97ebaef3 (diff)
downloadegit-github-e9a4057a0cb71f9e659d88f82e6b24e98f74218d.tar.gz
egit-github-e9a4057a0cb71f9e659d88f82e6b24e98f74218d.tar.xz
egit-github-e9a4057a0cb71f9e659d88f82e6b24e98f74218d.zip
Add RepositoryService#deleteRepository
Change-Id: Ic71e5e89dc763f22a604dbdc3779fd9f1b05d711 Signed-off-by: George Gastaldi <gegastaldi@gmail.com>
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/RepositoryService.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/RepositoryService.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/RepositoryService.java
index f9dad445..90216013 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/RepositoryService.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/RepositoryService.java
@@ -784,6 +784,20 @@ public class RepositoryService extends GitHubService {
}
/**
+ * Delete repository
+ *
+ * @param repository
+ * @throws IOException
+ */
+ public void deleteRepository(IRepositoryIdProvider repository)
+ throws IOException {
+ String id = getId(repository);
+ StringBuilder uri = new StringBuilder(SEGMENT_REPOS);
+ uri.append('/').append(id);
+ client.delete(uri.toString());
+ }
+
+ /**
* Get languages used in given repository
*
* @param repository

Back to the top