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 defcd6f

Browse filesBrowse files
committed
Merge pull request hub4j#217 from dblevins/closed_at
Support Milestone closed_at date
2 parents adaa8ec + 025b6cb commit defcd6f
Copy full SHA for defcd6f

File tree

Expand file treeCollapse file tree

1 file changed

+9
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHMilestone.java
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class GHMilestone extends GHObject {
1717
GHUser creator;
1818
private String state, due_on, title, description, html_url;
1919
private int closed_issues, open_issues, number;
20+
protected String closed_at;
2021

2122
public GitHub getRoot() {
2223
return root;
@@ -34,7 +35,14 @@ public Date getDueOn() {
3435
if (due_on == null) return null;
3536
return GitHub.parseDate(due_on);
3637
}
37-
38+
39+
/**
40+
* When was this milestone closed?
41+
*/
42+
public Date getClosedAt() throws IOException {
43+
return GitHub.parseDate(closed_at);
44+
}
45+
3846
public String getTitle() {
3947
return title;
4048
}

0 commit comments

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