diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 01d489b737b..b44594d6064 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -3764,6 +3764,7 @@ require_action.creation.success = Create Global Require Action %s successfully. require_action.deletion = Delete require_action.deletion.description = Removing the Global Require Action is permanent and cannot be undone. Continue? require_action.deletion.success = The Global Require Action has been removed. +require_action.deletion.failed = Failed to remove the Global Require Action. workflow.disable = Disable Workflow workflow.disable_success = Workflow '%s' disabled successfully. diff --git a/routers/web/repo/setting/require_action.go b/routers/web/repo/setting/require_action.go index 5d08b89522a..ff64be47e93 100644 --- a/routers/web/repo/setting/require_action.go +++ b/routers/web/repo/setting/require_action.go @@ -39,7 +39,7 @@ func getRequireActionCtx(ctx *context.Context) (*requireActionsCtx, error) { // Listing all RequireAction func RequireAction(ctx *context.Context) { - ctx.Data["ActionsTitle"] = ctx.Tr("actions.requires") + ctx.Data["Title"] = ctx.Tr("actions.requires") ctx.Data["PageType"] = "require_action" ctx.Data["PageIsSharedSettingsRequireAction"] = true diff --git a/routers/web/shared/actions/require_action.go b/routers/web/shared/actions/require_action.go index 4bc3d3fa9b6..50a4bbab897 100644 --- a/routers/web/shared/actions/require_action.go +++ b/routers/web/shared/actions/require_action.go @@ -62,7 +62,7 @@ func CreateRequireAction(ctx *context.Context, orgID int64, redirectURL string) v, err := actions_service.CreateRequireAction(ctx, orgID, form.RepoName, form.WorkflowName) if err != nil { log.Error("CreateRequireAction: %v", err) - ctx.JSONError(ctx.Tr("actions.require_action.creation.failed")) + ctx.JSONError(ctx.Tr("actions.require_action.creation.failed", v.WorkflowName)) return } ctx.Flash.Success(ctx.Tr("actions.require_action.creation.success", v.WorkflowName))