(ctx context.Context, name string, detailed bool)
| 331 | } |
| 332 | |
| 333 | func (s *sqlDatabase) GetGithubCredentialsByName(ctx context.Context, name string, detailed bool) (params.ForgeCredentials, error) { |
| 334 | creds, err := s.getGithubCredentialsByName(ctx, s.conn, name, detailed) |
| 335 | if err != nil { |
| 336 | return params.ForgeCredentials{}, fmt.Errorf("error fetching github credentials: %w", err) |
| 337 | } |
| 338 | return s.sqlToCommonForgeCredentials(creds) |
| 339 | } |
| 340 | |
| 341 | func (s *sqlDatabase) GetGithubCredentials(ctx context.Context, id uint, detailed bool) (params.ForgeCredentials, error) { |
| 342 | var creds GithubCredentials |
nothing calls this directly
no test coverage detected