{"action":"created","comment":{"url":"https://api.github.com/repos/xwp/travel/pulls/comments/179924739","pull_request_review_id":110263657,"id":179924739,"diff_hunk":"@@ -0,0 +1,129 @@\n+<?php\n+/**\n+ * Class for Travel Custom Post Type.\n+ *\n+ * @package WPAMPTheme\n+ */\n+\n+/**\n+ * Class AMP_Travel_CTP\n+ *\n+ * @package WPAMPTheme\n+ */\n+class AMP_Travel_CTP {\n+\n+\t/**\n+\t * The post type slug.\n+\t *\n+\t * @var string\n+\t */\n+\tconst POST_TYPE_SLUG = 'adventure';\n+\n+\t/**\n+\t * AMP_Travel_CTP constructor.\n+\t */\n+\tpublic function __construct() {\n+\t\tadd_action( 'init', array( $this, 'setup' ) );\n+\t}\n+\n+\t/**\n+\t * Setup the Custom post type support.\n+\t */\n+\tpublic function setup() {\n+\t\t/*\n+\t\t * Enable support for Post Thumbnails on posts and pages.\n+\t\t *\n+\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n+\t\t */\n+\t\tadd_theme_support( 'post-thumbnails' );\n+\n+\t\t// Image Sizes.","path":"includes/class-amp-travel-cpt.php","position":40,"original_position":40,"commit_id":"c4bed080b2615a010154701a42dca1f19c3d3a8c","original_commit_id":"c4bed080b2615a010154701a42dca1f19c3d3a8c","user":{"login":"westonruter","id":134745,"avatar_url":"https://avatars2.githubusercontent.com/u/134745?v=4","gravatar_id":"","url":"https://api.github.com/users/westonruter","html_url":"https://github.com/westonruter","followers_url":"https://api.github.com/users/westonruter/followers","following_url":"https://api.github.com/users/westonruter/following{/other_user}","gists_url":"https://api.github.com/users/westonruter/gists{/gist_id}","starred_url":"https://api.github.com/users/westonruter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westonruter/subscriptions","organizations_url":"https://api.github.com/users/westonruter/orgs","repos_url":"https://api.github.com/users/westonruter/repos","events_url":"https://api.github.com/users/westonruter/events{/privacy}","received_events_url":"https://api.github.com/users/westonruter/received_events","type":"User","site_admin":false},"body":"This should be a phpdoc comment to describe the filter.","created_at":"2018-04-07T18:41:53Z","updated_at":"2018-04-07T18:47:27Z","html_url":"https://github.com/xwp/travel/pull/33#discussion_r179924739","pull_request_url":"https://api.github.com/repos/xwp/travel/pulls/33","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/xwp/travel/pulls/comments/179924739"},"html":{"href":"https://github.com/xwp/travel/pull/33#discussion_r179924739"},"pull_request":{"href":"https://api.github.com/repos/xwp/travel/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/xwp/travel/pulls/33","id":179876908,"html_url":"https://github.com/xwp/travel/pull/33","diff_url":"https://github.com/xwp/travel/pull/33.diff","patch_url":"https://github.com/xwp/travel/pull/33.patch","issue_url":"https://api.github.com/repos/xwp/travel/issues/33","number":33,"state":"open","locked":false,"title":"Add adventure custom post type","user":{"login":"DavidCramer","id":307466,"avatar_url":"https://avatars3.githubusercontent.com/u/307466?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidCramer","html_url":"https://github.com/DavidCramer","followers_url":"https://api.github.com/users/DavidCramer/followers","following_url":"https://api.github.com/users/DavidCramer/following{/other_user}","gists_url":"https://api.github.com/users/DavidCramer/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidCramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidCramer/subscriptions","organizations_url":"https://api.github.com/users/DavidCramer/orgs","repos_url":"https://api.github.com/users/DavidCramer/repos","events_url":"https://api.github.com/users/DavidCramer/events{/privacy}","received_events_url":"https://api.github.com/users/DavidCramer/received_events","type":"User","site_admin":false},"body":"Adds the `adventure` custom post type.\r\n\r\nFixes #7 ","created_at":"2018-04-06T07:52:03Z","updated_at":"2018-04-07T18:47:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adb6ee9a52672ff8d4f3d0203d070f98349cf7e9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ThierryA","id":3581402,"avatar_url":"https://avatars3.githubusercontent.com/u/3581402?v=4","gravatar_id":"","url":"https://api.github.com/users/ThierryA","html_url":"https://github.com/ThierryA","followers_url":"https://api.github.com/users/ThierryA/followers","following_url":"https://api.github.com/users/ThierryA/following{/other_user}","gists_url":"https://api.github.com/users/ThierryA/gists{/gist_id}","starred_url":"https://api.github.com/users/ThierryA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThierryA/subscriptions","organizations_url":"https://api.github.com/users/ThierryA/orgs","repos_url":"https://api.github.com/users/ThierryA/repos","events_url":"https://api.github.com/users/ThierryA/events{/privacy}","received_events_url":"https://api.github.com/users/ThierryA/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/xwp/travel/pulls/33/commits","review_comments_url":"https://api.github.com/repos/xwp/travel/pulls/33/comments","review_comment_url":"https://api.github.com/repos/xwp/travel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xwp/travel/issues/33/comments","statuses_url":"https://api.github.com/repos/xwp/travel/statuses/c4bed080b2615a010154701a42dca1f19c3d3a8c","head":{"label":"xwp:feature/7-declare-cpt","ref":"feature/7-declare-cpt","sha":"c4bed080b2615a010154701a42dca1f19c3d3a8c","user":{"login":"xwp","id":9003139,"avatar_url":"https://avatars2.githubusercontent.com/u/9003139?v=4","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"repo":{"id":126378271,"name":"travel","full_name":"xwp/travel","owner":{"login":"xwp","id":9003139,"avatar_url":"https://avatars2.githubusercontent.com/u/9003139?v=4","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwp/travel","description":null,"fork":false,"url":"https://api.github.com/repos/xwp/travel","forks_url":"https://api.github.com/repos/xwp/travel/forks","keys_url":"https://api.github.com/repos/xwp/travel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwp/travel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwp/travel/teams","hooks_url":"https://api.github.com/repos/xwp/travel/hooks","issue_events_url":"https://api.github.com/repos/xwp/travel/issues/events{/number}","events_url":"https://api.github.com/repos/xwp/travel/events","assignees_url":"https://api.github.com/repos/xwp/travel/assignees{/user}","branches_url":"https://api.github.com/repos/xwp/travel/branches{/branch}","tags_url":"https://api.github.com/repos/xwp/travel/tags","blobs_url":"https://api.github.com/repos/xwp/travel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwp/travel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwp/travel/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwp/travel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwp/travel/statuses/{sha}","languages_url":"https://api.github.com/repos/xwp/travel/languages","stargazers_url":"https://api.github.com/repos/xwp/travel/stargazers","contributors_url":"https://api.github.com/repos/xwp/travel/contributors","subscribers_url":"https://api.github.com/repos/xwp/travel/subscribers","subscription_url":"https://api.github.com/repos/xwp/travel/subscription","commits_url":"https://api.github.com/repos/xwp/travel/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwp/travel/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwp/travel/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwp/travel/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwp/travel/contents/{+path}","compare_url":"https://api.github.com/repos/xwp/travel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwp/travel/merges","archive_url":"https://api.github.com/repos/xwp/travel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwp/travel/downloads","issues_url":"https://api.github.com/repos/xwp/travel/issues{/number}","pulls_url":"https://api.github.com/repos/xwp/travel/pulls{/number}","milestones_url":"https://api.github.com/repos/xwp/travel/milestones{/number}","notifications_url":"https://api.github.com/repos/xwp/travel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwp/travel/labels{/name}","releases_url":"https://api.github.com/repos/xwp/travel/releases{/id}","deployments_url":"https://api.github.com/repos/xwp/travel/deployments","created_at":"2018-03-22T18:24:12Z","updated_at":"2018-04-02T09:57:11Z","pushed_at":"2018-04-06T13:37:55Z","git_url":"git://github.com/xwp/travel.git","ssh_url":"git@github.com:xwp/travel.git","clone_url":"https://github.com/xwp/travel.git","svn_url":"https://github.com/xwp/travel","homepage":null,"size":9795,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":29,"watchers":1,"default_branch":"develop"}},"base":{"label":"xwp:develop","ref":"develop","sha":"d05ba50ac2eb474904b79a950da8ff6be45dc01b","user":{"login":"xwp","id":9003139,"avatar_url":"https://avatars2.githubusercontent.com/u/9003139?v=4","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"repo":{"id":126378271,"name":"travel","full_name":"xwp/travel","owner":{"login":"xwp","id":9003139,"avatar_url":"https://avatars2.githubusercontent.com/u/9003139?v=4","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwp/travel","description":null,"fork":false,"url":"https://api.github.com/repos/xwp/travel","forks_url":"https://api.github.com/repos/xwp/travel/forks","keys_url":"https://api.github.com/repos/xwp/travel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwp/travel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwp/travel/teams","hooks_url":"https://api.github.com/repos/xwp/travel/hooks","issue_events_url":"https://api.github.com/repos/xwp/travel/issues/events{/number}","events_url":"https://api.github.com/repos/xwp/travel/events","assignees_url":"https://api.github.com/repos/xwp/travel/assignees{/user}","branches_url":"https://api.github.com/repos/xwp/travel/branches{/branch}","tags_url":"https://api.github.com/repos/xwp/travel/tags","blobs_url":"https://api.github.com/repos/xwp/travel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwp/travel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwp/travel/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwp/travel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwp/travel/statuses/{sha}","languages_url":"https://api.github.com/repos/xwp/travel/languages","stargazers_url":"https://api.github.com/repos/xwp/travel/stargazers","contributors_url":"https://api.github.com/repos/xwp/travel/contributors","subscribers_url":"https://api.github.com/repos/xwp/travel/subscribers","subscription_url":"https://api.github.com/repos/xwp/travel/subscription","commits_url":"https://api.github.com/repos/xwp/travel/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwp/travel/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwp/travel/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwp/travel/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwp/travel/contents/{+path}","compare_url":"https://api.github.com/repos/xwp/travel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwp/travel/merges","archive_url":"https://api.github.com/repos/xwp/travel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwp/travel/downloads","issues_url":"https://api.github.com/repos/xwp/travel/issues{/number}","pulls_url":"https://api.github.com/repos/xwp/travel/pulls{/number}","milestones_url":"https://api.github.com/repos/xwp/travel/milestones{/number}","notifications_url":"https://api.github.com/repos/xwp/travel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwp/travel/labels{/name}","releases_url":"https://api.github.com/repos/xwp/travel/releases{/id}","deployments_url":"https://api.github.com/repos/xwp/travel/deployments","created_at":"2018-03-22T18:24:12Z","updated_at":"2018-04-02T09:57:11Z","pushed_at":"2018-04-06T13:37:55Z","git_url":"git://github.com/xwp/travel.git","ssh_url":"git@github.com:xwp/travel.git","clone_url":"https://github.com/xwp/travel.git","svn_url":"https://github.com/xwp/travel","homepage":null,"size":9795,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":29,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/xwp/travel/pulls/33"},"html":{"href":"https://github.com/xwp/travel/pull/33"},"issue":{"href":"https://api.github.com/repos/xwp/travel/issues/33"},"comments":{"href":"https://api.github.com/repos/xwp/travel/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/xwp/travel/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/xwp/travel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xwp/travel/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/xwp/travel/statuses/c4bed080b2615a010154701a42dca1f19c3d3a8c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"westonruter"}}