{"action":"created","comment":{"url":"https://api.github.com/repos/education/classroom/pulls/comments/131210653","pull_request_review_id":54168223,"id":131210653,"diff_hunk":"@@ -40,11 +40,50 @@ def invite(user, **options)\n     end\n   end\n \n+  # Public: Get all labels of a GitHub repository.\n+  #\n+  # Returns a list of labels\n+  def labels(options = {})\n+    GitHub::Errors.with_error_handling do\n+      @client.labels(full_name, options)\n+    end\n+  rescue GitHub::Errors","path":"app/models/github_repository.rb","position":11,"original_position":11,"commit_id":"fff896a825f1983357d8d4b657b34b44ca71b136","original_commit_id":"fff896a825f1983357d8d4b657b34b44ca71b136","user":{"login":"nwoodthorpe","id":4149056,"avatar_url":"https://avatars3.githubusercontent.com/u/4149056?v=4","gravatar_id":"","url":"https://api.github.com/users/nwoodthorpe","html_url":"https://github.com/nwoodthorpe","followers_url":"https://api.github.com/users/nwoodthorpe/followers","following_url":"https://api.github.com/users/nwoodthorpe/following{/other_user}","gists_url":"https://api.github.com/users/nwoodthorpe/gists{/gist_id}","starred_url":"https://api.github.com/users/nwoodthorpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwoodthorpe/subscriptions","organizations_url":"https://api.github.com/users/nwoodthorpe/orgs","repos_url":"https://api.github.com/users/nwoodthorpe/repos","events_url":"https://api.github.com/users/nwoodthorpe/events{/privacy}","received_events_url":"https://api.github.com/users/nwoodthorpe/received_events","type":"User","site_admin":false},"body":"This should rescue `GitHub::Error`","created_at":"2017-08-03T17:37:55Z","updated_at":"2017-08-03T17:51:24Z","html_url":"https://github.com/education/classroom/pull/1058#discussion_r131210653","pull_request_url":"https://api.github.com/repos/education/classroom/pulls/1058","_links":{"self":{"href":"https://api.github.com/repos/education/classroom/pulls/comments/131210653"},"html":{"href":"https://github.com/education/classroom/pull/1058#discussion_r131210653"},"pull_request":{"href":"https://api.github.com/repos/education/classroom/pulls/1058"}}},"pull_request":{"url":"https://api.github.com/repos/education/classroom/pulls/1058","id":133822521,"html_url":"https://github.com/education/classroom/pull/1058","diff_url":"https://github.com/education/classroom/pull/1058.diff","patch_url":"https://github.com/education/classroom/pull/1058.patch","issue_url":"https://api.github.com/repos/education/classroom/issues/1058","number":1058,"state":"open","locked":false,"title":"Initialize repo with labels during Repo Setup","user":{"login":"wilfriedE","id":1964213,"avatar_url":"https://avatars1.githubusercontent.com/u/1964213?v=4","gravatar_id":"","url":"https://api.github.com/users/wilfriedE","html_url":"https://github.com/wilfriedE","followers_url":"https://api.github.com/users/wilfriedE/followers","following_url":"https://api.github.com/users/wilfriedE/following{/other_user}","gists_url":"https://api.github.com/users/wilfriedE/gists{/gist_id}","starred_url":"https://api.github.com/users/wilfriedE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilfriedE/subscriptions","organizations_url":"https://api.github.com/users/wilfriedE/orgs","repos_url":"https://api.github.com/users/wilfriedE/repos","events_url":"https://api.github.com/users/wilfriedE/events{/privacy}","received_events_url":"https://api.github.com/users/wilfriedE/received_events","type":"User","site_admin":false},"body":"As part of #937.\r\n\r\nRemoves existing labels from repo if labels are specified in `github-classroom` branch. \r\nCreates labels.\r\nAdds labels to issues.\r\n\r\n/refs #971, #972 ","created_at":"2017-08-02T22:25:29Z","updated_at":"2017-08-03T17:51:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1ce51222197a25488bdb35be8c77b0acfa6d542","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tarebyte","id":564113,"avatar_url":"https://avatars2.githubusercontent.com/u/564113?v=4","gravatar_id":"","url":"https://api.github.com/users/tarebyte","html_url":"https://github.com/tarebyte","followers_url":"https://api.github.com/users/tarebyte/followers","following_url":"https://api.github.com/users/tarebyte/following{/other_user}","gists_url":"https://api.github.com/users/tarebyte/gists{/gist_id}","starred_url":"https://api.github.com/users/tarebyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarebyte/subscriptions","organizations_url":"https://api.github.com/users/tarebyte/orgs","repos_url":"https://api.github.com/users/tarebyte/repos","events_url":"https://api.github.com/users/tarebyte/events{/privacy}","received_events_url":"https://api.github.com/users/tarebyte/received_events","type":"User","site_admin":true}],"milestone":null,"commits_url":"https://api.github.com/repos/education/classroom/pulls/1058/commits","review_comments_url":"https://api.github.com/repos/education/classroom/pulls/1058/comments","review_comment_url":"https://api.github.com/repos/education/classroom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/education/classroom/issues/1058/comments","statuses_url":"https://api.github.com/repos/education/classroom/statuses/fff896a825f1983357d8d4b657b34b44ca71b136","head":{"label":"education:wilfriede/labels-init","ref":"wilfriede/labels-init","sha":"fff896a825f1983357d8d4b657b34b44ca71b136","user":{"login":"education","id":6667880,"avatar_url":"https://avatars2.githubusercontent.com/u/6667880?v=4","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"repo":{"id":35079964,"name":"classroom","full_name":"education/classroom","owner":{"login":"education","id":6667880,"avatar_url":"https://avatars2.githubusercontent.com/u/6667880?v=4","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/education/classroom","description":"GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.","fork":false,"url":"https://api.github.com/repos/education/classroom","forks_url":"https://api.github.com/repos/education/classroom/forks","keys_url":"https://api.github.com/repos/education/classroom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/education/classroom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/education/classroom/teams","hooks_url":"https://api.github.com/repos/education/classroom/hooks","issue_events_url":"https://api.github.com/repos/education/classroom/issues/events{/number}","events_url":"https://api.github.com/repos/education/classroom/events","assignees_url":"https://api.github.com/repos/education/classroom/assignees{/user}","branches_url":"https://api.github.com/repos/education/classroom/branches{/branch}","tags_url":"https://api.github.com/repos/education/classroom/tags","blobs_url":"https://api.github.com/repos/education/classroom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/education/classroom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/education/classroom/git/refs{/sha}","trees_url":"https://api.github.com/repos/education/classroom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/education/classroom/statuses/{sha}","languages_url":"https://api.github.com/repos/education/classroom/languages","stargazers_url":"https://api.github.com/repos/education/classroom/stargazers","contributors_url":"https://api.github.com/repos/education/classroom/contributors","subscribers_url":"https://api.github.com/repos/education/classroom/subscribers","subscription_url":"https://api.github.com/repos/education/classroom/subscription","commits_url":"https://api.github.com/repos/education/classroom/commits{/sha}","git_commits_url":"https://api.github.com/repos/education/classroom/git/commits{/sha}","comments_url":"https://api.github.com/repos/education/classroom/comments{/number}","issue_comment_url":"https://api.github.com/repos/education/classroom/issues/comments{/number}","contents_url":"https://api.github.com/repos/education/classroom/contents/{+path}","compare_url":"https://api.github.com/repos/education/classroom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/education/classroom/merges","archive_url":"https://api.github.com/repos/education/classroom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/education/classroom/downloads","issues_url":"https://api.github.com/repos/education/classroom/issues{/number}","pulls_url":"https://api.github.com/repos/education/classroom/pulls{/number}","milestones_url":"https://api.github.com/repos/education/classroom/milestones{/number}","notifications_url":"https://api.github.com/repos/education/classroom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/education/classroom/labels{/name}","releases_url":"https://api.github.com/repos/education/classroom/releases{/id}","deployments_url":"https://api.github.com/repos/education/classroom/deployments","created_at":"2015-05-05T05:33:50Z","updated_at":"2017-08-02T17:47:52Z","pushed_at":"2017-08-03T16:57:37Z","git_url":"git://github.com/education/classroom.git","ssh_url":"git@github.com:education/classroom.git","clone_url":"https://github.com/education/classroom.git","svn_url":"https://github.com/education/classroom","homepage":"https://classroom.github.com","size":26426,"stargazers_count":628,"watchers_count":628,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":170,"mirror_url":null,"open_issues_count":77,"forks":170,"open_issues":77,"watchers":628,"default_branch":"master"}},"base":{"label":"education:master","ref":"master","sha":"908e09470b0bcffaba667bd8bc231901540036ae","user":{"login":"education","id":6667880,"avatar_url":"https://avatars2.githubusercontent.com/u/6667880?v=4","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"repo":{"id":35079964,"name":"classroom","full_name":"education/classroom","owner":{"login":"education","id":6667880,"avatar_url":"https://avatars2.githubusercontent.com/u/6667880?v=4","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/education/classroom","description":"GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.","fork":false,"url":"https://api.github.com/repos/education/classroom","forks_url":"https://api.github.com/repos/education/classroom/forks","keys_url":"https://api.github.com/repos/education/classroom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/education/classroom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/education/classroom/teams","hooks_url":"https://api.github.com/repos/education/classroom/hooks","issue_events_url":"https://api.github.com/repos/education/classroom/issues/events{/number}","events_url":"https://api.github.com/repos/education/classroom/events","assignees_url":"https://api.github.com/repos/education/classroom/assignees{/user}","branches_url":"https://api.github.com/repos/education/classroom/branches{/branch}","tags_url":"https://api.github.com/repos/education/classroom/tags","blobs_url":"https://api.github.com/repos/education/classroom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/education/classroom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/education/classroom/git/refs{/sha}","trees_url":"https://api.github.com/repos/education/classroom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/education/classroom/statuses/{sha}","languages_url":"https://api.github.com/repos/education/classroom/languages","stargazers_url":"https://api.github.com/repos/education/classroom/stargazers","contributors_url":"https://api.github.com/repos/education/classroom/contributors","subscribers_url":"https://api.github.com/repos/education/classroom/subscribers","subscription_url":"https://api.github.com/repos/education/classroom/subscription","commits_url":"https://api.github.com/repos/education/classroom/commits{/sha}","git_commits_url":"https://api.github.com/repos/education/classroom/git/commits{/sha}","comments_url":"https://api.github.com/repos/education/classroom/comments{/number}","issue_comment_url":"https://api.github.com/repos/education/classroom/issues/comments{/number}","contents_url":"https://api.github.com/repos/education/classroom/contents/{+path}","compare_url":"https://api.github.com/repos/education/classroom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/education/classroom/merges","archive_url":"https://api.github.com/repos/education/classroom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/education/classroom/downloads","issues_url":"https://api.github.com/repos/education/classroom/issues{/number}","pulls_url":"https://api.github.com/repos/education/classroom/pulls{/number}","milestones_url":"https://api.github.com/repos/education/classroom/milestones{/number}","notifications_url":"https://api.github.com/repos/education/classroom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/education/classroom/labels{/name}","releases_url":"https://api.github.com/repos/education/classroom/releases{/id}","deployments_url":"https://api.github.com/repos/education/classroom/deployments","created_at":"2015-05-05T05:33:50Z","updated_at":"2017-08-02T17:47:52Z","pushed_at":"2017-08-03T16:57:37Z","git_url":"git://github.com/education/classroom.git","ssh_url":"git@github.com:education/classroom.git","clone_url":"https://github.com/education/classroom.git","svn_url":"https://github.com/education/classroom","homepage":"https://classroom.github.com","size":26426,"stargazers_count":628,"watchers_count":628,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":170,"mirror_url":null,"open_issues_count":77,"forks":170,"open_issues":77,"watchers":628,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/education/classroom/pulls/1058"},"html":{"href":"https://github.com/education/classroom/pull/1058"},"issue":{"href":"https://api.github.com/repos/education/classroom/issues/1058"},"comments":{"href":"https://api.github.com/repos/education/classroom/issues/1058/comments"},"review_comments":{"href":"https://api.github.com/repos/education/classroom/pulls/1058/comments"},"review_comment":{"href":"https://api.github.com/repos/education/classroom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/education/classroom/pulls/1058/commits"},"statuses":{"href":"https://api.github.com/repos/education/classroom/statuses/fff896a825f1983357d8d4b657b34b44ca71b136"}}}}
{"actor":{"display_login":"nwoodthorpe"}}