{"action":"created","comment":{"url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/comments/212794504","pull_request_review_id":149506149,"id":212794504,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjc5NDUwNA==","diff_hunk":"@@ -0,0 +1,314 @@\n+require 'sinatra'\n+require 'octokit'\n+require 'json'\n+require 'openssl' # Used to verify the webhook signature\n+require 'jwt'     # Used to authenticate a GitHub App\n+require 'time'    # Used to get ISO 8601 representation of a Time object\n+require 'logger'\n+\n+set :port, 3000\n+\n+\n+# This is template code to create a GitHub App server.\n+# You can read more about GitHub Apps here: # https://developer.github.com/apps/\n+#\n+# On its own, this app does absolutely nothing, except that it can be installed.\n+# It's up to you to add fun functionality!\n+# You can check out one example in advanced_server.rb.\n+#\n+# This code is a Sinatra app, for two reasons:\n+#   1. Because the app will require a landing page for installation.\n+#   2. To easily handle webhook events.\n+#\n+#\n+# Of course, not all apps need to receive and process events!\n+# Feel free to rip out the event handling code if you don't need it.\n+#\n+# Have fun!\n+#\n+\n+class GHAapp < Sinatra::Application\n+\n+  # !!! DO NOT EVER USE HARD-CODED VALUES IN A REAL APP !!!\n+  # Instead, set and read app tokens or other secrets in your code\n+  # in a runtime source, like an environment variable like below\n+\n+  # Expects that the private key has been set as an environment variable in\n+  # PEM format using the following command to replace newlines with the\n+  # literal `\\n`:\n+  #   export GITHUB_PRIVATE_KEY=`awk '{printf \"%s\\\\n\", $0}' private-key.pem`\n+  #\n+  # Converts the newlines\n+  PRIVATE_KEY = OpenSSL::PKey::RSA.new(ENV['GITHUB_PRIVATE_KEY'].gsub('\\n', \"\\n\"))\n+\n+  # Your registered app must have a secret set. The secret is used to verify\n+  # that webhooks are sent by GitHub.\n+  WEBHOOK_SECRET = ENV['GITHUB_WEBHOOK_SECRET']\n+\n+  # The GitHub App's identifier (type integer) set when registering an app.\n+  APP_IDENTIFIER = ENV['GITHUB_APP_IDENTIFIER']\n+\n+  # Turn on Sinatra's verbose logging during development\n+  configure :development do\n+    set :logging, Logger::DEBUG\n+  end\n+\n+\n+  # Before each request to the `/event_handler` route\n+  before '/event_handler' do\n+    get_payload_request(request)\n+    verify_webhook_signature\n+    authenticate_app\n+    # Authenticate each installation of the app in order to run API operations\n+    authenticate_installation(@payload)\n+  end\n+\n+\n+  post '/event_handler' do\n+    # Get the event type from the HTTP_X_GITHUB_EVENT header\n+    case request.env['HTTP_X_GITHUB_EVENT']\n+\n+    when 'check_suite'\n+      # A new check_suite has been created. Create a new check run with status queued\n+      if @payload['action'] === 'requested' || @payload['action'] === 'rerequested'\n+        create_check_run\n+      end\n+\n+    when 'check_run'\n+      # GH confirms our new check_run has been created, or rerequested. Update it to \"completed\"\n+      # Notice that we get notifications of the check runs created by _other_ systems than ours!\n+      # We need to be selective, hence the conditional on the app id. We only want to process our _own_\n+      # check runs. That's why we check if the app id is == APP_IDENTIFIER\n+      if @payload['check_run']['app']['id'].to_s === APP_IDENTIFIER\n+        case @payload['action']\n+        when 'created'\n+          initiate_check_run","path":"advanced_server.rb","position":85,"original_position":85,"commit_id":"b3e6741be49c83fd2944079b982412cba77f7eed","original_commit_id":"b3e6741be49c83fd2944079b982412cba77f7eed","user":{"login":"DEGoodmanWilson","id":521866,"node_id":"MDQ6VXNlcjUyMTg2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/521866?v=4","gravatar_id":"","url":"https://api.github.com/users/DEGoodmanWilson","html_url":"https://github.com/DEGoodmanWilson","followers_url":"https://api.github.com/users/DEGoodmanWilson/followers","following_url":"https://api.github.com/users/DEGoodmanWilson/following{/other_user}","gists_url":"https://api.github.com/users/DEGoodmanWilson/gists{/gist_id}","starred_url":"https://api.github.com/users/DEGoodmanWilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DEGoodmanWilson/subscriptions","organizations_url":"https://api.github.com/users/DEGoodmanWilson/orgs","repos_url":"https://api.github.com/users/DEGoodmanWilson/repos","events_url":"https://api.github.com/users/DEGoodmanWilson/events{/privacy}","received_events_url":"https://api.github.com/users/DEGoodmanWilson/received_events","type":"User","site_admin":true},"body":"I wanted to guarantee the timing of things on the server side, rather than assuming that GitHub will receive and act on the response—so the code would be more robust in the face of GH failures.","created_at":"2018-08-25T09:52:43Z","updated_at":"2018-08-25T09:52:43Z","html_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server/pull/1#discussion_r212794504","pull_request_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/comments/212794504"},"html":{"href":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server/pull/1#discussion_r212794504"},"pull_request":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/1"}},"in_reply_to_id":212763747},"pull_request":{"url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/1","id":208916293,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4OTE2Mjkz","html_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server/pull/1","diff_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server/pull/1.diff","patch_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server/pull/1.patch","issue_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues/1","number":1,"state":"open","locked":false,"title":"Adding intial working version of checks ci server","user":{"login":"rachmari","id":9831992,"node_id":"MDQ6VXNlcjk4MzE5OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/9831992?v=4","gravatar_id":"","url":"https://api.github.com/users/rachmari","html_url":"https://github.com/rachmari","followers_url":"https://api.github.com/users/rachmari/followers","following_url":"https://api.github.com/users/rachmari/following{/other_user}","gists_url":"https://api.github.com/users/rachmari/gists{/gist_id}","starred_url":"https://api.github.com/users/rachmari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachmari/subscriptions","organizations_url":"https://api.github.com/users/rachmari/orgs","repos_url":"https://api.github.com/users/rachmari/repos","events_url":"https://api.github.com/users/rachmari/events{/privacy}","received_events_url":"https://api.github.com/users/rachmari/received_events","type":"User","site_admin":true},"body":"This updates the `server.rb` file to perform authentication, webhook signature verification, and payload conversion (to JSON) in `helpers` methods called by the `before` filter. This creates a template where the entire route can be implemented in a quickstart. We explain what this code does in the updates made to the \"Building your first GitHub App\" quickstart before having readers modify code. \r\n\r\nThe `advanced_server.rb` file sets up check runs and also performs a CI test using Rubocop. The messages that Rubocop reports are annotated in the Checks tab. A \"Fix it\" button is displayed that will automatically correct errors that Rubocop can fix and submits the changes to the PR. ","created_at":"2018-08-16T16:29:37Z","updated_at":"2018-08-25T09:52:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b36d8b50f0e0e33187202d393890383e190b279b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"francisfuzz","id":15894826,"node_id":"MDQ6VXNlcjE1ODk0ODI2","avatar_url":"https://avatars0.githubusercontent.com/u/15894826?v=4","gravatar_id":"","url":"https://api.github.com/users/francisfuzz","html_url":"https://github.com/francisfuzz","followers_url":"https://api.github.com/users/francisfuzz/followers","following_url":"https://api.github.com/users/francisfuzz/following{/other_user}","gists_url":"https://api.github.com/users/francisfuzz/gists{/gist_id}","starred_url":"https://api.github.com/users/francisfuzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisfuzz/subscriptions","organizations_url":"https://api.github.com/users/francisfuzz/orgs","repos_url":"https://api.github.com/users/francisfuzz/repos","events_url":"https://api.github.com/users/francisfuzz/events{/privacy}","received_events_url":"https://api.github.com/users/francisfuzz/received_events","type":"User","site_admin":true}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/1/commits","review_comments_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/1/comments","review_comment_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues/1/comments","statuses_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/statuses/b3e6741be49c83fd2944079b982412cba77f7eed","head":{"label":"github-developer-docs-samples:first-revision","ref":"first-revision","sha":"b3e6741be49c83fd2944079b982412cba77f7eed","user":{"login":"github-developer-docs-samples","id":42419865,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDE5ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/42419865?v=4","gravatar_id":"","url":"https://api.github.com/users/github-developer-docs-samples","html_url":"https://github.com/github-developer-docs-samples","followers_url":"https://api.github.com/users/github-developer-docs-samples/followers","following_url":"https://api.github.com/users/github-developer-docs-samples/following{/other_user}","gists_url":"https://api.github.com/users/github-developer-docs-samples/gists{/gist_id}","starred_url":"https://api.github.com/users/github-developer-docs-samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-developer-docs-samples/subscriptions","organizations_url":"https://api.github.com/users/github-developer-docs-samples/orgs","repos_url":"https://api.github.com/users/github-developer-docs-samples/repos","events_url":"https://api.github.com/users/github-developer-docs-samples/events{/privacy}","received_events_url":"https://api.github.com/users/github-developer-docs-samples/received_events","type":"Organization","site_admin":false},"repo":{"id":145012597,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwMTI1OTc=","name":"building-a-checks-api-ci-server","full_name":"github-developer-docs-samples/building-a-checks-api-ci-server","owner":{"login":"github-developer-docs-samples","id":42419865,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDE5ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/42419865?v=4","gravatar_id":"","url":"https://api.github.com/users/github-developer-docs-samples","html_url":"https://github.com/github-developer-docs-samples","followers_url":"https://api.github.com/users/github-developer-docs-samples/followers","following_url":"https://api.github.com/users/github-developer-docs-samples/following{/other_user}","gists_url":"https://api.github.com/users/github-developer-docs-samples/gists{/gist_id}","starred_url":"https://api.github.com/users/github-developer-docs-samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-developer-docs-samples/subscriptions","organizations_url":"https://api.github.com/users/github-developer-docs-samples/orgs","repos_url":"https://api.github.com/users/github-developer-docs-samples/repos","events_url":"https://api.github.com/users/github-developer-docs-samples/events{/privacy}","received_events_url":"https://api.github.com/users/github-developer-docs-samples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server","description":null,"fork":false,"url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server","forks_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/forks","keys_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/teams","hooks_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/hooks","issue_events_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues/events{/number}","events_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/events","assignees_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/assignees{/user}","branches_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/branches{/branch}","tags_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/tags","blobs_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/statuses/{sha}","languages_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/languages","stargazers_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/stargazers","contributors_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/contributors","subscribers_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/subscribers","subscription_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/subscription","commits_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/contents/{+path}","compare_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/merges","archive_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/downloads","issues_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues{/number}","pulls_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls{/number}","milestones_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/milestones{/number}","notifications_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/labels{/name}","releases_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/releases{/id}","deployments_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/deployments","created_at":"2018-08-16T16:19:52Z","updated_at":"2018-08-16T16:19:54Z","pushed_at":"2018-08-16T20:51:26Z","git_url":"git://github.com/github-developer-docs-samples/building-a-checks-api-ci-server.git","ssh_url":"git@github.com:github-developer-docs-samples/building-a-checks-api-ci-server.git","clone_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server.git","svn_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"github-developer-docs-samples:master","ref":"master","sha":"f9da9158f17984d82401ebedec8d15e9260ac65c","user":{"login":"github-developer-docs-samples","id":42419865,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDE5ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/42419865?v=4","gravatar_id":"","url":"https://api.github.com/users/github-developer-docs-samples","html_url":"https://github.com/github-developer-docs-samples","followers_url":"https://api.github.com/users/github-developer-docs-samples/followers","following_url":"https://api.github.com/users/github-developer-docs-samples/following{/other_user}","gists_url":"https://api.github.com/users/github-developer-docs-samples/gists{/gist_id}","starred_url":"https://api.github.com/users/github-developer-docs-samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-developer-docs-samples/subscriptions","organizations_url":"https://api.github.com/users/github-developer-docs-samples/orgs","repos_url":"https://api.github.com/users/github-developer-docs-samples/repos","events_url":"https://api.github.com/users/github-developer-docs-samples/events{/privacy}","received_events_url":"https://api.github.com/users/github-developer-docs-samples/received_events","type":"Organization","site_admin":false},"repo":{"id":145012597,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwMTI1OTc=","name":"building-a-checks-api-ci-server","full_name":"github-developer-docs-samples/building-a-checks-api-ci-server","owner":{"login":"github-developer-docs-samples","id":42419865,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDE5ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/42419865?v=4","gravatar_id":"","url":"https://api.github.com/users/github-developer-docs-samples","html_url":"https://github.com/github-developer-docs-samples","followers_url":"https://api.github.com/users/github-developer-docs-samples/followers","following_url":"https://api.github.com/users/github-developer-docs-samples/following{/other_user}","gists_url":"https://api.github.com/users/github-developer-docs-samples/gists{/gist_id}","starred_url":"https://api.github.com/users/github-developer-docs-samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-developer-docs-samples/subscriptions","organizations_url":"https://api.github.com/users/github-developer-docs-samples/orgs","repos_url":"https://api.github.com/users/github-developer-docs-samples/repos","events_url":"https://api.github.com/users/github-developer-docs-samples/events{/privacy}","received_events_url":"https://api.github.com/users/github-developer-docs-samples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server","description":null,"fork":false,"url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server","forks_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/forks","keys_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/teams","hooks_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/hooks","issue_events_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues/events{/number}","events_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/events","assignees_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/assignees{/user}","branches_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/branches{/branch}","tags_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/tags","blobs_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/statuses/{sha}","languages_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/languages","stargazers_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/stargazers","contributors_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/contributors","subscribers_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/subscribers","subscription_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/subscription","commits_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/contents/{+path}","compare_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/merges","archive_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/downloads","issues_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues{/number}","pulls_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls{/number}","milestones_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/milestones{/number}","notifications_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/labels{/name}","releases_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/releases{/id}","deployments_url":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/deployments","created_at":"2018-08-16T16:19:52Z","updated_at":"2018-08-16T16:19:54Z","pushed_at":"2018-08-16T20:51:26Z","git_url":"git://github.com/github-developer-docs-samples/building-a-checks-api-ci-server.git","ssh_url":"git@github.com:github-developer-docs-samples/building-a-checks-api-ci-server.git","clone_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server.git","svn_url":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/1"},"html":{"href":"https://github.com/github-developer-docs-samples/building-a-checks-api-ci-server/pull/1"},"issue":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues/1"},"comments":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/github-developer-docs-samples/building-a-checks-api-ci-server/statuses/b3e6741be49c83fd2944079b982412cba77f7eed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"DEGoodmanWilson"}}