Skip to content

Commit 8a4eccb

Browse files
committed
rename WorkFlow to Workflow
1 parent 79911d0 commit 8a4eccb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

routers/web/repo/actions/actions.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const (
2323
tplViewActions base.TplName = "repo/actions/view"
2424
)
2525

26-
type WorkFlow struct {
26+
type Workflow struct {
2727
Entry git.TreeEntry
2828
IsInvalid bool
2929
ErrMsg string
@@ -53,7 +53,7 @@ func List(ctx *context.Context) {
5353
ctx.Data["Title"] = ctx.Tr("actions.actions")
5454
ctx.Data["PageIsActions"] = true
5555

56-
var workflows []WorkFlow
56+
var workflows []Workflow
5757
if empty, err := ctx.Repo.GitRepo.IsEmpty(); err != nil {
5858
ctx.Error(http.StatusInternalServerError, err.Error())
5959
return
@@ -73,9 +73,9 @@ func List(ctx *context.Context) {
7373
ctx.Error(http.StatusInternalServerError, err.Error())
7474
return
7575
}
76-
workflows = make([]WorkFlow, 0, len(entries))
76+
workflows = make([]Workflow, 0, len(entries))
7777
for _, entry := range entries {
78-
workflow := WorkFlow{Entry: *entry}
78+
workflow := Workflow{Entry: *entry}
7979
content, err := actions.GetContentFromEntry(entry)
8080
if err != nil {
8181
ctx.Error(http.StatusInternalServerError, err.Error())

0 commit comments

Comments
 (0)