You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
giteaplugin/main.go

19 lines
320 B

package main
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/log"
)
func StartPlugin() {
err := models.CreateUser(&models.User{
Name: "NicePlugin",
Email: "plugin@knt.li",
Passwd: "test",
IsActive: false,
IsAdmin: false,
})
if err != nil {
log.Error(4, "StartPlugin: %v", err)
}
}