HasRepository returns true if given repository belong to team.
(repoID int64)
| 101 | |
| 102 | // HasRepository returns true if given repository belong to team. |
| 103 | func (t *Team) HasRepository(repoID int64) bool { |
| 104 | return t.hasRepository(x, repoID) |
| 105 | } |
| 106 | |
| 107 | func (t *Team) addRepository(e Engine, repo *Repository) (err error) { |
| 108 | if err = addTeamRepo(e, t.OrgID, t.ID, repo.ID); err != nil { |
no test coverage detected