(repo *tasks.GithubApiRepo, connectionId uint64)
| 331 | } |
| 332 | |
| 333 | func convertApiRepoToScope(repo *tasks.GithubApiRepo, connectionId uint64) *models.GithubRepo { |
| 334 | var scope models.GithubRepo |
| 335 | scope.ConnectionId = connectionId |
| 336 | scope.GithubId = repo.GithubId |
| 337 | scope.CreatedDate = repo.CreatedAt.ToNullableTime() |
| 338 | scope.Language = repo.Language |
| 339 | scope.Description = repo.Description |
| 340 | scope.HTMLUrl = repo.HTMLUrl |
| 341 | scope.Name = repo.Name |
| 342 | scope.FullName = repo.FullName |
| 343 | scope.CloneUrl = repo.CloneUrl |
| 344 | return &scope |
| 345 | } |
| 346 | |
| 347 | func replaceAcessTokenInUrl(gitURL, newCredential string) (string, errors.Error) { |
| 348 | atIndex := strings.Index(gitURL, "@") |
no test coverage detected