IsStaring checks if user has starred given repository.
(userID, repoID int64)
| 2500 | |
| 2501 | // IsStaring checks if user has starred given repository. |
| 2502 | func IsStaring(userID, repoID int64) bool { |
| 2503 | has, _ := x.Get(&Star{0, userID, repoID}) |
| 2504 | return has |
| 2505 | } |
| 2506 | |
| 2507 | func (r *Repository) GetStargazers(page int) ([]*User, error) { |
| 2508 | users := make([]*User, 0, ItemsPerPage) |
no test coverage detected