@@ -29,13 +29,13 @@ class MilestoneMigrator {
29
29
30
30
private final ProcessRunner processRunner ;
31
31
32
- private final String ghRepo ;
32
+ private final String ghOrgRepo ;
33
33
34
34
private final MilestoneIssueReassigner milestoneIssueReassigner ;
35
35
36
36
MilestoneMigrator (ProcessRunner processRunner , String ghRepo , MilestoneIssueReassigner milestoneIssueReassigner ) {
37
37
this .processRunner = processRunner ;
38
- this .ghRepo = ghRepo ;
38
+ this .ghOrgRepo = ghRepo ;
39
39
this .milestoneIssueReassigner = milestoneIssueReassigner ;
40
40
}
41
41
@@ -88,8 +88,8 @@ private MilestoneWithDeadline reassignIssues(String refName, Milestone genericMi
88
88
return milestoneIssueReassigner .reassignIssues (concreteMilestone , refName , closedIssues , openIssues );
89
89
}
90
90
91
- private Milestone findMilestone (String title ) {
92
- List <String > lines = processRunner .run ("gh" , "api" , "/repos/" + ghRepo + "/milestones" , "--jq" ,
91
+ Milestone findMilestone (String title ) {
92
+ List <String > lines = processRunner .run ("gh" , "api" , "/repos/" + ghOrgRepo + "/milestones" , "--jq" ,
93
93
String .format (".[] | select(.title == \" %s\" ) | {number: .number, title: .title}" , title ));
94
94
if (lines .isEmpty ()) {
95
95
throw new IllegalStateException ("No response from gh cli for version <" + title + ">" );
@@ -106,7 +106,7 @@ private Milestone findMilestone(String title) {
106
106
107
107
private List <Issue > getIssuesForMilestone (int milestoneNumber ) {
108
108
List <String > lines = processRunner .run ("gh" , "api" ,
109
- String .format ("/repos/%s/issues?milestone=%d&state=all" , ghRepo , milestoneNumber ), "--jq" ,
109
+ String .format ("/repos/%s/issues?milestone=%d&state=all" , ghOrgRepo , milestoneNumber ), "--jq" ,
110
110
".[] | {number: .number, state: .state}" );
111
111
List <Issue > issues = new ArrayList <>();
112
112
for (String line : lines ) {
0 commit comments