Skip to content

Commit 1455206

Browse files
authored
repo sync
2 parents 2db2a7e + 5d38460 commit 1455206

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

content/rest/reference/interactions.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,50 @@ versions:
66
free-pro-team: '*'
77
---
88

9-
Users interact with repositories by commenting, opening issues, and creating pull requests. The Interactions APIs allow people with owner or admin access to temporarily restrict certain users from interacting with public repositories.
9+
Users interact with repositories by commenting, opening issues, and creating pull requests. The Interactions APIs allow people with owner or admin access to temporarily restrict interaction with public repositories to a certain type of user.
1010

1111
{% for operation in currentRestOperations %}
1212
{% unless operation.subcategory %}{% include rest_operation %}{% endunless %}
1313
{% endfor %}
1414

1515
## Organization
1616

17-
The Organization Interactions API allows organization owners to temporarily restrict which users can comment, open issues, or create pull requests in the organization's public repositories. {% data reusables.interactions.interactions-detail %} Here's more about the groups of {% data variables.product.product_name %} users:
17+
The Organization Interactions API allows organization owners to temporarily restrict which type of user can comment, open issues, or create pull requests in the organization's public repositories. {% data reusables.interactions.interactions-detail %} Here's more about the types of {% data variables.product.product_name %} users:
1818

1919
* {% data reusables.interactions.existing-user-limit-definition %} in the organization.
2020
* {% data reusables.interactions.contributor-user-limit-definition %} in the organization.
2121
* {% data reusables.interactions.collaborator-user-limit-definition %} in the organization.
2222

23+
Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization. To set different interaction limits for individual repositories owned by the organization, use the [Repository](#repository) interactions endpoints instead.
24+
2325
{% for operation in currentRestOperations %}
2426
{% if operation.subcategory == 'orgs' %}{% include rest_operation %}{% endif %}
2527
{% endfor %}
2628

2729
## Repository
2830

29-
The Repository Interactions API allows people with owner or admin access to temporarily restrict which users can comment, open issues, or create pull requests in a public repository. {% data reusables.interactions.interactions-detail %} Here's more about the groups of {% data variables.product.product_name %} users:
31+
The Repository Interactions API allows people with owner or admin access to temporarily restrict which type of user can comment, open issues, or create pull requests in a public repository. {% data reusables.interactions.interactions-detail %} Here's more about the types of {% data variables.product.product_name %} users:
3032

3133
* {% data reusables.interactions.existing-user-limit-definition %} in the repository.
3234
* {% data reusables.interactions.contributor-user-limit-definition %} in the repository.
3335
* {% data reusables.interactions.collaborator-user-limit-definition %} in the repository.
3436

37+
If an interaction limit is enabled for the user or organization that owns the repository, the limit cannot be changed for the individual repository. Instead, use the [User](#user) or [Organization](#organization) interactions endpoints to change the interaction limit.
38+
3539
{% for operation in currentRestOperations %}
3640
{% if operation.subcategory == 'repos' %}{% include rest_operation %}{% endif %}
3741
{% endfor %}
42+
43+
## User
44+
45+
The User Interactions API allows you to temporarily restrict which type of user can comment, open issues, or create pull requests on your public repositories. {% data reusables.interactions.interactions-detail %} Here's more about the types of {% data variables.product.product_name %} users:
46+
47+
* {% data reusables.interactions.existing-user-limit-definition %} from interacting with your repositories.
48+
* {% data reusables.interactions.contributor-user-limit-definition %} from interacting with your repositories.
49+
* {% data reusables.interactions.collaborator-user-limit-definition %} from interacting with your repositories.
50+
51+
Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user. To set different interaction limits for individual repositories owned by the user, use the [Repository](#repository) interactions endpoints instead.
52+
53+
{% for operation in currentRestOperations %}
54+
{% if operation.subcategory == 'user' %}{% include rest_operation %}{% endif %}
55+
{% endfor %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
When restrictions are enabled, only the specified group of {% data variables.product.product_name %} users will be able to participate in interactions. Restrictions expire 24 hours from the time they are set.
1+
When restrictions are enabled, only the specified type of {% data variables.product.product_name %} user will be able to participate in interactions. Restrictions automatically expire after a defined duration.

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@github-docs/data-directory": "^1.2.0",
1717
"@github-docs/frontmatter": "^1.3.1",
1818
"@github-docs/render-content": "^5.2.0",
19-
"@github/rest-api-operations": "^3.6.2",
19+
"@github/rest-api-operations": "^3.7.0",
2020
"@octokit/rest": "^16.38.1",
2121
"@primer/css": "^15.1.0",
2222
"@primer/octicons": "^11.0.0",

0 commit comments

Comments
 (0)