You can enable or disable {% data variables.product.prodname_discussions %} for a repository.
{% data reusables.repositories.navigate-to-repo %}
-
Under your repository name, click {% octicon "gear" aria-label="The gear icon" %}
Settings.

-
Scroll down to the "Features" section and select Discussions.