1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-02 20:38:26 +00:00

Some improvements

This commit is contained in:
Lunny Xiao
2022-10-15 11:45:03 +08:00
committed by Jason Song
parent e7d5c99b42
commit b5520f098f
7 changed files with 22 additions and 23 deletions

View File

@@ -1124,7 +1124,7 @@ func DeployKeys(ctx *context.Context) {
ctx.HTML(http.StatusOK, tplDeployKeys)
}
// SecretsPost
// SecretsPost response for creating a new secret
func SecretsPost(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.AddKeyForm)
if err := secret_service.InsertRepoSecret(ctx, ctx.Repo.Repository.ID, form.Title, form.Content, form.PullRequestRead); err != nil {