关于临时交互限制
限制用户帐户的交互可对用户帐户拥有的所有公共仓库启用临时交互限制。 Enabling an interaction limit for a repository restricts certain users from commenting, opening issues, creating pull requests, reacting with emojis, editing existing comments, and editing titles of issues and pull requests.
When you enable an interaction limit, you can choose a duration for the limit: 24 hours, 3 days, 1 week, 1 month, or 6 months. 在限制期过后,用户可以在您的公共仓库中恢复正常活动。
There are three types of interaction limits.
- Limit to existing users(限于现有用户):限制帐户存在时间不到 24 小时、之前没有贡献也不是协作者的用户的活动。
- Limit to prior contributors: Limits activity for users who have not previously contributed to the default branch of the repository and are not collaborators.
- Limit to repository collaborators: Limits activity for users who do not have write access to the repository.
启用用户范围的活动限制时,无法对单个仓库启用或禁用交互限制。 有关限制单个仓库活动的更多信息,请参阅“限制仓库中的交互”。
您还可以阻止用户。 更多信息请参阅“阻止用户访问个人帐户”。
限制用户帐户的交互
- 在任何页面的右上角,单击您的个人资料照片,然后单击 Settings(设置)。
- 在在用户设置侧边栏中的“Moderation settings(管理设置)”下,单击 Interaction limits(交互限制)。
- Under "Temporary interaction limits", to the right of the type of interaction limit you want to set, use the Enable drop-down menu, then click the duration you want for your interaction limit.