{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/gutchino/asakusa/pulls/1","id":210631666,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNjMxNjY2","html_url":"https://github.com/gutchino/asakusa/pull/1","diff_url":"https://github.com/gutchino/asakusa/pull/1.diff","patch_url":"https://github.com/gutchino/asakusa/pull/1.patch","issue_url":"https://api.github.com/repos/gutchino/asakusa/issues/1","number":1,"state":"closed","locked":false,"title":"Change EN / JP feature and post custom fields","user":{"login":"gutchino","id":5499735,"node_id":"MDQ6VXNlcjU0OTk3MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5499735?v=4","gravatar_id":"","url":"https://api.github.com/users/gutchino","html_url":"https://github.com/gutchino","followers_url":"https://api.github.com/users/gutchino/followers","following_url":"https://api.github.com/users/gutchino/following{/other_user}","gists_url":"https://api.github.com/users/gutchino/gists{/gist_id}","starred_url":"https://api.github.com/users/gutchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gutchino/subscriptions","organizations_url":"https://api.github.com/users/gutchino/orgs","repos_url":"https://api.github.com/users/gutchino/repos","events_url":"https://api.github.com/users/gutchino/events{/privacy}","received_events_url":"https://api.github.com/users/gutchino/received_events","type":"User","site_admin":false},"body":"Change EN / JP feature and post custom fields as a first version theme of ASAKUSA 2.0\r\n\r\n - グローバル変数 $asakusa_lang_prefix を用意し、現在のページURLのドメイン直後が /en ならば 'en' を、そうでなければ 'jp' を格納。つまり、どのページにおいてもそのページが日本語ページなのか英語ページなのかを把握し、それに応じてページ内コンテンツとリンクを制御することで、仮想多言語サイトを実現する。\r\n\r\n - 'add_rewrite_rule' 関数を用いてパーマリンク構造を制御。URLに /en が含まれるページはそれを除いたURLのページを表示。例）https://asakusa-o.com/en/asakusa_entertainment-html/ にアクセスすると、 https://asakusa-o.com/asakusa_entertainment-html/ を表示するが、URLは /en のままなので $asakusa_lang_prefix -> 'en' となる。\r\n\r\n - 【コンテンツ：投稿】ACFを用いて１つの投稿内に日英両方の内容を記入。フロントエンドでは $asakusa_lang_prefix を条件とした分岐を行いコンテンツを表示させる。\r\n - 【リンク】'jp' （日本語ページ）の場合、現在のページに /en を追加したURLを生成し、言語メニューに追加する。 'en' （英語ページ）の場合、現在のページから /en を削除したURLを生成し、言語メニューに追加する。\r\n - 【リンク】モジュール 'the_sasakusa_permalink' を作成し、 $asakusa_lang_prefix に応じたパーマリンクを生成する。","created_at":"2018-08-24T03:43:37Z","updated_at":"2018-08-24T03:44:10Z","closed_at":"2018-08-24T03:44:10Z","merged_at":"2018-08-24T03:44:10Z","merge_commit_sha":"80d984119672b7b3f2da36b7b9372938b07f3b44","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gutchino/asakusa/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gutchino/asakusa/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gutchino/asakusa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gutchino/asakusa/issues/1/comments","statuses_url":"https://api.github.com/repos/gutchino/asakusa/statuses/8514c6ba42b08062dd37a467e50a6c23b8863b1e","head":{"label":"gutchino:feature","ref":"feature","sha":"8514c6ba42b08062dd37a467e50a6c23b8863b1e","user":{"login":"gutchino","id":5499735,"node_id":"MDQ6VXNlcjU0OTk3MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5499735?v=4","gravatar_id":"","url":"https://api.github.com/users/gutchino","html_url":"https://github.com/gutchino","followers_url":"https://api.github.com/users/gutchino/followers","following_url":"https://api.github.com/users/gutchino/following{/other_user}","gists_url":"https://api.github.com/users/gutchino/gists{/gist_id}","starred_url":"https://api.github.com/users/gutchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gutchino/subscriptions","organizations_url":"https://api.github.com/users/gutchino/orgs","repos_url":"https://api.github.com/users/gutchino/repos","events_url":"https://api.github.com/users/gutchino/events{/privacy}","received_events_url":"https://api.github.com/users/gutchino/received_events","type":"User","site_admin":false},"repo":{"id":144926746,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ5MjY3NDY=","name":"asakusa","full_name":"gutchino/asakusa","owner":{"login":"gutchino","id":5499735,"node_id":"MDQ6VXNlcjU0OTk3MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5499735?v=4","gravatar_id":"","url":"https://api.github.com/users/gutchino","html_url":"https://github.com/gutchino","followers_url":"https://api.github.com/users/gutchino/followers","following_url":"https://api.github.com/users/gutchino/following{/other_user}","gists_url":"https://api.github.com/users/gutchino/gists{/gist_id}","starred_url":"https://api.github.com/users/gutchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gutchino/subscriptions","organizations_url":"https://api.github.com/users/gutchino/orgs","repos_url":"https://api.github.com/users/gutchino/repos","events_url":"https://api.github.com/users/gutchino/events{/privacy}","received_events_url":"https://api.github.com/users/gutchino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gutchino/asakusa","description":null,"fork":false,"url":"https://api.github.com/repos/gutchino/asakusa","forks_url":"https://api.github.com/repos/gutchino/asakusa/forks","keys_url":"https://api.github.com/repos/gutchino/asakusa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gutchino/asakusa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gutchino/asakusa/teams","hooks_url":"https://api.github.com/repos/gutchino/asakusa/hooks","issue_events_url":"https://api.github.com/repos/gutchino/asakusa/issues/events{/number}","events_url":"https://api.github.com/repos/gutchino/asakusa/events","assignees_url":"https://api.github.com/repos/gutchino/asakusa/assignees{/user}","branches_url":"https://api.github.com/repos/gutchino/asakusa/branches{/branch}","tags_url":"https://api.github.com/repos/gutchino/asakusa/tags","blobs_url":"https://api.github.com/repos/gutchino/asakusa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gutchino/asakusa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gutchino/asakusa/git/refs{/sha}","trees_url":"https://api.github.com/repos/gutchino/asakusa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gutchino/asakusa/statuses/{sha}","languages_url":"https://api.github.com/repos/gutchino/asakusa/languages","stargazers_url":"https://api.github.com/repos/gutchino/asakusa/stargazers","contributors_url":"https://api.github.com/repos/gutchino/asakusa/contributors","subscribers_url":"https://api.github.com/repos/gutchino/asakusa/subscribers","subscription_url":"https://api.github.com/repos/gutchino/asakusa/subscription","commits_url":"https://api.github.com/repos/gutchino/asakusa/commits{/sha}","git_commits_url":"https://api.github.com/repos/gutchino/asakusa/git/commits{/sha}","comments_url":"https://api.github.com/repos/gutchino/asakusa/comments{/number}","issue_comment_url":"https://api.github.com/repos/gutchino/asakusa/issues/comments{/number}","contents_url":"https://api.github.com/repos/gutchino/asakusa/contents/{+path}","compare_url":"https://api.github.com/repos/gutchino/asakusa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gutchino/asakusa/merges","archive_url":"https://api.github.com/repos/gutchino/asakusa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gutchino/asakusa/downloads","issues_url":"https://api.github.com/repos/gutchino/asakusa/issues{/number}","pulls_url":"https://api.github.com/repos/gutchino/asakusa/pulls{/number}","milestones_url":"https://api.github.com/repos/gutchino/asakusa/milestones{/number}","notifications_url":"https://api.github.com/repos/gutchino/asakusa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gutchino/asakusa/labels{/name}","releases_url":"https://api.github.com/repos/gutchino/asakusa/releases{/id}","deployments_url":"https://api.github.com/repos/gutchino/asakusa/deployments","created_at":"2018-08-16T02:33:43Z","updated_at":"2018-08-16T02:48:47Z","pushed_at":"2018-08-24T03:44:10Z","git_url":"git://github.com/gutchino/asakusa.git","ssh_url":"git@github.com:gutchino/asakusa.git","clone_url":"https://github.com/gutchino/asakusa.git","svn_url":"https://github.com/gutchino/asakusa","homepage":null,"size":1811,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gutchino:develop","ref":"develop","sha":"532261c062e606bede177d844a164bd21bc8b621","user":{"login":"gutchino","id":5499735,"node_id":"MDQ6VXNlcjU0OTk3MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5499735?v=4","gravatar_id":"","url":"https://api.github.com/users/gutchino","html_url":"https://github.com/gutchino","followers_url":"https://api.github.com/users/gutchino/followers","following_url":"https://api.github.com/users/gutchino/following{/other_user}","gists_url":"https://api.github.com/users/gutchino/gists{/gist_id}","starred_url":"https://api.github.com/users/gutchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gutchino/subscriptions","organizations_url":"https://api.github.com/users/gutchino/orgs","repos_url":"https://api.github.com/users/gutchino/repos","events_url":"https://api.github.com/users/gutchino/events{/privacy}","received_events_url":"https://api.github.com/users/gutchino/received_events","type":"User","site_admin":false},"repo":{"id":144926746,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ5MjY3NDY=","name":"asakusa","full_name":"gutchino/asakusa","owner":{"login":"gutchino","id":5499735,"node_id":"MDQ6VXNlcjU0OTk3MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5499735?v=4","gravatar_id":"","url":"https://api.github.com/users/gutchino","html_url":"https://github.com/gutchino","followers_url":"https://api.github.com/users/gutchino/followers","following_url":"https://api.github.com/users/gutchino/following{/other_user}","gists_url":"https://api.github.com/users/gutchino/gists{/gist_id}","starred_url":"https://api.github.com/users/gutchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gutchino/subscriptions","organizations_url":"https://api.github.com/users/gutchino/orgs","repos_url":"https://api.github.com/users/gutchino/repos","events_url":"https://api.github.com/users/gutchino/events{/privacy}","received_events_url":"https://api.github.com/users/gutchino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gutchino/asakusa","description":null,"fork":false,"url":"https://api.github.com/repos/gutchino/asakusa","forks_url":"https://api.github.com/repos/gutchino/asakusa/forks","keys_url":"https://api.github.com/repos/gutchino/asakusa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gutchino/asakusa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gutchino/asakusa/teams","hooks_url":"https://api.github.com/repos/gutchino/asakusa/hooks","issue_events_url":"https://api.github.com/repos/gutchino/asakusa/issues/events{/number}","events_url":"https://api.github.com/repos/gutchino/asakusa/events","assignees_url":"https://api.github.com/repos/gutchino/asakusa/assignees{/user}","branches_url":"https://api.github.com/repos/gutchino/asakusa/branches{/branch}","tags_url":"https://api.github.com/repos/gutchino/asakusa/tags","blobs_url":"https://api.github.com/repos/gutchino/asakusa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gutchino/asakusa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gutchino/asakusa/git/refs{/sha}","trees_url":"https://api.github.com/repos/gutchino/asakusa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gutchino/asakusa/statuses/{sha}","languages_url":"https://api.github.com/repos/gutchino/asakusa/languages","stargazers_url":"https://api.github.com/repos/gutchino/asakusa/stargazers","contributors_url":"https://api.github.com/repos/gutchino/asakusa/contributors","subscribers_url":"https://api.github.com/repos/gutchino/asakusa/subscribers","subscription_url":"https://api.github.com/repos/gutchino/asakusa/subscription","commits_url":"https://api.github.com/repos/gutchino/asakusa/commits{/sha}","git_commits_url":"https://api.github.com/repos/gutchino/asakusa/git/commits{/sha}","comments_url":"https://api.github.com/repos/gutchino/asakusa/comments{/number}","issue_comment_url":"https://api.github.com/repos/gutchino/asakusa/issues/comments{/number}","contents_url":"https://api.github.com/repos/gutchino/asakusa/contents/{+path}","compare_url":"https://api.github.com/repos/gutchino/asakusa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gutchino/asakusa/merges","archive_url":"https://api.github.com/repos/gutchino/asakusa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gutchino/asakusa/downloads","issues_url":"https://api.github.com/repos/gutchino/asakusa/issues{/number}","pulls_url":"https://api.github.com/repos/gutchino/asakusa/pulls{/number}","milestones_url":"https://api.github.com/repos/gutchino/asakusa/milestones{/number}","notifications_url":"https://api.github.com/repos/gutchino/asakusa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gutchino/asakusa/labels{/name}","releases_url":"https://api.github.com/repos/gutchino/asakusa/releases{/id}","deployments_url":"https://api.github.com/repos/gutchino/asakusa/deployments","created_at":"2018-08-16T02:33:43Z","updated_at":"2018-08-16T02:48:47Z","pushed_at":"2018-08-24T03:44:10Z","git_url":"git://github.com/gutchino/asakusa.git","ssh_url":"git@github.com:gutchino/asakusa.git","clone_url":"https://github.com/gutchino/asakusa.git","svn_url":"https://github.com/gutchino/asakusa","homepage":null,"size":1811,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gutchino/asakusa/pulls/1"},"html":{"href":"https://github.com/gutchino/asakusa/pull/1"},"issue":{"href":"https://api.github.com/repos/gutchino/asakusa/issues/1"},"comments":{"href":"https://api.github.com/repos/gutchino/asakusa/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gutchino/asakusa/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gutchino/asakusa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gutchino/asakusa/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gutchino/asakusa/statuses/8514c6ba42b08062dd37a467e50a6c23b8863b1e"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"gutchino","id":5499735,"node_id":"MDQ6VXNlcjU0OTk3MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5499735?v=4","gravatar_id":"","url":"https://api.github.com/users/gutchino","html_url":"https://github.com/gutchino","followers_url":"https://api.github.com/users/gutchino/followers","following_url":"https://api.github.com/users/gutchino/following{/other_user}","gists_url":"https://api.github.com/users/gutchino/gists{/gist_id}","starred_url":"https://api.github.com/users/gutchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gutchino/subscriptions","organizations_url":"https://api.github.com/users/gutchino/orgs","repos_url":"https://api.github.com/users/gutchino/repos","events_url":"https://api.github.com/users/gutchino/events{/privacy}","received_events_url":"https://api.github.com/users/gutchino/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":10,"additions":427,"deletions":267,"changed_files":31}}
{"actor":{"display_login":"gutchino"}}