forked from forgejo/forgejo
add repo list of dashboard
This commit is contained in:
parent
fdc4151ff3
commit
b5cc4078a9
4 changed files with 24 additions and 5 deletions
|
@ -223,6 +223,10 @@ func GetRepositories(user *User) ([]Repository, error) {
|
|||
return repos, err
|
||||
}
|
||||
|
||||
func GetRepositoryCount(user *User) (int64, error) {
|
||||
return orm.Count(&Repository{OwnerId: user.Id})
|
||||
}
|
||||
|
||||
func StarReposiory(user *User, repoName string) error {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue