|
14450 | 14450 | ], |
14451 | 14451 | "renamed": null |
14452 | 14452 | }, |
| 14453 | + { |
| 14454 | + "name": "Get interaction restrictions for your public repositories", |
| 14455 | + "scope": "interactions", |
| 14456 | + "id": "getRestrictionsForAuthenticatedUser", |
| 14457 | + "method": "GET", |
| 14458 | + "url": "/user/interaction-limits", |
| 14459 | + "isDeprecated": false, |
| 14460 | + "deprecationDate": null, |
| 14461 | + "description": "Shows which type of GitHub user can interact with your public repositories and when the restriction expires. If there are no restrictions, you will see an empty response.", |
| 14462 | + "documentationUrl": "https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-your-public-repositories", |
| 14463 | + "previews": [], |
| 14464 | + "headers": [], |
| 14465 | + "parameters": [], |
| 14466 | + "responses": [ |
| 14467 | + { |
| 14468 | + "code": 200, |
| 14469 | + "description": "response", |
| 14470 | + "examples": [ |
| 14471 | + { |
| 14472 | + "data": "{\"limit\":\"collaborators_only\",\"origin\":\"user\",\"expires_at\":\"2018-08-17T04:18:39Z\"}" |
| 14473 | + } |
| 14474 | + ] |
| 14475 | + } |
| 14476 | + ], |
| 14477 | + "renamed": null |
| 14478 | + }, |
14453 | 14479 | { |
14454 | 14480 | "name": "Get interaction restrictions for an organization", |
14455 | 14481 | "scope": "interactions", |
|
14567 | 14593 | ] |
14568 | 14594 | } |
14569 | 14595 | ], |
| 14596 | + "renamed": { |
| 14597 | + "before": { |
| 14598 | + "scope": "interactions", |
| 14599 | + "id": "getRestrictionsForYourPublicRepos" |
| 14600 | + }, |
| 14601 | + "after": { |
| 14602 | + "scope": "interactions", |
| 14603 | + "id": "getRestrictionsForAuthenticatedUser" |
| 14604 | + }, |
| 14605 | + "date": "2021-02-02", |
| 14606 | + "note": null |
| 14607 | + } |
| 14608 | + }, |
| 14609 | + { |
| 14610 | + "name": "Remove interaction restrictions from your public repositories", |
| 14611 | + "scope": "interactions", |
| 14612 | + "id": "removeRestrictionsForAuthenticatedUser", |
| 14613 | + "method": "DELETE", |
| 14614 | + "url": "/user/interaction-limits", |
| 14615 | + "isDeprecated": false, |
| 14616 | + "deprecationDate": null, |
| 14617 | + "description": "Removes any interaction restrictions from your public repositories.", |
| 14618 | + "documentationUrl": "https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-from-your-public-repositories", |
| 14619 | + "previews": [], |
| 14620 | + "headers": [], |
| 14621 | + "parameters": [], |
| 14622 | + "responses": [ |
| 14623 | + { "code": 204, "description": "Empty response", "examples": null } |
| 14624 | + ], |
14570 | 14625 | "renamed": null |
14571 | 14626 | }, |
14572 | 14627 | { |
|
14663 | 14718 | "responses": [ |
14664 | 14719 | { "code": 204, "description": "Empty response", "examples": null } |
14665 | 14720 | ], |
| 14721 | + "renamed": { |
| 14722 | + "before": { |
| 14723 | + "scope": "interactions", |
| 14724 | + "id": "removeRestrictionsForYourPublicRepos" |
| 14725 | + }, |
| 14726 | + "after": { |
| 14727 | + "scope": "interactions", |
| 14728 | + "id": "removeRestrictionsForAuthenticatedUser" |
| 14729 | + }, |
| 14730 | + "date": "2021-02-02", |
| 14731 | + "note": null |
| 14732 | + } |
| 14733 | + }, |
| 14734 | + { |
| 14735 | + "name": "Set interaction restrictions for your public repositories", |
| 14736 | + "scope": "interactions", |
| 14737 | + "id": "setRestrictionsForAuthenticatedUser", |
| 14738 | + "method": "PUT", |
| 14739 | + "url": "/user/interaction-limits", |
| 14740 | + "isDeprecated": false, |
| 14741 | + "deprecationDate": null, |
| 14742 | + "description": "Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.", |
| 14743 | + "documentationUrl": "https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-your-public-repositories", |
| 14744 | + "previews": [], |
| 14745 | + "headers": [], |
| 14746 | + "parameters": [ |
| 14747 | + { |
| 14748 | + "name": "limit", |
| 14749 | + "description": "The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: `existing_users`, `contributors_only`, `collaborators_only`.", |
| 14750 | + "in": "BODY", |
| 14751 | + "type": "string", |
| 14752 | + "required": true, |
| 14753 | + "enum": ["existing_users", "contributors_only", "collaborators_only"], |
| 14754 | + "allowNull": false, |
| 14755 | + "mapToData": null, |
| 14756 | + "validation": null, |
| 14757 | + "alias": null, |
| 14758 | + "deprecated": null |
| 14759 | + }, |
| 14760 | + { |
| 14761 | + "name": "expiry", |
| 14762 | + "description": "The duration of the interaction restriction. Can be one of: `one_day`, `three_days`, `one_week`, `one_month`, `six_months`. Default: `one_day`.", |
| 14763 | + "in": "BODY", |
| 14764 | + "type": "string", |
| 14765 | + "required": false, |
| 14766 | + "enum": [ |
| 14767 | + "one_day", |
| 14768 | + "three_days", |
| 14769 | + "one_week", |
| 14770 | + "one_month", |
| 14771 | + "six_months" |
| 14772 | + ], |
| 14773 | + "allowNull": false, |
| 14774 | + "mapToData": null, |
| 14775 | + "validation": null, |
| 14776 | + "alias": null, |
| 14777 | + "deprecated": null |
| 14778 | + } |
| 14779 | + ], |
| 14780 | + "responses": [ |
| 14781 | + { |
| 14782 | + "code": 200, |
| 14783 | + "description": "response", |
| 14784 | + "examples": [ |
| 14785 | + { |
| 14786 | + "data": "{\"limit\":\"collaborators_only\",\"origin\":\"user\",\"expires_at\":\"2018-08-17T04:18:39Z\"}" |
| 14787 | + } |
| 14788 | + ] |
| 14789 | + }, |
| 14790 | + { "code": 422, "description": "Validation Failed", "examples": null } |
| 14791 | + ], |
14666 | 14792 | "renamed": null |
14667 | 14793 | }, |
14668 | 14794 | { |
|
14882 | 15008 | }, |
14883 | 15009 | { "code": 422, "description": "Validation Failed", "examples": null } |
14884 | 15010 | ], |
14885 | | - "renamed": null |
| 15011 | + "renamed": { |
| 15012 | + "before": { |
| 15013 | + "scope": "interactions", |
| 15014 | + "id": "setRestrictionsForYourPublicRepos" |
| 15015 | + }, |
| 15016 | + "after": { |
| 15017 | + "scope": "interactions", |
| 15018 | + "id": "setRestrictionsForAuthenticatedUser" |
| 15019 | + }, |
| 15020 | + "date": "2021-02-02", |
| 15021 | + "note": null |
| 15022 | + } |
14886 | 15023 | }, |
14887 | 15024 | { |
14888 | 15025 | "name": "Add assignees to an issue", |
|
0 commit comments