(ctx context.Context, remote string)
| 386 | } |
| 387 | |
| 388 | func (c *connection) FindProjectsByGitRemote(ctx context.Context, remote string) ([]*database.Project, error) { |
| 389 | var res []*projectDTO |
| 390 | err := c.getDB(ctx).SelectContext(ctx, &res, "SELECT p.* FROM projects p WHERE lower(p.git_remote)=lower($1)", remote) |
| 391 | if err != nil { |
| 392 | return nil, parseErr("projects", err) |
| 393 | } |
| 394 | return c.projectsFromDTOs(res) |
| 395 | } |
| 396 | |
| 397 | func (c *connection) FindProjectsByGithubInstallationID(ctx context.Context, id int64) ([]*database.Project, error) { |
| 398 | var res []*projectDTO |
nothing calls this directly
no test coverage detected