{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/graphql/codemirror-graphql/pulls/5","id":54629511,"html_url":"https://github.com/graphql/codemirror-graphql/pull/5","diff_url":"https://github.com/graphql/codemirror-graphql/pull/5.diff","patch_url":"https://github.com/graphql/codemirror-graphql/pull/5.patch","issue_url":"https://api.github.com/repos/graphql/codemirror-graphql/issues/5","number":5,"state":"open","locked":false,"title":"Support Relay-style optional fragment names","user":{"login":"devknoll","id":1477230,"avatar_url":"https://avatars.githubusercontent.com/u/1477230?v=3","gravatar_id":"","url":"https://api.github.com/users/devknoll","html_url":"https://github.com/devknoll","followers_url":"https://api.github.com/users/devknoll/followers","following_url":"https://api.github.com/users/devknoll/following{/other_user}","gists_url":"https://api.github.com/users/devknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/devknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devknoll/subscriptions","organizations_url":"https://api.github.com/users/devknoll/orgs","repos_url":"https://api.github.com/users/devknoll/repos","events_url":"https://api.github.com/users/devknoll/events{/privacy}","received_events_url":"https://api.github.com/users/devknoll/received_events","type":"User","site_admin":false},"body":"Fixes #4.\r\n\r\n@leebyron Let me know if there is a better way to do this. `opt(name('def'))` alone doesn't work, as it just swallows the `on` as the name and doesn't recover.","created_at":"2015-12-28T03:00:25Z","updated_at":"2015-12-28T03:00:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/graphql/codemirror-graphql/pulls/5/commits","review_comments_url":"https://api.github.com/repos/graphql/codemirror-graphql/pulls/5/comments","review_comment_url":"https://api.github.com/repos/graphql/codemirror-graphql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graphql/codemirror-graphql/issues/5/comments","statuses_url":"https://api.github.com/repos/graphql/codemirror-graphql/statuses/4304ddc5127f946ff7844321db15c0a95606531c","head":{"label":"devknoll:optional-fragment-name","ref":"optional-fragment-name","sha":"4304ddc5127f946ff7844321db15c0a95606531c","user":{"login":"devknoll","id":1477230,"avatar_url":"https://avatars.githubusercontent.com/u/1477230?v=3","gravatar_id":"","url":"https://api.github.com/users/devknoll","html_url":"https://github.com/devknoll","followers_url":"https://api.github.com/users/devknoll/followers","following_url":"https://api.github.com/users/devknoll/following{/other_user}","gists_url":"https://api.github.com/users/devknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/devknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devknoll/subscriptions","organizations_url":"https://api.github.com/users/devknoll/orgs","repos_url":"https://api.github.com/users/devknoll/repos","events_url":"https://api.github.com/users/devknoll/events{/privacy}","received_events_url":"https://api.github.com/users/devknoll/received_events","type":"User","site_admin":false},"repo":{"id":48517439,"name":"codemirror-graphql","full_name":"devknoll/codemirror-graphql","owner":{"login":"devknoll","id":1477230,"avatar_url":"https://avatars.githubusercontent.com/u/1477230?v=3","gravatar_id":"","url":"https://api.github.com/users/devknoll","html_url":"https://github.com/devknoll","followers_url":"https://api.github.com/users/devknoll/followers","following_url":"https://api.github.com/users/devknoll/following{/other_user}","gists_url":"https://api.github.com/users/devknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/devknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devknoll/subscriptions","organizations_url":"https://api.github.com/users/devknoll/orgs","repos_url":"https://api.github.com/users/devknoll/repos","events_url":"https://api.github.com/users/devknoll/events{/privacy}","received_events_url":"https://api.github.com/users/devknoll/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devknoll/codemirror-graphql","description":"GraphQL mode and helpers for CodeMirror.","fork":true,"url":"https://api.github.com/repos/devknoll/codemirror-graphql","forks_url":"https://api.github.com/repos/devknoll/codemirror-graphql/forks","keys_url":"https://api.github.com/repos/devknoll/codemirror-graphql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devknoll/codemirror-graphql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devknoll/codemirror-graphql/teams","hooks_url":"https://api.github.com/repos/devknoll/codemirror-graphql/hooks","issue_events_url":"https://api.github.com/repos/devknoll/codemirror-graphql/issues/events{/number}","events_url":"https://api.github.com/repos/devknoll/codemirror-graphql/events","assignees_url":"https://api.github.com/repos/devknoll/codemirror-graphql/assignees{/user}","branches_url":"https://api.github.com/repos/devknoll/codemirror-graphql/branches{/branch}","tags_url":"https://api.github.com/repos/devknoll/codemirror-graphql/tags","blobs_url":"https://api.github.com/repos/devknoll/codemirror-graphql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devknoll/codemirror-graphql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devknoll/codemirror-graphql/git/refs{/sha}","trees_url":"https://api.github.com/repos/devknoll/codemirror-graphql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devknoll/codemirror-graphql/statuses/{sha}","languages_url":"https://api.github.com/repos/devknoll/codemirror-graphql/languages","stargazers_url":"https://api.github.com/repos/devknoll/codemirror-graphql/stargazers","contributors_url":"https://api.github.com/repos/devknoll/codemirror-graphql/contributors","subscribers_url":"https://api.github.com/repos/devknoll/codemirror-graphql/subscribers","subscription_url":"https://api.github.com/repos/devknoll/codemirror-graphql/subscription","commits_url":"https://api.github.com/repos/devknoll/codemirror-graphql/commits{/sha}","git_commits_url":"https://api.github.com/repos/devknoll/codemirror-graphql/git/commits{/sha}","comments_url":"https://api.github.com/repos/devknoll/codemirror-graphql/comments{/number}","issue_comment_url":"https://api.github.com/repos/devknoll/codemirror-graphql/issues/comments{/number}","contents_url":"https://api.github.com/repos/devknoll/codemirror-graphql/contents/{+path}","compare_url":"https://api.github.com/repos/devknoll/codemirror-graphql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devknoll/codemirror-graphql/merges","archive_url":"https://api.github.com/repos/devknoll/codemirror-graphql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devknoll/codemirror-graphql/downloads","issues_url":"https://api.github.com/repos/devknoll/codemirror-graphql/issues{/number}","pulls_url":"https://api.github.com/repos/devknoll/codemirror-graphql/pulls{/number}","milestones_url":"https://api.github.com/repos/devknoll/codemirror-graphql/milestones{/number}","notifications_url":"https://api.github.com/repos/devknoll/codemirror-graphql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devknoll/codemirror-graphql/labels{/name}","releases_url":"https://api.github.com/repos/devknoll/codemirror-graphql/releases{/id}","created_at":"2015-12-24T00:51:04Z","updated_at":"2015-12-24T00:51:05Z","pushed_at":"2015-12-28T02:56:25Z","git_url":"git://github.com/devknoll/codemirror-graphql.git","ssh_url":"git@github.com:devknoll/codemirror-graphql.git","clone_url":"https://github.com/devknoll/codemirror-graphql.git","svn_url":"https://github.com/devknoll/codemirror-graphql","homepage":null,"size":1111,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"graphql:master","ref":"master","sha":"06f48a2a538ea54acbae8d1fe3cc49ab759743b7","user":{"login":"graphql","id":12972006,"avatar_url":"https://avatars.githubusercontent.com/u/12972006?v=3","gravatar_id":"","url":"https://api.github.com/users/graphql","html_url":"https://github.com/graphql","followers_url":"https://api.github.com/users/graphql/followers","following_url":"https://api.github.com/users/graphql/following{/other_user}","gists_url":"https://api.github.com/users/graphql/gists{/gist_id}","starred_url":"https://api.github.com/users/graphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphql/subscriptions","organizations_url":"https://api.github.com/users/graphql/orgs","repos_url":"https://api.github.com/users/graphql/repos","events_url":"https://api.github.com/users/graphql/events{/privacy}","received_events_url":"https://api.github.com/users/graphql/received_events","type":"Organization","site_admin":false},"repo":{"id":41709388,"name":"codemirror-graphql","full_name":"graphql/codemirror-graphql","owner":{"login":"graphql","id":12972006,"avatar_url":"https://avatars.githubusercontent.com/u/12972006?v=3","gravatar_id":"","url":"https://api.github.com/users/graphql","html_url":"https://github.com/graphql","followers_url":"https://api.github.com/users/graphql/followers","following_url":"https://api.github.com/users/graphql/following{/other_user}","gists_url":"https://api.github.com/users/graphql/gists{/gist_id}","starred_url":"https://api.github.com/users/graphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphql/subscriptions","organizations_url":"https://api.github.com/users/graphql/orgs","repos_url":"https://api.github.com/users/graphql/repos","events_url":"https://api.github.com/users/graphql/events{/privacy}","received_events_url":"https://api.github.com/users/graphql/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graphql/codemirror-graphql","description":"GraphQL mode and helpers for CodeMirror.","fork":false,"url":"https://api.github.com/repos/graphql/codemirror-graphql","forks_url":"https://api.github.com/repos/graphql/codemirror-graphql/forks","keys_url":"https://api.github.com/repos/graphql/codemirror-graphql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graphql/codemirror-graphql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graphql/codemirror-graphql/teams","hooks_url":"https://api.github.com/repos/graphql/codemirror-graphql/hooks","issue_events_url":"https://api.github.com/repos/graphql/codemirror-graphql/issues/events{/number}","events_url":"https://api.github.com/repos/graphql/codemirror-graphql/events","assignees_url":"https://api.github.com/repos/graphql/codemirror-graphql/assignees{/user}","branches_url":"https://api.github.com/repos/graphql/codemirror-graphql/branches{/branch}","tags_url":"https://api.github.com/repos/graphql/codemirror-graphql/tags","blobs_url":"https://api.github.com/repos/graphql/codemirror-graphql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graphql/codemirror-graphql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graphql/codemirror-graphql/git/refs{/sha}","trees_url":"https://api.github.com/repos/graphql/codemirror-graphql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graphql/codemirror-graphql/statuses/{sha}","languages_url":"https://api.github.com/repos/graphql/codemirror-graphql/languages","stargazers_url":"https://api.github.com/repos/graphql/codemirror-graphql/stargazers","contributors_url":"https://api.github.com/repos/graphql/codemirror-graphql/contributors","subscribers_url":"https://api.github.com/repos/graphql/codemirror-graphql/subscribers","subscription_url":"https://api.github.com/repos/graphql/codemirror-graphql/subscription","commits_url":"https://api.github.com/repos/graphql/codemirror-graphql/commits{/sha}","git_commits_url":"https://api.github.com/repos/graphql/codemirror-graphql/git/commits{/sha}","comments_url":"https://api.github.com/repos/graphql/codemirror-graphql/comments{/number}","issue_comment_url":"https://api.github.com/repos/graphql/codemirror-graphql/issues/comments{/number}","contents_url":"https://api.github.com/repos/graphql/codemirror-graphql/contents/{+path}","compare_url":"https://api.github.com/repos/graphql/codemirror-graphql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graphql/codemirror-graphql/merges","archive_url":"https://api.github.com/repos/graphql/codemirror-graphql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graphql/codemirror-graphql/downloads","issues_url":"https://api.github.com/repos/graphql/codemirror-graphql/issues{/number}","pulls_url":"https://api.github.com/repos/graphql/codemirror-graphql/pulls{/number}","milestones_url":"https://api.github.com/repos/graphql/codemirror-graphql/milestones{/number}","notifications_url":"https://api.github.com/repos/graphql/codemirror-graphql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graphql/codemirror-graphql/labels{/name}","releases_url":"https://api.github.com/repos/graphql/codemirror-graphql/releases{/id}","created_at":"2015-09-01T01:16:57Z","updated_at":"2015-12-13T17:22:36Z","pushed_at":"2015-12-13T14:15:04Z","git_url":"git://github.com/graphql/codemirror-graphql.git","ssh_url":"git@github.com:graphql/codemirror-graphql.git","clone_url":"https://github.com/graphql/codemirror-graphql.git","svn_url":"https://github.com/graphql/codemirror-graphql","homepage":null,"size":1288,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graphql/codemirror-graphql/pulls/5"},"html":{"href":"https://github.com/graphql/codemirror-graphql/pull/5"},"issue":{"href":"https://api.github.com/repos/graphql/codemirror-graphql/issues/5"},"comments":{"href":"https://api.github.com/repos/graphql/codemirror-graphql/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/graphql/codemirror-graphql/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/graphql/codemirror-graphql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graphql/codemirror-graphql/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/graphql/codemirror-graphql/statuses/4304ddc5127f946ff7844321db15c0a95606531c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}