{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/zanchi/scavenge/pulls/4","id":173073988,"html_url":"https://github.com/zanchi/scavenge/pull/4","diff_url":"https://github.com/zanchi/scavenge/pull/4.diff","patch_url":"https://github.com/zanchi/scavenge/pull/4.patch","issue_url":"https://api.github.com/repos/zanchi/scavenge/issues/4","number":4,"state":"closed","locked":false,"title":"#2 Adds users schema","user":{"login":"zanchi","id":14365008,"avatar_url":"https://avatars1.githubusercontent.com/u/14365008?v=4","gravatar_id":"","url":"https://api.github.com/users/zanchi","html_url":"https://github.com/zanchi","followers_url":"https://api.github.com/users/zanchi/followers","following_url":"https://api.github.com/users/zanchi/following{/other_user}","gists_url":"https://api.github.com/users/zanchi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanchi/subscriptions","organizations_url":"https://api.github.com/users/zanchi/orgs","repos_url":"https://api.github.com/users/zanchi/repos","events_url":"https://api.github.com/users/zanchi/events{/privacy}","received_events_url":"https://api.github.com/users/zanchi/received_events","type":"User","site_admin":false},"body":"This PR adds the users schema and updates the overall schema set up to use a nicer structure. There are two `users` queries and one `users` mutation.\r\n\r\n## Queries\r\n### `user(id: GraphQLID | username: GraphQLString): User`\r\nRetrieves a single user, either by id or by an exact match on the username\r\n### `users(search: GraphQLString, [limit: GraphQLInt]): GraphQLList<User>`\r\nRetrieves a list of users by trying to find the case-insensitive `search` string in their username. Can be limited to a certain length by also passing the `limit` param\r\n\r\n## Mutations\r\n### `user(user: UserInputType): User`\r\nIf the id is supplied, it will update the user. If not, it will attempt to create a new user. If there is a user existing with that username, it will return an error. **Note:** Once sessions are implemented, this will need to be updated to check the request and ensure users can only update their own information.\r\n","created_at":"2018-03-06T07:03:55Z","updated_at":"2018-03-07T03:04:23Z","closed_at":"2018-03-07T03:04:23Z","merged_at":"2018-03-07T03:04:23Z","merge_commit_sha":"a5692951e2fd7a88ee7f4f6a7e3fd0ff67a3eafa","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":857349609,"url":"https://api.github.com/repos/zanchi/scavenge/labels/back%20end","name":"back end","color":"7fcc1c","default":false},{"id":856093171,"url":"https://api.github.com/repos/zanchi/scavenge/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/zanchi/scavenge/pulls/4/commits","review_comments_url":"https://api.github.com/repos/zanchi/scavenge/pulls/4/comments","review_comment_url":"https://api.github.com/repos/zanchi/scavenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zanchi/scavenge/issues/4/comments","statuses_url":"https://api.github.com/repos/zanchi/scavenge/statuses/a70e2f4e537cf34fcc6f839407fc54f6c3e19d09","head":{"label":"zanchi:feature/#2","ref":"feature/#2","sha":"a70e2f4e537cf34fcc6f839407fc54f6c3e19d09","user":{"login":"zanchi","id":14365008,"avatar_url":"https://avatars1.githubusercontent.com/u/14365008?v=4","gravatar_id":"","url":"https://api.github.com/users/zanchi","html_url":"https://github.com/zanchi","followers_url":"https://api.github.com/users/zanchi/followers","following_url":"https://api.github.com/users/zanchi/following{/other_user}","gists_url":"https://api.github.com/users/zanchi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanchi/subscriptions","organizations_url":"https://api.github.com/users/zanchi/orgs","repos_url":"https://api.github.com/users/zanchi/repos","events_url":"https://api.github.com/users/zanchi/events{/privacy}","received_events_url":"https://api.github.com/users/zanchi/received_events","type":"User","site_admin":false},"repo":{"id":123857898,"name":"scavenge","full_name":"zanchi/scavenge","owner":{"login":"zanchi","id":14365008,"avatar_url":"https://avatars1.githubusercontent.com/u/14365008?v=4","gravatar_id":"","url":"https://api.github.com/users/zanchi","html_url":"https://github.com/zanchi","followers_url":"https://api.github.com/users/zanchi/followers","following_url":"https://api.github.com/users/zanchi/following{/other_user}","gists_url":"https://api.github.com/users/zanchi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanchi/subscriptions","organizations_url":"https://api.github.com/users/zanchi/orgs","repos_url":"https://api.github.com/users/zanchi/repos","events_url":"https://api.github.com/users/zanchi/events{/privacy}","received_events_url":"https://api.github.com/users/zanchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zanchi/scavenge","description":"A web app for scavenger hunts","fork":false,"url":"https://api.github.com/repos/zanchi/scavenge","forks_url":"https://api.github.com/repos/zanchi/scavenge/forks","keys_url":"https://api.github.com/repos/zanchi/scavenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zanchi/scavenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zanchi/scavenge/teams","hooks_url":"https://api.github.com/repos/zanchi/scavenge/hooks","issue_events_url":"https://api.github.com/repos/zanchi/scavenge/issues/events{/number}","events_url":"https://api.github.com/repos/zanchi/scavenge/events","assignees_url":"https://api.github.com/repos/zanchi/scavenge/assignees{/user}","branches_url":"https://api.github.com/repos/zanchi/scavenge/branches{/branch}","tags_url":"https://api.github.com/repos/zanchi/scavenge/tags","blobs_url":"https://api.github.com/repos/zanchi/scavenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zanchi/scavenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zanchi/scavenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/zanchi/scavenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zanchi/scavenge/statuses/{sha}","languages_url":"https://api.github.com/repos/zanchi/scavenge/languages","stargazers_url":"https://api.github.com/repos/zanchi/scavenge/stargazers","contributors_url":"https://api.github.com/repos/zanchi/scavenge/contributors","subscribers_url":"https://api.github.com/repos/zanchi/scavenge/subscribers","subscription_url":"https://api.github.com/repos/zanchi/scavenge/subscription","commits_url":"https://api.github.com/repos/zanchi/scavenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/zanchi/scavenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/zanchi/scavenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/zanchi/scavenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/zanchi/scavenge/contents/{+path}","compare_url":"https://api.github.com/repos/zanchi/scavenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zanchi/scavenge/merges","archive_url":"https://api.github.com/repos/zanchi/scavenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zanchi/scavenge/downloads","issues_url":"https://api.github.com/repos/zanchi/scavenge/issues{/number}","pulls_url":"https://api.github.com/repos/zanchi/scavenge/pulls{/number}","milestones_url":"https://api.github.com/repos/zanchi/scavenge/milestones{/number}","notifications_url":"https://api.github.com/repos/zanchi/scavenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zanchi/scavenge/labels{/name}","releases_url":"https://api.github.com/repos/zanchi/scavenge/releases{/id}","deployments_url":"https://api.github.com/repos/zanchi/scavenge/deployments","created_at":"2018-03-05T03:11:40Z","updated_at":"2018-03-06T03:46:54Z","pushed_at":"2018-03-07T03:04:23Z","git_url":"git://github.com/zanchi/scavenge.git","ssh_url":"git@github.com:zanchi/scavenge.git","clone_url":"https://github.com/zanchi/scavenge.git","svn_url":"https://github.com/zanchi/scavenge","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"zanchi:master","ref":"master","sha":"e544ea59012a1e60214a5def1ec437b055ffed0d","user":{"login":"zanchi","id":14365008,"avatar_url":"https://avatars1.githubusercontent.com/u/14365008?v=4","gravatar_id":"","url":"https://api.github.com/users/zanchi","html_url":"https://github.com/zanchi","followers_url":"https://api.github.com/users/zanchi/followers","following_url":"https://api.github.com/users/zanchi/following{/other_user}","gists_url":"https://api.github.com/users/zanchi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanchi/subscriptions","organizations_url":"https://api.github.com/users/zanchi/orgs","repos_url":"https://api.github.com/users/zanchi/repos","events_url":"https://api.github.com/users/zanchi/events{/privacy}","received_events_url":"https://api.github.com/users/zanchi/received_events","type":"User","site_admin":false},"repo":{"id":123857898,"name":"scavenge","full_name":"zanchi/scavenge","owner":{"login":"zanchi","id":14365008,"avatar_url":"https://avatars1.githubusercontent.com/u/14365008?v=4","gravatar_id":"","url":"https://api.github.com/users/zanchi","html_url":"https://github.com/zanchi","followers_url":"https://api.github.com/users/zanchi/followers","following_url":"https://api.github.com/users/zanchi/following{/other_user}","gists_url":"https://api.github.com/users/zanchi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanchi/subscriptions","organizations_url":"https://api.github.com/users/zanchi/orgs","repos_url":"https://api.github.com/users/zanchi/repos","events_url":"https://api.github.com/users/zanchi/events{/privacy}","received_events_url":"https://api.github.com/users/zanchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zanchi/scavenge","description":"A web app for scavenger hunts","fork":false,"url":"https://api.github.com/repos/zanchi/scavenge","forks_url":"https://api.github.com/repos/zanchi/scavenge/forks","keys_url":"https://api.github.com/repos/zanchi/scavenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zanchi/scavenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zanchi/scavenge/teams","hooks_url":"https://api.github.com/repos/zanchi/scavenge/hooks","issue_events_url":"https://api.github.com/repos/zanchi/scavenge/issues/events{/number}","events_url":"https://api.github.com/repos/zanchi/scavenge/events","assignees_url":"https://api.github.com/repos/zanchi/scavenge/assignees{/user}","branches_url":"https://api.github.com/repos/zanchi/scavenge/branches{/branch}","tags_url":"https://api.github.com/repos/zanchi/scavenge/tags","blobs_url":"https://api.github.com/repos/zanchi/scavenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zanchi/scavenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zanchi/scavenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/zanchi/scavenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zanchi/scavenge/statuses/{sha}","languages_url":"https://api.github.com/repos/zanchi/scavenge/languages","stargazers_url":"https://api.github.com/repos/zanchi/scavenge/stargazers","contributors_url":"https://api.github.com/repos/zanchi/scavenge/contributors","subscribers_url":"https://api.github.com/repos/zanchi/scavenge/subscribers","subscription_url":"https://api.github.com/repos/zanchi/scavenge/subscription","commits_url":"https://api.github.com/repos/zanchi/scavenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/zanchi/scavenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/zanchi/scavenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/zanchi/scavenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/zanchi/scavenge/contents/{+path}","compare_url":"https://api.github.com/repos/zanchi/scavenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zanchi/scavenge/merges","archive_url":"https://api.github.com/repos/zanchi/scavenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zanchi/scavenge/downloads","issues_url":"https://api.github.com/repos/zanchi/scavenge/issues{/number}","pulls_url":"https://api.github.com/repos/zanchi/scavenge/pulls{/number}","milestones_url":"https://api.github.com/repos/zanchi/scavenge/milestones{/number}","notifications_url":"https://api.github.com/repos/zanchi/scavenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zanchi/scavenge/labels{/name}","releases_url":"https://api.github.com/repos/zanchi/scavenge/releases{/id}","deployments_url":"https://api.github.com/repos/zanchi/scavenge/deployments","created_at":"2018-03-05T03:11:40Z","updated_at":"2018-03-06T03:46:54Z","pushed_at":"2018-03-07T03:04:23Z","git_url":"git://github.com/zanchi/scavenge.git","ssh_url":"git@github.com:zanchi/scavenge.git","clone_url":"https://github.com/zanchi/scavenge.git","svn_url":"https://github.com/zanchi/scavenge","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zanchi/scavenge/pulls/4"},"html":{"href":"https://github.com/zanchi/scavenge/pull/4"},"issue":{"href":"https://api.github.com/repos/zanchi/scavenge/issues/4"},"comments":{"href":"https://api.github.com/repos/zanchi/scavenge/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/zanchi/scavenge/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/zanchi/scavenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zanchi/scavenge/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/zanchi/scavenge/statuses/a70e2f4e537cf34fcc6f839407fc54f6c3e19d09"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"zanchi","id":14365008,"avatar_url":"https://avatars1.githubusercontent.com/u/14365008?v=4","gravatar_id":"","url":"https://api.github.com/users/zanchi","html_url":"https://github.com/zanchi","followers_url":"https://api.github.com/users/zanchi/followers","following_url":"https://api.github.com/users/zanchi/following{/other_user}","gists_url":"https://api.github.com/users/zanchi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanchi/subscriptions","organizations_url":"https://api.github.com/users/zanchi/orgs","repos_url":"https://api.github.com/users/zanchi/repos","events_url":"https://api.github.com/users/zanchi/events{/privacy}","received_events_url":"https://api.github.com/users/zanchi/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":427,"deletions":24,"changed_files":14}}
{"actor":{"display_login":"zanchi"}}