{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/reptileinx-org/xthobile/pulls/2","id":235547655,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NTQ3NjU1","html_url":"https://github.com/reptileinx-org/xthobile/pull/2","diff_url":"https://github.com/reptileinx-org/xthobile/pull/2.diff","patch_url":"https://github.com/reptileinx-org/xthobile/pull/2.patch","issue_url":"https://api.github.com/repos/reptileinx-org/xthobile/issues/2","number":2,"state":"open","locked":false,"title":"Attempt to add dev notify","user":{"login":"reptileinx","id":8100736,"node_id":"MDQ6VXNlcjgxMDA3MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/8100736?v=4","gravatar_id":"","url":"https://api.github.com/users/reptileinx","html_url":"https://github.com/reptileinx","followers_url":"https://api.github.com/users/reptileinx/followers","following_url":"https://api.github.com/users/reptileinx/following{/other_user}","gists_url":"https://api.github.com/users/reptileinx/gists{/gist_id}","starred_url":"https://api.github.com/users/reptileinx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reptileinx/subscriptions","organizations_url":"https://api.github.com/users/reptileinx/orgs","repos_url":"https://api.github.com/users/reptileinx/repos","events_url":"https://api.github.com/users/reptileinx/events{/privacy}","received_events_url":"https://api.github.com/users/reptileinx/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nAn attempt to add developer notification once the master branch has been restricted.\r\n\r\n#### Where should the reviewer start?\r\nMost of the changes are related to documentation. There is a simple helper added to code that is creating an issue and notifying a hard-coded team.\r\n\r\n#### What testing has been done?\r\nManual integration testing.\r\n\r\n#### Any background context you want to provide?\r\nWe are receiving the response from the API in the form of a [Sawyer::Resource]\r\nHowever, upon debugging it looks like a hash that can be converted to json and rendered.\r\nWe will attempt this approach as we do not know any syntactic sugar in ruby or Sinatra to handle web responses.\r\n\r\n```\r\n{\\\"url\\\":\\\"https://api.github.com/repos/reptileinx-org/solid-doodle/branches/master/protection\\\",\\\"required_pull_request_reviews\\\":{\\\"url\\\":\\\"https://api.github.com/repos/reptileinx-org/so\r\n```\r\n#### What documentation has been created/updated?\r\nreadme.md","created_at":"2018-12-03T18:30:54Z","updated_at":"2018-12-03T18:30:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/reptileinx-org/xthobile/pulls/2/commits","review_comments_url":"https://api.github.com/repos/reptileinx-org/xthobile/pulls/2/comments","review_comment_url":"https://api.github.com/repos/reptileinx-org/xthobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reptileinx-org/xthobile/issues/2/comments","statuses_url":"https://api.github.com/repos/reptileinx-org/xthobile/statuses/01ddd2fe6a90960007c7b65485ef7144f9938f50","head":{"label":"reptileinx-org:dev-notify","ref":"dev-notify","sha":"01ddd2fe6a90960007c7b65485ef7144f9938f50","user":{"login":"reptileinx-org","id":45405444,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NDA1NDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/45405444?v=4","gravatar_id":"","url":"https://api.github.com/users/reptileinx-org","html_url":"https://github.com/reptileinx-org","followers_url":"https://api.github.com/users/reptileinx-org/followers","following_url":"https://api.github.com/users/reptileinx-org/following{/other_user}","gists_url":"https://api.github.com/users/reptileinx-org/gists{/gist_id}","starred_url":"https://api.github.com/users/reptileinx-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reptileinx-org/subscriptions","organizations_url":"https://api.github.com/users/reptileinx-org/orgs","repos_url":"https://api.github.com/users/reptileinx-org/repos","events_url":"https://api.github.com/users/reptileinx-org/events{/privacy}","received_events_url":"https://api.github.com/users/reptileinx-org/received_events","type":"Organization","site_admin":false},"repo":{"id":159843691,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk4NDM2OTE=","name":"xthobile","full_name":"reptileinx-org/xthobile","private":false,"owner":{"login":"reptileinx-org","id":45405444,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NDA1NDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/45405444?v=4","gravatar_id":"","url":"https://api.github.com/users/reptileinx-org","html_url":"https://github.com/reptileinx-org","followers_url":"https://api.github.com/users/reptileinx-org/followers","following_url":"https://api.github.com/users/reptileinx-org/following{/other_user}","gists_url":"https://api.github.com/users/reptileinx-org/gists{/gist_id}","starred_url":"https://api.github.com/users/reptileinx-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reptileinx-org/subscriptions","organizations_url":"https://api.github.com/users/reptileinx-org/orgs","repos_url":"https://api.github.com/users/reptileinx-org/repos","events_url":"https://api.github.com/users/reptileinx-org/events{/privacy}","received_events_url":"https://api.github.com/users/reptileinx-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/reptileinx-org/xthobile","description":"Contains code used to automate branch protection","fork":false,"url":"https://api.github.com/repos/reptileinx-org/xthobile","forks_url":"https://api.github.com/repos/reptileinx-org/xthobile/forks","keys_url":"https://api.github.com/repos/reptileinx-org/xthobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reptileinx-org/xthobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reptileinx-org/xthobile/teams","hooks_url":"https://api.github.com/repos/reptileinx-org/xthobile/hooks","issue_events_url":"https://api.github.com/repos/reptileinx-org/xthobile/issues/events{/number}","events_url":"https://api.github.com/repos/reptileinx-org/xthobile/events","assignees_url":"https://api.github.com/repos/reptileinx-org/xthobile/assignees{/user}","branches_url":"https://api.github.com/repos/reptileinx-org/xthobile/branches{/branch}","tags_url":"https://api.github.com/repos/reptileinx-org/xthobile/tags","blobs_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reptileinx-org/xthobile/statuses/{sha}","languages_url":"https://api.github.com/repos/reptileinx-org/xthobile/languages","stargazers_url":"https://api.github.com/repos/reptileinx-org/xthobile/stargazers","contributors_url":"https://api.github.com/repos/reptileinx-org/xthobile/contributors","subscribers_url":"https://api.github.com/repos/reptileinx-org/xthobile/subscribers","subscription_url":"https://api.github.com/repos/reptileinx-org/xthobile/subscription","commits_url":"https://api.github.com/repos/reptileinx-org/xthobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/reptileinx-org/xthobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/reptileinx-org/xthobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/reptileinx-org/xthobile/contents/{+path}","compare_url":"https://api.github.com/repos/reptileinx-org/xthobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reptileinx-org/xthobile/merges","archive_url":"https://api.github.com/repos/reptileinx-org/xthobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reptileinx-org/xthobile/downloads","issues_url":"https://api.github.com/repos/reptileinx-org/xthobile/issues{/number}","pulls_url":"https://api.github.com/repos/reptileinx-org/xthobile/pulls{/number}","milestones_url":"https://api.github.com/repos/reptileinx-org/xthobile/milestones{/number}","notifications_url":"https://api.github.com/repos/reptileinx-org/xthobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reptileinx-org/xthobile/labels{/name}","releases_url":"https://api.github.com/repos/reptileinx-org/xthobile/releases{/id}","deployments_url":"https://api.github.com/repos/reptileinx-org/xthobile/deployments","created_at":"2018-11-30T15:38:29Z","updated_at":"2018-12-02T18:15:26Z","pushed_at":"2018-12-03T18:21:24Z","git_url":"git://github.com/reptileinx-org/xthobile.git","ssh_url":"git@github.com:reptileinx-org/xthobile.git","clone_url":"https://github.com/reptileinx-org/xthobile.git","svn_url":"https://github.com/reptileinx-org/xthobile","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"reptileinx-org:master","ref":"master","sha":"3b33d0183e28381fc3bc924509355f5e04608f79","user":{"login":"reptileinx-org","id":45405444,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NDA1NDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/45405444?v=4","gravatar_id":"","url":"https://api.github.com/users/reptileinx-org","html_url":"https://github.com/reptileinx-org","followers_url":"https://api.github.com/users/reptileinx-org/followers","following_url":"https://api.github.com/users/reptileinx-org/following{/other_user}","gists_url":"https://api.github.com/users/reptileinx-org/gists{/gist_id}","starred_url":"https://api.github.com/users/reptileinx-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reptileinx-org/subscriptions","organizations_url":"https://api.github.com/users/reptileinx-org/orgs","repos_url":"https://api.github.com/users/reptileinx-org/repos","events_url":"https://api.github.com/users/reptileinx-org/events{/privacy}","received_events_url":"https://api.github.com/users/reptileinx-org/received_events","type":"Organization","site_admin":false},"repo":{"id":159843691,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk4NDM2OTE=","name":"xthobile","full_name":"reptileinx-org/xthobile","private":false,"owner":{"login":"reptileinx-org","id":45405444,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NDA1NDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/45405444?v=4","gravatar_id":"","url":"https://api.github.com/users/reptileinx-org","html_url":"https://github.com/reptileinx-org","followers_url":"https://api.github.com/users/reptileinx-org/followers","following_url":"https://api.github.com/users/reptileinx-org/following{/other_user}","gists_url":"https://api.github.com/users/reptileinx-org/gists{/gist_id}","starred_url":"https://api.github.com/users/reptileinx-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reptileinx-org/subscriptions","organizations_url":"https://api.github.com/users/reptileinx-org/orgs","repos_url":"https://api.github.com/users/reptileinx-org/repos","events_url":"https://api.github.com/users/reptileinx-org/events{/privacy}","received_events_url":"https://api.github.com/users/reptileinx-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/reptileinx-org/xthobile","description":"Contains code used to automate branch protection","fork":false,"url":"https://api.github.com/repos/reptileinx-org/xthobile","forks_url":"https://api.github.com/repos/reptileinx-org/xthobile/forks","keys_url":"https://api.github.com/repos/reptileinx-org/xthobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reptileinx-org/xthobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reptileinx-org/xthobile/teams","hooks_url":"https://api.github.com/repos/reptileinx-org/xthobile/hooks","issue_events_url":"https://api.github.com/repos/reptileinx-org/xthobile/issues/events{/number}","events_url":"https://api.github.com/repos/reptileinx-org/xthobile/events","assignees_url":"https://api.github.com/repos/reptileinx-org/xthobile/assignees{/user}","branches_url":"https://api.github.com/repos/reptileinx-org/xthobile/branches{/branch}","tags_url":"https://api.github.com/repos/reptileinx-org/xthobile/tags","blobs_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reptileinx-org/xthobile/statuses/{sha}","languages_url":"https://api.github.com/repos/reptileinx-org/xthobile/languages","stargazers_url":"https://api.github.com/repos/reptileinx-org/xthobile/stargazers","contributors_url":"https://api.github.com/repos/reptileinx-org/xthobile/contributors","subscribers_url":"https://api.github.com/repos/reptileinx-org/xthobile/subscribers","subscription_url":"https://api.github.com/repos/reptileinx-org/xthobile/subscription","commits_url":"https://api.github.com/repos/reptileinx-org/xthobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/reptileinx-org/xthobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/reptileinx-org/xthobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/reptileinx-org/xthobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/reptileinx-org/xthobile/contents/{+path}","compare_url":"https://api.github.com/repos/reptileinx-org/xthobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reptileinx-org/xthobile/merges","archive_url":"https://api.github.com/repos/reptileinx-org/xthobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reptileinx-org/xthobile/downloads","issues_url":"https://api.github.com/repos/reptileinx-org/xthobile/issues{/number}","pulls_url":"https://api.github.com/repos/reptileinx-org/xthobile/pulls{/number}","milestones_url":"https://api.github.com/repos/reptileinx-org/xthobile/milestones{/number}","notifications_url":"https://api.github.com/repos/reptileinx-org/xthobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reptileinx-org/xthobile/labels{/name}","releases_url":"https://api.github.com/repos/reptileinx-org/xthobile/releases{/id}","deployments_url":"https://api.github.com/repos/reptileinx-org/xthobile/deployments","created_at":"2018-11-30T15:38:29Z","updated_at":"2018-12-02T18:15:26Z","pushed_at":"2018-12-03T18:21:24Z","git_url":"git://github.com/reptileinx-org/xthobile.git","ssh_url":"git@github.com:reptileinx-org/xthobile.git","clone_url":"https://github.com/reptileinx-org/xthobile.git","svn_url":"https://github.com/reptileinx-org/xthobile","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reptileinx-org/xthobile/pulls/2"},"html":{"href":"https://github.com/reptileinx-org/xthobile/pull/2"},"issue":{"href":"https://api.github.com/repos/reptileinx-org/xthobile/issues/2"},"comments":{"href":"https://api.github.com/repos/reptileinx-org/xthobile/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/reptileinx-org/xthobile/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/reptileinx-org/xthobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reptileinx-org/xthobile/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/reptileinx-org/xthobile/statuses/01ddd2fe6a90960007c7b65485ef7144f9938f50"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":96,"deletions":192,"changed_files":3}}
{"actor":{"display_login":"reptileinx"}}