mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
fixed a bug in editing the repository definition
This commit is contained in:
@@ -270,8 +270,11 @@ public class GHRepository {
|
||||
}
|
||||
|
||||
private void edit(String key, String value) throws IOException {
|
||||
new Poster(root).withCredential().with(key,value)
|
||||
.to("/repos/" + owner.login + "/" + name,null,"PATCH");
|
||||
Poster poster = new Poster(root).withCredential();
|
||||
if (!key.equals("name"))
|
||||
poster.with("name",name); // even when we don't change the name, we need to send it in
|
||||
poster.with(key, value)
|
||||
.to("/repos/" + owner.login + "/" + name, null, "PATCH");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user