Rename the main module to gotea.dev and the binary to gotea, and update the application name and English locale. Keep the external gitea.dev/sdk and gitea.dev/actionslib module imports unchanged. Assisted-by: OpenCode:DeepSeek-V4.1-Flash
27 lines
652 B
Go
27 lines
652 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_27
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gotea.dev/modelmigration/base"
|
|
|
|
"xorm.io/xorm"
|
|
)
|
|
|
|
// AddContinueOnErrorToActionRunJob adds the ContinueOnError column to ActionRunJob,
|
|
// storing the job-level continue-on-error value from the workflow YAML.
|
|
func AddContinueOnErrorToActionRunJob(_ context.Context, x base.EngineMigration) error {
|
|
type ActionRunJob struct {
|
|
ContinueOnError bool `xorm:"NOT NULL DEFAULT FALSE"`
|
|
}
|
|
|
|
_, err := x.SyncWithOptions(xorm.SyncOptions{
|
|
IgnoreDropIndices: true,
|
|
IgnoreConstrains: true,
|
|
}, new(ActionRunJob))
|
|
return err
|
|
}
|