Skip to content

Commit fb872e4

Browse files
Merge branch 'main' into patch-1
2 parents 60d7a1a + 57e0bf4 commit fb872e4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

routers/api/v1/repo/release.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ func CreateRelease(ctx *context.APIContext) {
224224
rel.IsTag = false
225225
rel.Repo = ctx.Repo.Repository
226226
rel.Publisher = ctx.Doer
227+
rel.Target = form.Target
227228

228229
if err = release_service.UpdateRelease(ctx.Doer, ctx.Repo.GitRepo, rel, nil, nil, nil); err != nil {
229230
ctx.Error(http.StatusInternalServerError, "UpdateRelease", err)

routers/init.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ func GlobalInitInstalled(ctx context.Context) {
141141
mustInit(repo_service.Init)
142142

143143
// Booting long running goroutines.
144-
cron.NewContext(ctx)
145144
issue_indexer.InitIssueIndexer(false)
146145
code_indexer.Init()
147146
mustInit(stats_indexer.Init)
@@ -160,6 +159,9 @@ func GlobalInitInstalled(ctx context.Context) {
160159

161160
auth.Init()
162161
svg.Init()
162+
163+
// Finally start up the cron
164+
cron.NewContext(ctx)
163165
}
164166

165167
// NormalRoutes represents non install routes

0 commit comments

Comments
 (0)