I'm using Python's PyGithub library and want to get a list of closed prs in order from the ones most recent closed to the oldest ones closed. However, the PyGithub documentation doesn't show what options I have available for the parameters (specifically the variables available for "sorted"). How might I go about doing this? Would it be sorted=newest or something like that?
PyGithub repository.get_pulls parameter options?
839 Views Asked by Duaa Zaheer At
2
There are 2 best solutions below
0
joydeba
On
get_pulls(state=NotSet, sort=NotSet, direction=NotSet, base=NotSet, head=NotSet)
Calls: GET /repos/{owner}/{repo}/pulls
Parameters:
state – string
sort – string
direction – string
base – string
head – string
Return type:
github.PaginatedList.PaginatedList of github.PullRequest.PullRequest
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in GITHUB
- How do I create my own Git branch to work on?
- Tools for Apache Cordova - Installed Plugins are skipped in build
- Permission denied hg-git
- git hard reset - what am I doing wrong?
- Merge Pull Request Manually
- rebasing interactively, but only one commit shows up?
- Error when adding a new build stage on Bluemix DevOps Services
- What should I do if I put MS Office (e.g. .docx) or OpenOffice( e.g. .odt) document into a git repository?
- How to trigger git hooks without pushing to the repo
- How to push a Git server repository issues to Github repository?
- How to backup an AOSP project on GitHub
- How to reference comments in github.com?
- Aptana, github & remote (sftp) files
- Opening PDF in a browser with Github Pages
- I need git to include the parent directory
Related Questions in PULL-REQUEST
- How do you get a BitBucket pull request to trigger a Bamboo build?
- Post a comment on Github Pull Request via Command Line
- Why am I getting a Travis CI error on my pull request to add a schema to a file?
- On Github, see if a tag includes a pull request?
- How to configure Merge Strategies on Bitbucket Cloud?
- What is difference between Reviewers and Assignees on GitHub?
- How do I handle parallel pull requests for derived branches?
- Pull Request policies and Build in Visual Studio Team Services
- Github: Find PRs where user is a reviewer
- Github pull request for a branch of a branch
- How do you add a code block to a pull request description on github?
- How to get pull requests filter with owner using Github API
- Create a GitHub webhook for when a pull request is accepted & merged to master
- Github pull request history
- Raise a clean pull request in git
Related Questions in PYGITHUB
- How to checkout to a new branch with Pygithub?
- PyGithub `Repository.compare(base, head)` not working
- can you delete a repo via pygithub?
- query github commits from a certain date using pygithub
- What's wrong with this Python function to upload file to github?
- Using PyGithub, how do I get the last known update time for a repository?
- PyGitHub: Get avatar of user?
- pygithub - how to create a check run?
- Handle github.GithubException.GithubException: error
- repo.checkout() : Your local changes to the following files would be overwritten by checkout
- Jenkins could not checkout in in an automatically created pull request
- Upload large file (>100 MB) directly to github with pygithub
- How to append to a file using PyGithub?
- In PyGitHub, how do you set set_labels?
- What is causing 404s when merging a branch using PyGithub?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This reply should answer it for ya: https://github.com/PyGithub/PyGithub/issues/2233#issuecomment-1130520989
Based on the GitHub docs you can use
sort="created" sort="updated"etc