-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add RepositoryDiscussion powered by GraphQL API
#3048
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
Add RepositoryDiscussion powered by GraphQL API
#3048
Conversation
tiangolo
left a comment
There was a problem hiding this 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.
9becf8b to
8a5789f
Compare
- Make output_schema mendatory in function where retrieval of GraphQl data is main purpose - Remove curly brackets from output_schema parameter
d1b45d9 to
a2a82bc
Compare
EnricoMi
left a comment
There was a problem hiding this 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
Co-authored-by: Sebastián Ramírez <[email protected]>
|
Thanks for this mate! awesome work |
Adds
RepositoryDiscussion,RepositoryDiscussionCommentandRepositoryDiscussionCategoryas 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.