{"action":"created","comment":{"url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/comments/211823912","pull_request_review_id":148326635,"id":211823912,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTgyMzkxMg==","diff_hunk":"@@ -0,0 +1,281 @@\n+# -*- coding: utf-8 -*-\n+\"\"\"This module contains all the classes relating to Checks.\"\"\"\n+from __future__ import unicode_literals\n+\n+from json import dumps\n+\n+from . import models\n+from .decorators import requires_auth\n+\n+\n+class CheckSuite(models.GitHubCore):\n+    \"\"\"The :class:`CheckSuite <CheckSuite>` object.\n+\n+    .. versionadded:: 1.2.0\n+\n+    Please see GitHub's `CheckSuite Documentation`_ for more information.\n+\n+    .. attribute:: status\n+\n+        The status of the Check Suite\n+\n+    .. attribute:: conclusion\n+\n+        The highest priority check run conclusion. If it has not completed this\n+        will be None\n+\n+    .. attribute:: head_sha\n+\n+        The sha of the commit at the head of the branch checked\n+\n+    .. attribute:: head_branch\n+\n+        The branch checked\n+\n+    .. attribute:: before\n+\n+        The sha of the target branch before the change\n+\n+    .. attribute:: after\n+\n+        The sha of the target branch after the change is applied\n+\n+    .. attribute:: repository\n+\n+        A representation of the repository the suite belongs to as\n+        :class:`~github3.repos.repo.ShortRepository`.\n+\n+    .. attribute:: pull_requests\n+\n+        A list of representations of the pull requests the suite belongs to as\n+        :class:`~github3.pulls.ShortPullRequest`. This may be empty.\n+\n+    .. attribute:: id\n+\n+        The unique GitHub assigned numerical id of this check suite.\n+\n+    .. CheckSuite Documentation:\n+        http://developer.github.com/v3/checks/suites/\n+    \"\"\"\n+\n+    class_name = 'CheckSuite'\n+    CUSTOM_HEADERS = {\n+        'Accept': 'application/vnd.github.antiope-preview+json'\n+    }\n+\n+    def _update_attributes(self, suite):\n+        # Import here, because a toplevel import causes an import loop\n+        from . import pulls\n+        from .repos import ShortRepository\n+        self._api = suite['url']\n+        # self.base = Base(pull['base'], self)\n+        self.status = suite['status']\n+        self.conclusion = suite['conclusion']\n+        self.head_branch = suite['head_branch']\n+        self.head_sha = suite['head_sha']\n+        self.before = suite['before']\n+        self.after = suite['after']\n+        pull_requests = suite.get('pull_requests', [])\n+        self.pull_requests = [\n+            pulls.ShortPullRequest(p, self) for p in pull_requests\n+        ]\n+        self.repository = ShortRepository(suite['repository'], self)\n+        self.id = suite['id']\n+\n+    def _repr(self):\n+        return '<{0} [{1}]>'.format(self.class_name, self.id)","path":"src/github3/checks.py","position":86,"original_position":86,"commit_id":"fb08b319a1789a7c79c425b57bfef178e98f14ec","original_commit_id":"fb08b319a1789a7c79c425b57bfef178e98f14ec","user":{"login":"omgjlk","id":523287,"node_id":"MDQ6VXNlcjUyMzI4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/523287?v=4","gravatar_id":"","url":"https://api.github.com/users/omgjlk","html_url":"https://github.com/omgjlk","followers_url":"https://api.github.com/users/omgjlk/followers","following_url":"https://api.github.com/users/omgjlk/following{/other_user}","gists_url":"https://api.github.com/users/omgjlk/gists{/gist_id}","starred_url":"https://api.github.com/users/omgjlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omgjlk/subscriptions","organizations_url":"https://api.github.com/users/omgjlk/orgs","repos_url":"https://api.github.com/users/omgjlk/repos","events_url":"https://api.github.com/users/omgjlk/events{/privacy}","received_events_url":"https://api.github.com/users/omgjlk/received_events","type":"User","site_admin":true},"body":"Done.","created_at":"2018-08-22T04:07:32Z","updated_at":"2018-08-22T04:07:32Z","html_url":"https://github.com/sigmavirus24/github3.py/pull/888#discussion_r211823912","pull_request_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/888","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/comments/211823912"},"html":{"href":"https://github.com/sigmavirus24/github3.py/pull/888#discussion_r211823912"},"pull_request":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/888"}},"in_reply_to_id":211784605},"pull_request":{"url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/888","id":209287412,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5Mjg3NDEy","html_url":"https://github.com/sigmavirus24/github3.py/pull/888","diff_url":"https://github.com/sigmavirus24/github3.py/pull/888.diff","patch_url":"https://github.com/sigmavirus24/github3.py/pull/888.patch","issue_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/888","number":888,"state":"open","locked":false,"title":"[WIP] Adding support for Checks API","user":{"login":"omgjlk","id":523287,"node_id":"MDQ6VXNlcjUyMzI4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/523287?v=4","gravatar_id":"","url":"https://api.github.com/users/omgjlk","html_url":"https://github.com/omgjlk","followers_url":"https://api.github.com/users/omgjlk/followers","following_url":"https://api.github.com/users/omgjlk/following{/other_user}","gists_url":"https://api.github.com/users/omgjlk/gists{/gist_id}","starred_url":"https://api.github.com/users/omgjlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omgjlk/subscriptions","organizations_url":"https://api.github.com/users/omgjlk/orgs","repos_url":"https://api.github.com/users/omgjlk/repos","events_url":"https://api.github.com/users/omgjlk/events{/privacy}","received_events_url":"https://api.github.com/users/omgjlk/received_events","type":"User","site_admin":true},"body":"This pull request adds support for interacting with the Checks API.\n\nSee #887 for all the details.\n\nEach commit has a message with more details as well.\n\nResolves: #887","created_at":"2018-08-18T01:25:25Z","updated_at":"2018-08-22T04:07:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5358124dd1edb62041137439b8cb5f5a70e0457","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/888/commits","review_comments_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/888/comments","review_comment_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/888/comments","statuses_url":"https://api.github.com/repos/sigmavirus24/github3.py/statuses/fb08b319a1789a7c79c425b57bfef178e98f14ec","head":{"label":"omgjlk:checks-and-balances","ref":"checks-and-balances","sha":"fb08b319a1789a7c79c425b57bfef178e98f14ec","user":{"login":"omgjlk","id":523287,"node_id":"MDQ6VXNlcjUyMzI4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/523287?v=4","gravatar_id":"","url":"https://api.github.com/users/omgjlk","html_url":"https://github.com/omgjlk","followers_url":"https://api.github.com/users/omgjlk/followers","following_url":"https://api.github.com/users/omgjlk/following{/other_user}","gists_url":"https://api.github.com/users/omgjlk/gists{/gist_id}","starred_url":"https://api.github.com/users/omgjlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omgjlk/subscriptions","organizations_url":"https://api.github.com/users/omgjlk/orgs","repos_url":"https://api.github.com/users/omgjlk/repos","events_url":"https://api.github.com/users/omgjlk/events{/privacy}","received_events_url":"https://api.github.com/users/omgjlk/received_events","type":"User","site_admin":true},"repo":{"id":80052330,"node_id":"MDEwOlJlcG9zaXRvcnk4MDA1MjMzMA==","name":"github3.py","full_name":"omgjlk/github3.py","owner":{"login":"omgjlk","id":523287,"node_id":"MDQ6VXNlcjUyMzI4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/523287?v=4","gravatar_id":"","url":"https://api.github.com/users/omgjlk","html_url":"https://github.com/omgjlk","followers_url":"https://api.github.com/users/omgjlk/followers","following_url":"https://api.github.com/users/omgjlk/following{/other_user}","gists_url":"https://api.github.com/users/omgjlk/gists{/gist_id}","starred_url":"https://api.github.com/users/omgjlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omgjlk/subscriptions","organizations_url":"https://api.github.com/users/omgjlk/orgs","repos_url":"https://api.github.com/users/omgjlk/repos","events_url":"https://api.github.com/users/omgjlk/events{/privacy}","received_events_url":"https://api.github.com/users/omgjlk/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/omgjlk/github3.py","description":"Python library for interfacing with the GitHub APIv3","fork":true,"url":"https://api.github.com/repos/omgjlk/github3.py","forks_url":"https://api.github.com/repos/omgjlk/github3.py/forks","keys_url":"https://api.github.com/repos/omgjlk/github3.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omgjlk/github3.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omgjlk/github3.py/teams","hooks_url":"https://api.github.com/repos/omgjlk/github3.py/hooks","issue_events_url":"https://api.github.com/repos/omgjlk/github3.py/issues/events{/number}","events_url":"https://api.github.com/repos/omgjlk/github3.py/events","assignees_url":"https://api.github.com/repos/omgjlk/github3.py/assignees{/user}","branches_url":"https://api.github.com/repos/omgjlk/github3.py/branches{/branch}","tags_url":"https://api.github.com/repos/omgjlk/github3.py/tags","blobs_url":"https://api.github.com/repos/omgjlk/github3.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omgjlk/github3.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omgjlk/github3.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/omgjlk/github3.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omgjlk/github3.py/statuses/{sha}","languages_url":"https://api.github.com/repos/omgjlk/github3.py/languages","stargazers_url":"https://api.github.com/repos/omgjlk/github3.py/stargazers","contributors_url":"https://api.github.com/repos/omgjlk/github3.py/contributors","subscribers_url":"https://api.github.com/repos/omgjlk/github3.py/subscribers","subscription_url":"https://api.github.com/repos/omgjlk/github3.py/subscription","commits_url":"https://api.github.com/repos/omgjlk/github3.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/omgjlk/github3.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/omgjlk/github3.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/omgjlk/github3.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/omgjlk/github3.py/contents/{+path}","compare_url":"https://api.github.com/repos/omgjlk/github3.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omgjlk/github3.py/merges","archive_url":"https://api.github.com/repos/omgjlk/github3.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omgjlk/github3.py/downloads","issues_url":"https://api.github.com/repos/omgjlk/github3.py/issues{/number}","pulls_url":"https://api.github.com/repos/omgjlk/github3.py/pulls{/number}","milestones_url":"https://api.github.com/repos/omgjlk/github3.py/milestones{/number}","notifications_url":"https://api.github.com/repos/omgjlk/github3.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omgjlk/github3.py/labels{/name}","releases_url":"https://api.github.com/repos/omgjlk/github3.py/releases{/id}","deployments_url":"https://api.github.com/repos/omgjlk/github3.py/deployments","created_at":"2017-01-25T20:01:00Z","updated_at":"2017-01-25T20:01:05Z","pushed_at":"2018-08-18T01:57:29Z","git_url":"git://github.com/omgjlk/github3.py.git","ssh_url":"git@github.com:omgjlk/github3.py.git","clone_url":"https://github.com/omgjlk/github3.py.git","svn_url":"https://github.com/omgjlk/github3.py","homepage":"https://github3py.readthedocs.io","size":52372,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"sigmavirus24:master","ref":"master","sha":"b8e7aa8eb221cd1eec7a8bc002b75de8098dc77a","user":{"login":"sigmavirus24","id":240830,"node_id":"MDQ6VXNlcjI0MDgzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/240830?v=4","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"repo":{"id":3710711,"node_id":"MDEwOlJlcG9zaXRvcnkzNzEwNzEx","name":"github3.py","full_name":"sigmavirus24/github3.py","owner":{"login":"sigmavirus24","id":240830,"node_id":"MDQ6VXNlcjI0MDgzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/240830?v=4","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sigmavirus24/github3.py","description":"Hi, I'm a library for interacting with GItHub's REST API in a convenient and ergonomic way. I work on Python 2.7, 3.4, 3.5, and 3.6","fork":false,"url":"https://api.github.com/repos/sigmavirus24/github3.py","forks_url":"https://api.github.com/repos/sigmavirus24/github3.py/forks","keys_url":"https://api.github.com/repos/sigmavirus24/github3.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sigmavirus24/github3.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sigmavirus24/github3.py/teams","hooks_url":"https://api.github.com/repos/sigmavirus24/github3.py/hooks","issue_events_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/events{/number}","events_url":"https://api.github.com/repos/sigmavirus24/github3.py/events","assignees_url":"https://api.github.com/repos/sigmavirus24/github3.py/assignees{/user}","branches_url":"https://api.github.com/repos/sigmavirus24/github3.py/branches{/branch}","tags_url":"https://api.github.com/repos/sigmavirus24/github3.py/tags","blobs_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sigmavirus24/github3.py/statuses/{sha}","languages_url":"https://api.github.com/repos/sigmavirus24/github3.py/languages","stargazers_url":"https://api.github.com/repos/sigmavirus24/github3.py/stargazers","contributors_url":"https://api.github.com/repos/sigmavirus24/github3.py/contributors","subscribers_url":"https://api.github.com/repos/sigmavirus24/github3.py/subscribers","subscription_url":"https://api.github.com/repos/sigmavirus24/github3.py/subscription","commits_url":"https://api.github.com/repos/sigmavirus24/github3.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/sigmavirus24/github3.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/sigmavirus24/github3.py/contents/{+path}","compare_url":"https://api.github.com/repos/sigmavirus24/github3.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sigmavirus24/github3.py/merges","archive_url":"https://api.github.com/repos/sigmavirus24/github3.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sigmavirus24/github3.py/downloads","issues_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues{/number}","pulls_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls{/number}","milestones_url":"https://api.github.com/repos/sigmavirus24/github3.py/milestones{/number}","notifications_url":"https://api.github.com/repos/sigmavirus24/github3.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sigmavirus24/github3.py/labels{/name}","releases_url":"https://api.github.com/repos/sigmavirus24/github3.py/releases{/id}","deployments_url":"https://api.github.com/repos/sigmavirus24/github3.py/deployments","created_at":"2012-03-13T19:58:53Z","updated_at":"2018-08-21T21:08:17Z","pushed_at":"2018-08-21T21:08:19Z","git_url":"git://github.com/sigmavirus24/github3.py.git","ssh_url":"git@github.com:sigmavirus24/github3.py.git","clone_url":"https://github.com/sigmavirus24/github3.py.git","svn_url":"https://github.com/sigmavirus24/github3.py","homepage":"https://github3.readthedocs.io","size":52385,"stargazers_count":816,"watchers_count":816,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":302,"mirror_url":null,"archived":false,"open_issues_count":50,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":302,"open_issues":50,"watchers":816,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/888"},"html":{"href":"https://github.com/sigmavirus24/github3.py/pull/888"},"issue":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/issues/888"},"comments":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/issues/888/comments"},"review_comments":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/888/comments"},"review_comment":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/888/commits"},"statuses":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/statuses/fb08b319a1789a7c79c425b57bfef178e98f14ec"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"omgjlk"}}