mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-23 08:26:35 +08:00
fix news feed repo link
This commit is contained in:
parent
09dba7d63e
commit
501f70e248
|
@ -63,6 +63,10 @@ func (a Action) GetActEmail() string {
|
||||||
return a.ActEmail
|
return a.ActEmail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (a Action) GetRepoUserName() string {
|
||||||
|
return a.RepoUserName
|
||||||
|
}
|
||||||
|
|
||||||
func (a Action) GetRepoName() string {
|
func (a Action) GetRepoName() string {
|
||||||
return a.RepoName
|
return a.RepoName
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,6 +100,7 @@ type Actioner interface {
|
||||||
GetOpType() int
|
GetOpType() int
|
||||||
GetActUserName() string
|
GetActUserName() string
|
||||||
GetActEmail() string
|
GetActEmail() string
|
||||||
|
GetRepoUserName() string
|
||||||
GetRepoName() string
|
GetRepoName() string
|
||||||
GetBranch() string
|
GetBranch() string
|
||||||
GetContent() string
|
GetContent() string
|
||||||
|
@ -153,8 +154,9 @@ type PushCommits struct {
|
||||||
func ActionDesc(act Actioner) string {
|
func ActionDesc(act Actioner) string {
|
||||||
actUserName := act.GetActUserName()
|
actUserName := act.GetActUserName()
|
||||||
email := act.GetActEmail()
|
email := act.GetActEmail()
|
||||||
|
repoUserName := act.GetRepoUserName()
|
||||||
repoName := act.GetRepoName()
|
repoName := act.GetRepoName()
|
||||||
repoLink := actUserName + "/" + repoName
|
repoLink := repoUserName + "/" + repoName
|
||||||
branch := act.GetBranch()
|
branch := act.GetBranch()
|
||||||
content := act.GetContent()
|
content := act.GetContent()
|
||||||
switch act.GetOpType() {
|
switch act.GetOpType() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user