diff --git a/internal/locale/locales/en-us.yaml b/internal/locale/locales/en-us.yaml index d8eaf72ae9..5191b27bda 100644 --- a/internal/locale/locales/en-us.yaml +++ b/internal/locale/locales/en-us.yaml @@ -2078,6 +2078,14 @@ err_country_blocked: other: This service is not available in your region. err_shortcutdir_writable: other: Could not continue as we don't have permission to create [ACTIONABLE]{{.V0}}[/RESET]. +move_prompt: + other: | + You are about to move the project [NOTICE]{{.V0}}[/RESET] to the organization [NOTICE]{{.V1}}[/RESET]. + This action will invalidate any local checkouts that already exist for this project. If you or your team members have checked out this project anywhere else, please update them with the new namespace: [ACTIONABLE]{{.V1}}/{{.V2}}[/RESET]. + Continue? +edit_prompt_name_notice: + other: | + Renaming a project will invalidate any local checkouts that already exist for this project. If you or your team members have checked out this project anywhere else, please update them with the new namespace: [ACTIONABLE]{{.V0}}/{{.V1}}[/RESET]. err_edit_local_checkouts: other: Could not update local checkouts err_edit_project_mapping: diff --git a/internal/runners/projects/edit.go b/internal/runners/projects/edit.go index d2b0c71a5f..635dc821bb 100644 --- a/internal/runners/projects/edit.go +++ b/internal/runners/projects/edit.go @@ -83,6 +83,11 @@ func (e *Edit) Run(params *EditParams) error { editMsg += locale.Tl("edit_prompt_repo", " - Repository: {{.V0}}\n", params.Repository) editable.RepoURL = ¶ms.Repository } + + if params.ProjectName != "" { + editMsg += locale.Tr("edit_prompt_name_notice", params.Namespace.Owner, params.ProjectName) + } + editMsg += locale.Tl("edit_prompt_confirm", "Continue?") defaultChoice := !e.out.Config().Interactive diff --git a/internal/runners/projects/move.go b/internal/runners/projects/move.go index 56607e618e..c3d4b40c31 100644 --- a/internal/runners/projects/move.go +++ b/internal/runners/projects/move.go @@ -42,9 +42,7 @@ func (m *Move) Run(params *MoveParams) error { } defaultChoice := !m.out.Config().Interactive - move, err := m.prompt.Confirm("", locale.Tl("move_prompt", - "You are about to move the project [NOTICE]{{.V0}}[/RESET] to the organization [NOTICE]{{.V1}}[/RESET].\nContinue?", - params.Namespace.String(), params.NewOwner), &defaultChoice) + move, err := m.prompt.Confirm("", locale.Tr("move_prompt", params.Namespace.String(), params.NewOwner, params.Namespace.Project), &defaultChoice) if err != nil { return locale.WrapError(err, "err_move_prompt", "Could not prompt for move confirmation") }