ListDeployKeys returns all deploy keys by given repository ID.
(repoID int64)
| 786 | |
| 787 | // ListDeployKeys returns all deploy keys by given repository ID. |
| 788 | func ListDeployKeys(repoID int64) ([]*DeployKey, error) { |
| 789 | keys := make([]*DeployKey, 0, 5) |
| 790 | return keys, x.Where("repo_id = ?", repoID).Find(&keys) |
| 791 | } |
no test coverage detected