UserMigrationStatus gets the status of a specific migration archive. id is the migration ID. GitHub API docs: https://docs.github.com/rest/migrations/users?apiVersion=2022-11-28#get-a-user-migration-status meta:operation GET /user/migrations/{migration_id}
(ctx context.Context, id int64)
| 130 | // |
| 131 | //meta:operation GET /user/migrations/{migration_id} |
| 132 | func (s *MigrationService) UserMigrationStatus(ctx context.Context, id int64) (*UserMigration, *Response, error) { |
| 133 | u := fmt.Sprintf("user/migrations/%v", id) |
| 134 | |
| 135 | req, err := s.client.NewRequest(ctx, "GET", u, nil) |
| 136 | if err != nil { |
| 137 | return nil, nil, err |
| 138 | } |
| 139 | |
| 140 | req.Header.Set("Accept", mediaTypeMigrationsPreview) |
| 141 | |
| 142 | var m *UserMigration |
| 143 | resp, err := s.client.Do(req, &m) |
| 144 | if err != nil { |
| 145 | return nil, resp, err |
| 146 | } |
| 147 | |
| 148 | return m, resp, nil |
| 149 | } |
| 150 | |
| 151 | // UserMigrationArchiveURL gets the URL for a specific migration archive. |
| 152 | // id is the migration ID. |