diff options
author | Zettat123 <zettat123@gmail.com> | 2024-01-31 15:55:12 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-03-25 16:27:32 +0100 |
commit | cf78141bddbcae73633cd342efcb624dba279623 (patch) | |
tree | 83877d48e164ca630b9e28a17f589c175c096db8 /routers | |
parent | Fix schedule not trigger bug because matching full ref name with short ref na... (diff) | |
download | forgejo-cf78141bddbcae73633cd342efcb624dba279623.tar.xz forgejo-cf78141bddbcae73633cd342efcb624dba279623.zip |
Fix an actions schedule bug (#28942)
In #28691, schedule plans will be deleted when a repo's actions unit is
disabled. But when the unit is enabled, the schedule plans won't be
created again.
This PR fixes the bug. The schedule plans will be created again when the
actions unit is re-enabled
(cherry picked from commit adc3598a755b43e3911266d7fa575c121e16613d)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/wiki.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go index 347b7539b9..f18ea087c4 100644 --- a/routers/api/v1/repo/wiki.go +++ b/routers/api/v1/repo/wiki.go @@ -203,7 +203,7 @@ func getWikiPage(ctx *context.APIContext, wikiName wiki_service.WebPath) *api.Wi } return &api.WikiPage{ - WikiPageMetaData: convert.ToWikiPageMetaData(wikiName, lastCommit, ctx.Repo.Repository), + WikiPageMetaData: wiki_service.ToWikiPageMetaData(wikiName, lastCommit, ctx.Repo.Repository), ContentBase64: content, CommitCount: commitsCount, Sidebar: sidebarContent, @@ -333,7 +333,7 @@ func ListWikiPages(ctx *context.APIContext) { ctx.Error(http.StatusInternalServerError, "WikiFilenameToName", err) return } - pages = append(pages, convert.ToWikiPageMetaData(wikiName, c, ctx.Repo.Repository)) + pages = append(pages, wiki_service.ToWikiPageMetaData(wikiName, c, ctx.Repo.Repository)) } ctx.SetTotalCountHeader(int64(len(entries))) |