Skip to content

Commit

Permalink
API preview follow up (github#26914)
Browse files Browse the repository at this point in the history
  • Loading branch information
skedwards88 authored Apr 19, 2022
1 parent 9ae2c55 commit 345a950
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ This event occurs when a {% data variables.product.prodname_github_app %} sends
Key | Type | Description
----|------|-------------
`action` |`string` | The action that was performed. This can be one of:<ul><li>`created` - A repository is created.</li><li>`deleted` - A repository is deleted.</li><li>`archived` - A repository is archived.</li><li>`unarchived` - A repository is unarchived.</li>{% ifversion ghes or ghae %}<li>`anonymous_access_enabled` - A repository is [enabled for anonymous Git access](/rest/overview/api-previews#anonymous-git-access-to-repositories), `anonymous_access_disabled` - A repository is [disabled for anonymous Git access](/rest/overview/api-previews#anonymous-git-access-to-repositories)</li>{% endif %}<li>`edited` - A repository's information is edited.</li><li>`renamed` - A repository is renamed.</li><li>`transferred` - A repository is transferred.</li><li>`publicized` - A repository is made public.</li><li> `privatized` - A repository is made private.</li></ul>
`action` |`string` | The action that was performed. This can be one of:<ul><li>`created` - A repository is created.</li><li>`deleted` - A repository is deleted.</li><li>`archived` - A repository is archived.</li><li>`unarchived` - A repository is unarchived.</li>{% ifversion ghes or ghae %}<li>`anonymous_access_enabled` - A repository is [enabled for anonymous Git access](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise), `anonymous_access_disabled` - A repository is [disabled for anonymous Git access](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise)</li>{% endif %}<li>`edited` - A repository's information is edited.</li><li>`renamed` - A repository is renamed.</li><li>`transferred` - A repository is transferred.</li><li>`publicized` - A repository is made public.</li><li> `privatized` - A repository is made private.</li></ul>
{% data reusables.webhooks.repo_desc %}
{% data reusables.webhooks.org_desc %}
{% data reusables.webhooks.app_desc %}
Expand Down
13 changes: 2 additions & 11 deletions content/rest/overview/api-previews.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ intro: You can use API previews to try out new features and provide feedback bef
redirect_from:
- /v3/previews
versions:
ghes: '*'
ghes: '<3.4'
ghae: '*'
topics:
- API
Expand Down Expand Up @@ -51,15 +51,6 @@ Get a [list of events](/rest/reference/issues#timeline) for an issue or pull req

{% endif %}

{% ifversion ghes %}
## Pre-receive environments

Create, list, update, and delete environments for pre-receive hooks.

**Custom media type:** `eye-scream-preview`
**Announced:** [2015-07-29](/rest/reference/enterprise-admin#pre-receive-environments)
{% endif %}

{% ifversion ghes < 3.3 %}
## Projects

Expand Down Expand Up @@ -97,7 +88,7 @@ View all [codes of conduct](/rest/reference/codes-of-conduct) or get which code

{% endif %}

{% ifversion ghae or ghes %}
{% ifversion ghes < 3.3 %}

## Global webhooks

Expand Down
5 changes: 5 additions & 0 deletions lib/redirects/static/redirect-exceptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -514,3 +514,8 @@

/enterprise-cloud@latest/rest/reference/secret-scanning
- /rest/reference/secret-scanning

# FPT versioning was removed as part of github/docs-content#5166

/rest/overview/resources-in-the-rest-api
- /rest/overview/api-previews

0 comments on commit 345a950

Please sign in to comment.