DeleteUserMigration will delete a previous migration archive. id is the migration ID. GitHub API docs: https://docs.github.com/rest/migrations/users?apiVersion=2022-11-28#delete-a-user-migration-archive meta:operation DELETE /user/migrations/{migration_id}/archive
(ctx context.Context, id int64)
| 191 | // |
| 192 | //meta:operation DELETE /user/migrations/{migration_id}/archive |
| 193 | func (s *MigrationService) DeleteUserMigration(ctx context.Context, id int64) (*Response, error) { |
| 194 | url := fmt.Sprintf("user/migrations/%v/archive", id) |
| 195 | |
| 196 | req, err := s.client.NewRequest(ctx, "DELETE", url, nil) |
| 197 | if err != nil { |
| 198 | return nil, err |
| 199 | } |
| 200 | |
| 201 | req.Header.Set("Accept", mediaTypeMigrationsPreview) |
| 202 | |
| 203 | return s.client.Do(req, nil) |
| 204 | } |
| 205 | |
| 206 | // UnlockUserRepo will unlock a repo that was locked for migration. |
| 207 | // id is migration ID. |