From b9be501c66241d85baf4f8cdf8166eaa6cc99337 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 8 May 2026 12:14:21 -0700 Subject: [PATCH] Add notices for link package to repository --- options/locale/locale_en-US.json | 5 ++++- templates/package/settings.tmpl | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.json b/options/locale/locale_en-US.json index ad421a4032..a0c2e086ef 100644 --- a/options/locale/locale_en-US.json +++ b/options/locale/locale_en-US.json @@ -3622,7 +3622,10 @@ "packages.terraform.delete.latest": "The latest version of a Terraform state cannot be deleted.", "packages.vagrant.install": "To add a Vagrant box, run the following command:", "packages.settings.link": "Link this package to a repository", - "packages.settings.link.description": "If you link a package with a repository, the package will appear in the repository's package list. This link does not change the package visibility. Only repositories under the same owner can be linked. Leaving the field empty will remove the link.", + "packages.settings.link.description": "If you link a package with a repository, the package will appear in the repository's package list.", + "packages.settings.link.notice1": "Only repositories under the same owner can be linked.", + "packages.settings.link.notice2": "Linking a repository does not change the package visibility.", + "packages.settings.link.notice3": "Leaving the field empty will remove the link.", "packages.settings.visibility": "Package visibility", "packages.settings.visibility.inherit": "Package visibility is inherited from the owner and cannot be changed independently here. To change it, update the visibility settings of the user or organization that owns this package.", "packages.settings.visibility.button": "Change owner visibility", diff --git a/templates/package/settings.tmpl b/templates/package/settings.tmpl index 8e7490c469..989d97f2ab 100644 --- a/templates/package/settings.tmpl +++ b/templates/package/settings.tmpl @@ -33,6 +33,9 @@

{{ctx.Locale.Tr "packages.settings.link.description"}}

+

- {{ctx.Locale.Tr "packages.settings.link.notice1"}}

+

- {{ctx.Locale.Tr "packages.settings.link.notice2"}}

+

- {{ctx.Locale.Tr "packages.settings.link.notice3"}}