Skip to content

Commit f3a1272

Browse files
authored
Merge pull request hub4j#397 from mizoguche/set-milestone
Add GHIssue#setMilestone
2 parents 41c028d + c80b8f6 commit f3a1272

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/org/kohsuke/github/GHIssue.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ public void setBody(String body) throws IOException {
203203
edit("body",body);
204204
}
205205

206+
public void setMilestone(GHMilestone milestone) throws IOException {
207+
edit("milestone",milestone.getNumber());
208+
}
209+
206210
public void assignTo(GHUser user) throws IOException {
207211
setAssignees(user);
208212
}

0 commit comments

Comments
 (0)