I want my Python Flask server to send a GET Request to the GitHub REST API V3, asking for all commits messages in a Pull Request, and perhaps receive it as a single payload.
Any suggestions on how I can approach this issue?
I want my Python Flask server to send a GET Request to the GitHub REST API V3, asking for all commits messages in a Pull Request, and perhaps receive it as a single payload.
Any suggestions on how I can approach this issue?
For further actions, you may consider blocking this person and/or reporting abuse
Programming with Shahan -
Vivek Alhat -
renanbastos93 -
Max Shen -
Once suspended, crhodes2 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, crhodes2 will be able to comment and publish posts again.
Once unpublished, all posts by crhodes2 will become hidden and only accessible to themselves.
If crhodes2 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to crhodes.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag crhodes2:
Unflagging crhodes2 will restore default visibility to their posts.
Top comments (3)
Hi, there's an edpoint for that: developer.github.com/v3/pulls/#lis...
You either write the client yourself, using requests for example or you can use PyGithub and its method PullRequest.get_commits()
That's what I'm doing.
But the only thing I'm getting at this point is the number of commits as a count. (e.g. 13 if a PR has 13 commits, or 25 if another PR has 25 commits). I get a commit but I want to be able to display the messages associated with it.
You don't get the commit part of the response? There's a message key in the dictionary. Maybe is it a bug in the client you're using?