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 b17f506

Browse filesBrowse files
committed
clean up
1 parent 7f15f12 commit b17f506
Copy full SHA for b17f506

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ protected void wrapUp(GHMilestone[] page) {
655655
public GHMilestone getMilestone(int number) throws IOException {
656656
GHMilestone m = milestones.get(number);
657657
if (m == null) {
658-
m = root.retrieve().to("/repos/" + owner.login + "/" + name + "/milestones/" + number, GHMilestone.class);
658+
m = root.retrieve().to(getApiTailUrl("milestones/" + number), GHMilestone.class);
659659
m.owner = this;
660660
m.root = root;
661661
milestones.put(m.getNumber(), m);
@@ -665,7 +665,7 @@ public GHMilestone getMilestone(int number) throws IOException {
665665

666666
public GHMilestone createMilestone(String title, String description) throws IOException {
667667
return new Requester(root)
668-
.with("title", title).with("description", description).method("POST").to("/repos/" + owner.login + "/" + name + "/milestones", GHMilestone.class).wrap(this);
668+
.with("title", title).with("description", description).method("POST").to(getApiTailUrl("milestones"), GHMilestone.class).wrap(this);
669669
}
670670

671671
@Override

0 commit comments

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