{"action":"opened","number":93,"pull_request":{"url":"https://api.github.com/repos/elifesciences/annotations/pulls/93","id":218202924,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MjAyOTI0","html_url":"https://github.com/elifesciences/annotations/pull/93","diff_url":"https://github.com/elifesciences/annotations/pull/93.diff","patch_url":"https://github.com/elifesciences/annotations/pull/93.patch","issue_url":"https://api.github.com/repos/elifesciences/annotations/issues/93","number":93,"state":"open","locked":false,"title":"Make name truncation Unicode-aware","user":{"login":"thewilkybarkid","id":1784740,"node_id":"MDQ6VXNlcjE3ODQ3NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1784740?v=4","gravatar_id":"","url":"https://api.github.com/users/thewilkybarkid","html_url":"https://github.com/thewilkybarkid","followers_url":"https://api.github.com/users/thewilkybarkid/followers","following_url":"https://api.github.com/users/thewilkybarkid/following{/other_user}","gists_url":"https://api.github.com/users/thewilkybarkid/gists{/gist_id}","starred_url":"https://api.github.com/users/thewilkybarkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewilkybarkid/subscriptions","organizations_url":"https://api.github.com/users/thewilkybarkid/orgs","repos_url":"https://api.github.com/users/thewilkybarkid/repos","events_url":"https://api.github.com/users/thewilkybarkid/events{/privacy}","received_events_url":"https://api.github.com/users/thewilkybarkid/received_events","type":"User","site_admin":false},"body":"A Hypothesis user is currently failing to be created as their name is 30 characters long, but 33 bytes. Currently it's truncating at 30 bytes rather than 30 characters. Character 28 is bytes 30 and 31, so the truncation results in a broken character and `json_encode()` later fails since it's not valid UTF-8.","created_at":"2018-09-26T06:33:49Z","updated_at":"2018-09-26T06:33:49Z","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/elifesciences/annotations/pulls/93/commits","review_comments_url":"https://api.github.com/repos/elifesciences/annotations/pulls/93/comments","review_comment_url":"https://api.github.com/repos/elifesciences/annotations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elifesciences/annotations/issues/93/comments","statuses_url":"https://api.github.com/repos/elifesciences/annotations/statuses/87371fc0f9b43426e2f4483b544dce31066302d8","head":{"label":"elifesciences:name-truncate-unicode","ref":"name-truncate-unicode","sha":"87371fc0f9b43426e2f4483b544dce31066302d8","user":{"login":"elifesciences","id":1777367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzczNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":99697931,"node_id":"MDEwOlJlcG9zaXRvcnk5OTY5NzkzMQ==","name":"annotations","full_name":"elifesciences/annotations","private":false,"owner":{"login":"elifesciences","id":1777367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzczNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/elifesciences/annotations","description":"Annotations service backend","fork":false,"url":"https://api.github.com/repos/elifesciences/annotations","forks_url":"https://api.github.com/repos/elifesciences/annotations/forks","keys_url":"https://api.github.com/repos/elifesciences/annotations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/annotations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/annotations/teams","hooks_url":"https://api.github.com/repos/elifesciences/annotations/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/annotations/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/annotations/events","assignees_url":"https://api.github.com/repos/elifesciences/annotations/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/annotations/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/annotations/tags","blobs_url":"https://api.github.com/repos/elifesciences/annotations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/annotations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/annotations/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/annotations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/annotations/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/annotations/languages","stargazers_url":"https://api.github.com/repos/elifesciences/annotations/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/annotations/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/annotations/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/annotations/subscription","commits_url":"https://api.github.com/repos/elifesciences/annotations/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/annotations/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/annotations/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/annotations/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/annotations/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/annotations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/annotations/merges","archive_url":"https://api.github.com/repos/elifesciences/annotations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/annotations/downloads","issues_url":"https://api.github.com/repos/elifesciences/annotations/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/annotations/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/annotations/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/annotations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/annotations/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/annotations/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/annotations/deployments","created_at":"2017-08-08T13:48:30Z","updated_at":"2018-08-15T07:59:29Z","pushed_at":"2018-09-26T06:24:51Z","git_url":"git://github.com/elifesciences/annotations.git","ssh_url":"git@github.com:elifesciences/annotations.git","clone_url":"https://github.com/elifesciences/annotations.git","svn_url":"https://github.com/elifesciences/annotations","homepage":null,"size":332,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"elifesciences:develop","ref":"develop","sha":"10a6feef142fc78c5bae1f4a9338a772b106afca","user":{"login":"elifesciences","id":1777367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzczNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":99697931,"node_id":"MDEwOlJlcG9zaXRvcnk5OTY5NzkzMQ==","name":"annotations","full_name":"elifesciences/annotations","private":false,"owner":{"login":"elifesciences","id":1777367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzczNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/elifesciences/annotations","description":"Annotations service backend","fork":false,"url":"https://api.github.com/repos/elifesciences/annotations","forks_url":"https://api.github.com/repos/elifesciences/annotations/forks","keys_url":"https://api.github.com/repos/elifesciences/annotations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/annotations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/annotations/teams","hooks_url":"https://api.github.com/repos/elifesciences/annotations/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/annotations/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/annotations/events","assignees_url":"https://api.github.com/repos/elifesciences/annotations/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/annotations/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/annotations/tags","blobs_url":"https://api.github.com/repos/elifesciences/annotations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/annotations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/annotations/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/annotations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/annotations/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/annotations/languages","stargazers_url":"https://api.github.com/repos/elifesciences/annotations/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/annotations/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/annotations/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/annotations/subscription","commits_url":"https://api.github.com/repos/elifesciences/annotations/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/annotations/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/annotations/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/annotations/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/annotations/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/annotations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/annotations/merges","archive_url":"https://api.github.com/repos/elifesciences/annotations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/annotations/downloads","issues_url":"https://api.github.com/repos/elifesciences/annotations/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/annotations/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/annotations/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/annotations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/annotations/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/annotations/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/annotations/deployments","created_at":"2017-08-08T13:48:30Z","updated_at":"2018-08-15T07:59:29Z","pushed_at":"2018-09-26T06:24:51Z","git_url":"git://github.com/elifesciences/annotations.git","ssh_url":"git@github.com:elifesciences/annotations.git","clone_url":"https://github.com/elifesciences/annotations.git","svn_url":"https://github.com/elifesciences/annotations","homepage":null,"size":332,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/elifesciences/annotations/pulls/93"},"html":{"href":"https://github.com/elifesciences/annotations/pull/93"},"issue":{"href":"https://api.github.com/repos/elifesciences/annotations/issues/93"},"comments":{"href":"https://api.github.com/repos/elifesciences/annotations/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/elifesciences/annotations/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/elifesciences/annotations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elifesciences/annotations/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/elifesciences/annotations/statuses/87371fc0f9b43426e2f4483b544dce31066302d8"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":12,"deletions":7,"changed_files":4}}
{"actor":{"display_login":"thewilkybarkid"}}