add login name for auth type
This commit is contained in:
parent
43ffacd05b
commit
4d6de6c7b9
5 changed files with 48 additions and 1 deletions
|
@ -58,7 +58,7 @@ func CreateRelease(repoPath string, rel *Release, gitRepo *git.Repository) error
|
|||
return ErrReleaseAlreadyExist
|
||||
}
|
||||
|
||||
if !git.IsTagExist(repoPath, rel.TagName) {
|
||||
if !gitRepo.IsTagExist(rel.TagName) {
|
||||
_, stderr, err := com.ExecCmdDir(repoPath, "git", "tag", rel.TagName, "-m", rel.Title)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
@ -44,6 +44,7 @@ type User struct {
|
|||
Passwd string `xorm:"not null"`
|
||||
LoginType int
|
||||
LoginSource int64 `xorm:"not null default 0"`
|
||||
LoginName string
|
||||
Type int
|
||||
NumFollowers int
|
||||
NumFollowings int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue