mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-12 15:50:06 +00:00
Compare commits
3 Commits
github-api
...
github-api
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a395697980 | ||
|
|
834a6eb865 | ||
|
|
e1c6927fd8 |
2
pom.xml
2
pom.xml
@@ -7,7 +7,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>github-api</artifactId>
|
<artifactId>github-api</artifactId>
|
||||||
<version>1.13</version>
|
<version>1.14</version>
|
||||||
<name>GitHub API for Java</name>
|
<name>GitHub API for Java</name>
|
||||||
<url>http://github-api.kohsuke.org/</url>
|
<url>http://github-api.kohsuke.org/</url>
|
||||||
<description>GitHub API for Java</description>
|
<description>GitHub API for Java</description>
|
||||||
|
|||||||
@@ -190,9 +190,9 @@ public class GHRepository {
|
|||||||
public void setEmailServiceHook(String address) throws IOException {
|
public void setEmailServiceHook(String address) throws IOException {
|
||||||
WebClient wc = root.createWebClient();
|
WebClient wc = root.createWebClient();
|
||||||
HtmlPage pg = (HtmlPage)wc.getPage(getUrl()+"/admin");
|
HtmlPage pg = (HtmlPage)wc.getPage(getUrl()+"/admin");
|
||||||
HtmlInput email = (HtmlInput)pg.getElementById("Email_address");
|
HtmlInput email = (HtmlInput)pg.getElementById("email_address");
|
||||||
email.setValueAttribute(address);
|
email.setValueAttribute(address);
|
||||||
HtmlCheckBoxInput active = (HtmlCheckBoxInput)pg.getElementById("Email[active]");
|
HtmlCheckBoxInput active = (HtmlCheckBoxInput)pg.getElementById("email[active]");
|
||||||
active.setChecked(true);
|
active.setChecked(true);
|
||||||
|
|
||||||
final HtmlForm f = email.getEnclosingFormOrDie();
|
final HtmlForm f = email.getEnclosingFormOrDie();
|
||||||
|
|||||||
Reference in New Issue
Block a user