Skip to content
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 mergeable field to _PullRequest #1007

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/github3/pulls.py
Expand Up @@ -217,6 +217,7 @@ def _update_attributes(self, pull):
self.issue_url = pull["issue_url"]
self.links = pull["_links"]
self.merge_commit_sha = pull["merge_commit_sha"]
self.mergeable = pull["mergeable"]
self.merged_at = self._strptime(pull["merged_at"])
self.number = pull["number"]
self.patch_url = pull["patch_url"]
Expand Down Expand Up @@ -826,6 +827,11 @@ class ShortPullRequest(_PullRequest):
the base branch or the commit that the base branch was updated to
after rebasing the PR.

.. attribute:: mergeable

A boolean attribute indicating whether GitHub deems this pull request
is mergeable.

.. attribute:: merged_at

A :class:`~datetime.datetime` object representing the date and time
Expand Down