1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-26 08:58:24 +00:00

add models and services

This commit is contained in:
Lunny Xiao
2022-10-07 22:43:56 +08:00
committed by Jason Song
parent 4af45f7bc9
commit ab4f539453
6 changed files with 201 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ import (
org_service "code.gitea.io/gitea/services/org"
repo_service "code.gitea.io/gitea/services/repository"
wiki_service "code.gitea.io/gitea/services/wiki"
secret_service "code.gitea.io/gitea/services/secrets"
)
const (
@@ -1113,6 +1114,13 @@ func DeployKeys(ctx *context.Context) {
}
ctx.Data["Deploykeys"] = keys
tokens, err := secret_service.FindRepoSecrets(ctx, ctx.Repo.Repository.ID)
if err != nil {
ctx.ServerError("FindRepoSecrets", err)
return
}
ctx.Data["Tokens"] = tokens
ctx.HTML(http.StatusOK, tplDeployKeys)
}