You can temporarily restrict certain users from commenting, opening issues, or creating pull requests in your public repository to enforce a period of limited activity.

People with owner or admin access to a repository can limit activity to certain users and restrict all other users from interacting with your repository for 24 hours. After 24 hours, users' regular repository permissions are restored. You can temporarily disable interactions from all users with accounts created in the last 24 hours, or from users who are not prior contributors or collaborators for the repository.

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. Repository settings button

  3. Under "Temporary interaction limits", select one or more categories of users. Temporary interaction limit options in repository settings

    • To limit access to users with accounts more than 24 hours old, select Limit to existing users.
    • To limit access to users who have previously committed to the repository's master branch, select Limit to prior contributors.
    • To limit access to people with push access to the repository, select Limit to repository collaborators.

Further reading