Skip to content

Add support for repository has_discussions #797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rgmz opened this issue Mar 28, 2025 · 0 comments
Open

Add support for repository has_discussions #797

rgmz opened this issue Mar 28, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@rgmz
Copy link

rgmz commented Mar 28, 2025

Prerequisites:

  • Is the functionality available in the GitHub UI? If so, please provide a link to information about the feature.

The GitHub UI settings allows you toggle features including: Wikis, Issues, Discussions, and Projects.

Image

The Create an organization repository endpoint has fields for has_issues, has_projects, has_wiki, and has_downloads but does not have a has_discussions field. However, Create a repository for the authenticated user does.

has_discussions is returned from the Get a repository endpoint.

  • If the functionality is not yet available in the API, it would be helpful if you
    contacted support (https://support.github.com/) or posted in the Community Forum (https://github.community/). Please
    include a link to the forum post if you create one or a copy of the response from support.

New Feature

Please describe the desired new functionality:

It would be nice if Discussions could be programmatically enabled/disabled in the repository settings, similar to has_issues, has_projects, and has_wiki.

It isn't immediately obvious to me whether Discussions are supported in the API, similar to the aforementioned options. Perhaps this is a known limitation and my attempts to search for previous issues failed me?

@rgmz rgmz added the enhancement New feature or request label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant