@@ -109,7 +109,6 @@ func (s *MigrationService) StartMigration(ctx context.Context, org string, repos
109109 return nil , nil , err
110110 }
111111
112- // TODO: remove custom Accept header when this API fully launches.
113112 req .Header .Set ("Accept" , mediaTypeMigrationsPreview )
114113
115114 m := & Migration {}
@@ -138,7 +137,6 @@ func (s *MigrationService) ListMigrations(ctx context.Context, org string, opts
138137 return nil , nil , err
139138 }
140139
141- // TODO: remove custom Accept header when this API fully launches.
142140 req .Header .Set ("Accept" , mediaTypeMigrationsPreview )
143141
144142 var m []* Migration
@@ -164,7 +162,6 @@ func (s *MigrationService) MigrationStatus(ctx context.Context, org string, id i
164162 return nil , nil , err
165163 }
166164
167- // TODO: remove custom Accept header when this API fully launches.
168165 req .Header .Set ("Accept" , mediaTypeMigrationsPreview )
169166
170167 m := & Migration {}
@@ -190,7 +187,6 @@ func (s *MigrationService) MigrationArchiveURL(ctx context.Context, org string,
190187 return "" , err
191188 }
192189
193- // TODO: remove custom Accept header when this API fully launches.
194190 req .Header .Set ("Accept" , mediaTypeMigrationsPreview )
195191
196192 s .client .clientMu .Lock ()
@@ -229,7 +225,6 @@ func (s *MigrationService) DeleteMigration(ctx context.Context, org string, id i
229225 return nil , err
230226 }
231227
232- // TODO: remove custom Accept header when this API fully launches.
233228 req .Header .Set ("Accept" , mediaTypeMigrationsPreview )
234229
235230 return s .client .Do (ctx , req , nil )
@@ -251,7 +246,6 @@ func (s *MigrationService) UnlockRepo(ctx context.Context, org string, id int64,
251246 return nil , err
252247 }
253248
254- // TODO: remove custom Accept header when this API fully launches.
255249 req .Header .Set ("Accept" , mediaTypeMigrationsPreview )
256250
257251 return s .client .Do (ctx , req , nil )
0 commit comments