Skip to content

Commit 0860223

Browse files
authored
Merge pull request github#26265 from github/repo-sync
repo sync
2 parents 47f8250 + 5da7e90 commit 0860223

File tree

11 files changed

+24
-18
lines changed

11 files changed

+24
-18
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
@@ -508,10 +508,10 @@ For more information, see "[Managing the publication of {% data variables.produc
508508
| Action | Description |
509509
|--------|-------------|
510510
| `package_version_published` | Triggered when a package version is published. |
511-
| `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)."
512-
| `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)."
513-
| `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)."
514-
| `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)."
511+
| `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 %}
512+
| `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 %}
513+
| `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 %}
514+
| `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 %}
515515

516516
{% endif %}
517517

content/packages/learn-github-packages/about-permissions-for-github-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ To use or manage a package hosted by a package registry, you must use a token wi
4747

4848
For example:
4949
- To download and install packages from a repository, your token must have the `read:packages` scope, and your user account must have read permission.
50-
- {% ifversion fpt or ghes or ghec %}To delete a package on {% data variables.product.product_name %}, your token must at least have the `delete:packages` and `read:packages` scope. The `repo` scope is also required for repo-scoped packages.{% elsif ghae %}To delete a specified version of a package on {% data variables.product.product_name %}, your token must have the `delete:packages` and `repo` scope.{% endif %} For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."
50+
- {% ifversion fpt or ghes > 3.1 or ghec %}To delete a package on {% data variables.product.product_name %}, your token must at least have the `delete:packages` and `read:packages` scope. The `repo` scope is also required for repo-scoped packages. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."{% elsif ghae %}To delete a specified version of a package on {% data variables.product.product_name %}, your token must have the `delete:packages` and `repo` scope. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."{% endif %}
5151

5252
| Scope | Description | Required permission |
5353
| --- | --- | --- |

content/packages/learn-github-packages/deleting-and-restoring-a-package.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ redirect_from:
99
- /packages/guides/deleting-a-container-image
1010
versions:
1111
fpt: '*'
12-
ghes: '*'
12+
ghes: '>=3.2'
1313
ghec: '*'
1414
ghae: '*'
1515
shortTitle: Delete & restore a package
@@ -27,7 +27,7 @@ On {% data variables.product.prodname_dotcom %} if you have the required access,
2727

2828
{% note %}
2929

30-
**Note:**
30+
**Note:**
3131
- You cannot delete a public package if any version of the package has more than 5000 downloads. In this scenario, contact [GitHub support](https://support.github.com/contact?tags=docs-packages) for further assistance.
3232
- When deleting public packages, be aware that you may break projects that depend on your package.
3333

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: 2 additions & 2 deletions
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)"
194-
- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)"
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 %}
194+
- "[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-docker-registry.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,12 @@ $ docker pull <em>HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME</em>
261261

262262
{% endnote %}
263263

264+
{% ifversion fpt or ghec or ghes > 3.1 or ghae %}
265+
264266
## Further reading
265267

266268
- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)"
267269

270+
{% endif %}
271+
268272
{% endif %} <!-- End of main versioning block -->

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 %}

0 commit comments

Comments
 (0)