MCPcopy Create free account
hub / github.com/gogs/gogs / SettingsDeployKeys

Function SettingsDeployKeys

internal/route/repo/setting.go:658–670  ·  view source on GitHub ↗
(c *context.Context)

Source from the content-addressed store, hash-verified

656}
657
658func SettingsDeployKeys(c *context.Context) {
659 c.Data["Title"] = c.Tr("repo.settings.deploy_keys")
660 c.Data["PageIsSettingsKeys"] = true
661
662 keys, err := database.ListDeployKeys(c.Repo.Repository.ID)
663 if err != nil {
664 c.Error(err, "list deploy keys")
665 return
666 }
667 c.Data["Deploykeys"] = keys
668
669 c.Success(tmplRepoSettingsDeployKeys)
670}
671
672func SettingsDeployKeysPost(c *context.Context, f form.AddSSHKey) {
673 c.Data["Title"] = c.Tr("repo.settings.deploy_keys")

Callers

nothing calls this directly

Calls 4

ListDeployKeysFunction · 0.92
TrMethod · 0.80
SuccessMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected