Skip to content

Commit 6c10122

Browse files
committed
Version links to reversioned article
1 parent 669b8b1 commit 6c10122

File tree

8 files changed

+16
-14
lines changed

8 files changed

+16
-14
lines changed

content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,10 @@ For more information, see "[Managing the publication of {% data variables.produc
506506
| Action | Description |
507507
|--------|-------------|
508508
| `package_version_published` | Triggered when a package version is published. |
509-
| `package_version_deleted` | Triggered when a specific package version is deleted. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."
510-
| `package_deleted` | Triggered when an entire package is deleted. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."
511-
| `package_version_restored` | Triggered when a specific package version is deleted. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."
512-
| `package_restored` | Triggered when an entire package is restored. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."
509+
| `package_version_deleted` | Triggered when a specific package version is deleted.{% ifversion fpt or ghec or ghes > 3.1 %} For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."{% endif %}
510+
| `package_deleted` | Triggered when an entire package is deleted.{% ifversion fpt or ghec or ghes > 3.1 %} For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."{% endif %}
511+
| `package_version_restored` | Triggered when a specific package version is deleted.{% ifversion fpt or ghec or ghes > 3.1 %} For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."{% endif %}
512+
| `package_restored` | Triggered when an entire package is restored.{% ifversion fpt or ghec or ghes > 3.1 %} For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."{% endif %}
513513

514514
{% endif %}
515515

content/packages/learn-github-packages/introduction-to-github-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ You can delete a private or public package in the {% data variables.product.prod
108108
You can delete a version of a package in the {% data variables.product.product_name %} user interface or using the GraphQL API.
109109
{% endif %}
110110

111-
When you use the GraphQL API to query and delete private packages, you must use the same token you use to authenticate to {% data variables.product.prodname_registry %}. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" and "[Forming calls with GraphQL]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql)."
111+
When you use the GraphQL API to query and delete private packages, you must use the same token you use to authenticate to {% data variables.product.prodname_registry %}. For more information, see {% ifversion fpt or ghec or ghes > 3.1 or ghae %}"[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" and {% endif %}"[Forming calls with GraphQL]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql)."
112112

113113
You can configure webhooks to subscribe to package-related events, such as when a package is published or updated. For more information, see the "[`package` webhook event](/webhooks/event-payloads/#package)."
114114

content/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,5 @@ To install an Apache Maven package from {% data variables.product.prodname_regis
190190

191191
## Further reading
192192

193-
- "[Working with the Gradle registry](/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry)"
193+
- "[Working with the Gradle registry](/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry)"{% ifversion fpt or ghec or ghes > 3.1 or ghae %}
194194
- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)"

content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,5 +215,5 @@ To use a published package from {% data variables.product.prodname_registry %},
215215

216216
## Further reading
217217

218-
- "[Working with the Apache Maven registry](/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry)"
219-
- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)"
218+
- "[Working with the Apache Maven registry](/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry)"{% ifversion fpt or ghec or ghes > 3.1 or ghae %}
219+
- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)"{% endif %}

content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you publish over 1,000 npm package versions to {% data variables.product.prod
2727

2828
In the future, to improve performance of the service, you won't be able to publish more than 1,000 versions of a package on {% data variables.product.prodname_dotcom %}. Any versions published before hitting this limit will still be readable.
2929

30-
If you reach this limit, consider deleting package versions or contact Support for help. When this limit is enforced, our documentation will be updated with a way to work around this limit. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" or "[Contacting Support](/packages/learn-github-packages/about-github-packages#contacting-support)."
30+
If you reach this limit, consider deleting package versions or contact Support for help. When this limit is enforced, our documentation will be updated with a way to work around this limit. For more information, see {% ifversion fpt or ghec or ghes > 3.1 or ghae %}"[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" or {% endif %}"[Contacting Support](/packages/learn-github-packages/about-github-packages#contacting-support)."
3131

3232
## Authenticating to {% data variables.product.prodname_registry %}
3333

@@ -212,7 +212,3 @@ If your instance has subdomain isolation disabled:
212212

213213
{% data variables.product.prodname_registry %} allows you to access the official NPM registry at `registry.npmjs.com`, if your {% data variables.product.prodname_ghe_server %} administrator has enabled this feature. For more information, see [Connecting to the official NPM registry](/admin/packages/configuring-packages-support-for-your-enterprise#connecting-to-the-official-npm-registry).
214214
{% endif %}
215-
216-
## Further reading
217-
218-
- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)"

content/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ Your NuGet package may fail to push if the `RepositoryUrl` in *.csproj* is not s
232232

233233
If you're using a nuspec file, ensure that it has a `repository` element with the required `type` and `url` attributes.
234234

235+
{% ifversion fpt or ghec or ghes > 3.1 or ghae %}
235236
## Further reading
236237

237238
- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)"
239+
{% endif %}

content/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ You can use gems from {% data variables.product.prodname_registry %} much like y
151151
$ gem install octo-gem --version "0.1.1"
152152
```
153153

154+
{% ifversion fpt or ghec or ghes > 3.1 or ghae %}
155+
154156
## Further reading
155157

156158
- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)"
159+
160+
{% endif %}

data/reusables/rest-reference/packages/packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The {% data variables.product.prodname_registry %} API enables you to manage packages using the REST API. To learn more about restoring or deleting packages, see "[Restoring and deleting packages](/packages/learn-github-packages/deleting-and-restoring-a-package)."
1+
The {% data variables.product.prodname_registry %} API enables you to manage packages using the REST API.{% ifversion fpt or ghec or ghes > 3.1 or ghae %} To learn more about restoring or deleting packages, see "[Restoring and deleting packages](/packages/learn-github-packages/deleting-and-restoring-a-package)."{% endif %}
22

33
To use this API, you must authenticate using a personal access token.
44
- To access package metadata, your token must include the `read:packages` scope.

0 commit comments

Comments
 (0)