Skip to content

Conversation

@EnricoMi
Copy link
Collaborator

@EnricoMi EnricoMi commented Sep 18, 2024

Adds RepositoryDiscussion, RepositoryDiscussionComment and RepositoryDiscussionCategory as pure GraphQL API classes. Retrieved GraphQL data with user-defined schema can be used to populate those GraphQL objects and inner REST API objects (all other existing PyGithub classes).

Includes #3046 and #3047.

Fixes #2283.

Copy link
Contributor

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty of reviewing this. Looks great! 🚀

I cloned it locally and reviewed it line by line. I first reviewed the previous 2 PRs this depends on.

I have been using it for internal scripts in FastAPI and it's working great.

I have a couple of minor suggestions.

LGTM! 🚀


Disclaimer: I requested this feature to use it in FastAPI.

@EnricoMi EnricoMi force-pushed the graphql-repository-get-discussions branch from 9becf8b to 8a5789f Compare October 28, 2024 20:50
- Make output_schema mendatory in function where retrieval of GraphQl data is main purpose
- Remove curly brackets from output_schema parameter
@EnricoMi EnricoMi force-pushed the graphql-repository-get-discussions branch from d1b45d9 to a2a82bc Compare October 29, 2024 09:08
Copy link
Collaborator Author

@EnricoMi EnricoMi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amend @tiangolo's suggestions

@EnricoMi EnricoMi merged commit 29359f3 into PyGithub:main Oct 29, 2024
13 checks passed
@ibaguio
Copy link

ibaguio commented Oct 30, 2024

Thanks for this mate! awesome work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support GraphQL Repository Discussions

3 participants