File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ protected void wrapUp(GHMilestone[] page) {
655
655
public GHMilestone getMilestone (int number ) throws IOException {
656
656
GHMilestone m = milestones .get (number );
657
657
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 );
659
659
m .owner = this ;
660
660
m .root = root ;
661
661
milestones .put (m .getNumber (), m );
@@ -665,7 +665,7 @@ public GHMilestone getMilestone(int number) throws IOException {
665
665
666
666
public GHMilestone createMilestone (String title , String description ) throws IOException {
667
667
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 );
669
669
}
670
670
671
671
@ Override
You can’t perform that action at this time.
0 commit comments