Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ce14046

Browse filesBrowse files
committed
[hub4j#269] Add reopen method on GHMilestone
1 parent d30b040 commit ce14046
Copy full SHA for ce14046

File tree

Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed

‎src/main/java/org/kohsuke/github/GHMilestone.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHMilestone.java
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,19 @@ public GHMilestoneState getState() {
7272
}
7373

7474
/**
75-
* Closes this issue.
75+
* Closes this milestone.
7676
*/
7777
public void close() throws IOException {
7878
edit("state", "closed");
7979
}
8080

81+
/**
82+
* Reopens this milestone.
83+
*/
84+
public void reopen() throws IOException {
85+
edit("state", "open");
86+
}
87+
8188
private void edit(String key, Object value) throws IOException {
8289
new Requester(root)._with(key, value).method("PATCH").to(getApiRoute());
8390
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.