payload: {"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls/8","id":298474558,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk4NDc0NTU4","html_url":"https://github.com/Mirriam-Maina/AutoMartAPI/pull/8","diff_url":"https://github.com/Mirriam-Maina/AutoMartAPI/pull/8.diff","patch_url":"https://github.com/Mirriam-Maina/AutoMartAPI/pull/8.patch","issue_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues/8","number":8,"state":"open","locked":false,"title":"chore(refactor): refactor code","user":{"login":"Mirriam-Maina","id":31400129,"node_id":"MDQ6VXNlcjMxNDAwMTI5","avatar_url":"https://avatars0.githubusercontent.com/u/31400129?v=4","gravatar_id":"","url":"https://api.github.com/users/Mirriam-Maina","html_url":"https://github.com/Mirriam-Maina","followers_url":"https://api.github.com/users/Mirriam-Maina/followers","following_url":"https://api.github.com/users/Mirriam-Maina/following{/other_user}","gists_url":"https://api.github.com/users/Mirriam-Maina/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirriam-Maina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirriam-Maina/subscriptions","organizations_url":"https://api.github.com/users/Mirriam-Maina/orgs","repos_url":"https://api.github.com/users/Mirriam-Maina/repos","events_url":"https://api.github.com/users/Mirriam-Maina/events{/privacy}","received_events_url":"https://api.github.com/users/Mirriam-Maina/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Refactors the code\r\n#### Description of Task to be completed?\r\n- use objects instead of classes\r\n- add eslint to project\r\n- use import instead of require\r\n\r\n#### How should this be manually tested?\r\n\r\n- all files are written in JS ES6\r\n\r\n#### Any background context you want to provide?\r\n - `N/A`\r\n#### What are the relevant pivotal tracker stories?\r\n[#167343664](https://www.pivotaltracker.com/story/show/167343664)\r\n#### Screenshots (if appropriate)\r\n- `N/A`\r\n#### Questions:\r\n- `N/A`","created_at":"2019-07-17T13:38:29Z","updated_at":"2019-07-17T13:38:29Z","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/Mirriam-Maina/AutoMartAPI/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues/8/comments","statuses_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/statuses/652a481e7f6105cdc3c214a28cb5ffe5ab2f035c","head":{"label":"Mirriam-Maina:ch-refactor-code-167343664","ref":"ch-refactor-code-167343664","sha":"652a481e7f6105cdc3c214a28cb5ffe5ab2f035c","user":{"login":"Mirriam-Maina","id":31400129,"node_id":"MDQ6VXNlcjMxNDAwMTI5","avatar_url":"https://avatars0.githubusercontent.com/u/31400129?v=4","gravatar_id":"","url":"https://api.github.com/users/Mirriam-Maina","html_url":"https://github.com/Mirriam-Maina","followers_url":"https://api.github.com/users/Mirriam-Maina/followers","following_url":"https://api.github.com/users/Mirriam-Maina/following{/other_user}","gists_url":"https://api.github.com/users/Mirriam-Maina/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirriam-Maina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirriam-Maina/subscriptions","organizations_url":"https://api.github.com/users/Mirriam-Maina/orgs","repos_url":"https://api.github.com/users/Mirriam-Maina/repos","events_url":"https://api.github.com/users/Mirriam-Maina/events{/privacy}","received_events_url":"https://api.github.com/users/Mirriam-Maina/received_events","type":"User","site_admin":false},"repo":{"id":194037215,"node_id":"MDEwOlJlcG9zaXRvcnkxOTQwMzcyMTU=","name":"AutoMartAPI","full_name":"Mirriam-Maina/AutoMartAPI","private":false,"owner":{"login":"Mirriam-Maina","id":31400129,"node_id":"MDQ6VXNlcjMxNDAwMTI5","avatar_url":"https://avatars0.githubusercontent.com/u/31400129?v=4","gravatar_id":"","url":"https://api.github.com/users/Mirriam-Maina","html_url":"https://github.com/Mirriam-Maina","followers_url":"https://api.github.com/users/Mirriam-Maina/followers","following_url":"https://api.github.com/users/Mirriam-Maina/following{/other_user}","gists_url":"https://api.github.com/users/Mirriam-Maina/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirriam-Maina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirriam-Maina/subscriptions","organizations_url":"https://api.github.com/users/Mirriam-Maina/orgs","repos_url":"https://api.github.com/users/Mirriam-Maina/repos","events_url":"https://api.github.com/users/Mirriam-Maina/events{/privacy}","received_events_url":"https://api.github.com/users/Mirriam-Maina/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Mirriam-Maina/AutoMartAPI","description":"NodeJS, Express, Postgres, Chai, Mocha","fork":false,"url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI","forks_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/forks","keys_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/teams","hooks_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/hooks","issue_events_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues/events{/number}","events_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/events","assignees_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/assignees{/user}","branches_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/branches{/branch}","tags_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/tags","blobs_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/languages","stargazers_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/stargazers","contributors_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/contributors","subscribers_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/subscribers","subscription_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/subscription","commits_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/contents/{+path}","compare_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/merges","archive_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/downloads","issues_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues{/number}","pulls_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/labels{/name}","releases_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/releases{/id}","deployments_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/deployments","created_at":"2019-06-27T06:38:21Z","updated_at":"2019-07-17T11:28:49Z","pushed_at":"2019-07-17T13:35:31Z","git_url":"git://github.com/Mirriam-Maina/AutoMartAPI.git","ssh_url":"git@github.com:Mirriam-Maina/AutoMartAPI.git","clone_url":"https://github.com/Mirriam-Maina/AutoMartAPI.git","svn_url":"https://github.com/Mirriam-Maina/AutoMartAPI","homepage":null,"size":33,"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":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Mirriam-Maina:develop","ref":"develop","sha":"b7eb6cbff98dbc83de00250dd9e19878099d01e6","user":{"login":"Mirriam-Maina","id":31400129,"node_id":"MDQ6VXNlcjMxNDAwMTI5","avatar_url":"https://avatars0.githubusercontent.com/u/31400129?v=4","gravatar_id":"","url":"https://api.github.com/users/Mirriam-Maina","html_url":"https://github.com/Mirriam-Maina","followers_url":"https://api.github.com/users/Mirriam-Maina/followers","following_url":"https://api.github.com/users/Mirriam-Maina/following{/other_user}","gists_url":"https://api.github.com/users/Mirriam-Maina/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirriam-Maina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirriam-Maina/subscriptions","organizations_url":"https://api.github.com/users/Mirriam-Maina/orgs","repos_url":"https://api.github.com/users/Mirriam-Maina/repos","events_url":"https://api.github.com/users/Mirriam-Maina/events{/privacy}","received_events_url":"https://api.github.com/users/Mirriam-Maina/received_events","type":"User","site_admin":false},"repo":{"id":194037215,"node_id":"MDEwOlJlcG9zaXRvcnkxOTQwMzcyMTU=","name":"AutoMartAPI","full_name":"Mirriam-Maina/AutoMartAPI","private":false,"owner":{"login":"Mirriam-Maina","id":31400129,"node_id":"MDQ6VXNlcjMxNDAwMTI5","avatar_url":"https://avatars0.githubusercontent.com/u/31400129?v=4","gravatar_id":"","url":"https://api.github.com/users/Mirriam-Maina","html_url":"https://github.com/Mirriam-Maina","followers_url":"https://api.github.com/users/Mirriam-Maina/followers","following_url":"https://api.github.com/users/Mirriam-Maina/following{/other_user}","gists_url":"https://api.github.com/users/Mirriam-Maina/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirriam-Maina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirriam-Maina/subscriptions","organizations_url":"https://api.github.com/users/Mirriam-Maina/orgs","repos_url":"https://api.github.com/users/Mirriam-Maina/repos","events_url":"https://api.github.com/users/Mirriam-Maina/events{/privacy}","received_events_url":"https://api.github.com/users/Mirriam-Maina/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Mirriam-Maina/AutoMartAPI","description":"NodeJS, Express, Postgres, Chai, Mocha","fork":false,"url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI","forks_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/forks","keys_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/teams","hooks_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/hooks","issue_events_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues/events{/number}","events_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/events","assignees_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/assignees{/user}","branches_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/branches{/branch}","tags_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/tags","blobs_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/languages","stargazers_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/stargazers","contributors_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/contributors","subscribers_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/subscribers","subscription_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/subscription","commits_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/contents/{+path}","compare_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/merges","archive_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/downloads","issues_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues{/number}","pulls_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/labels{/name}","releases_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/releases{/id}","deployments_url":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/deployments","created_at":"2019-06-27T06:38:21Z","updated_at":"2019-07-17T11:28:49Z","pushed_at":"2019-07-17T13:35:31Z","git_url":"git://github.com/Mirriam-Maina/AutoMartAPI.git","ssh_url":"git@github.com:Mirriam-Maina/AutoMartAPI.git","clone_url":"https://github.com/Mirriam-Maina/AutoMartAPI.git","svn_url":"https://github.com/Mirriam-Maina/AutoMartAPI","homepage":null,"size":33,"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":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls/8"},"html":{"href":"https://github.com/Mirriam-Maina/AutoMartAPI/pull/8"},"issue":{"href":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues/8"},"comments":{"href":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Mirriam-Maina/AutoMartAPI/statuses/652a481e7f6105cdc3c214a28cb5ffe5ab2f035c"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":72,"deletions":40,"changed_files":8}}
other: {"actor":{"display_login":"Mirriam-Maina"}}