{"action":"created","comment":{"url":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/comments/75409061","id":75409061,"diff_hunk":"@@ -3,13 +3,35 @@\n 'use strict';\n \n let pagination = require('./pagination');\n-\n+/**\n+ * Retrieve all user projects from jama's api using a user's username, password, and teamName. Prior to calling the\n+ * pagination function, the requested`url` is appended with the appropriate suffix to complete the request for all\n+ * items. The URL should be in the following format:\n+ * http://username:password@teamname.jamacloud.com/rest/latest/projects\n+ *\n+ * This function will either return a resolved promise with a payload of items, or a rejected promise.\n+ *\n+ * @param {String} username\n+ * @param {String} password\n+ * @param {String} teamName\n+ * @return {Promise} the promise will either be resolved with a payload of items of type project, or will be rejected\n+ */\n // TODO: Separate responsibilities of authenticate into two parts: (1) log-in and (2) return projects\n function authenticate (username, password, teamName) {\n   let url = 'http://' + username + ':' + password + '@' + teamName + '.jamacloud.com/rest/latest/projects';\n   return pagination(url, 0, Number.MAX_SAFE_INTEGER);\n }\n \n+/**\n+ * Validate a user's login credentials and verify they are in the following format:\n+ * username: non empty string with maximum length of 200\n+ * password: non empty string with a minimum length of 6, and a maximum length of 200\n+ * teamName: non empty string containing the user's teamName from the environment variable\n+ * Returns true if login credentials are in required format, false otherwise\n+ *\n+ * @param {Object} req\n+ * @return {boolean} true if login credentials are in required format, flase otherwise","path":"lib/auth.js","position":32,"original_position":32,"commit_id":"d617d8c175e2c44dbd8b5dff6711945bbffbd523","original_commit_id":"d617d8c175e2c44dbd8b5dff6711945bbffbd523","user":{"login":"chances","id":635049,"avatar_url":"https://avatars.githubusercontent.com/u/635049?v=3","gravatar_id":"","url":"https://api.github.com/users/chances","html_url":"https://github.com/chances","followers_url":"https://api.github.com/users/chances/followers","following_url":"https://api.github.com/users/chances/following{/other_user}","gists_url":"https://api.github.com/users/chances/gists{/gist_id}","starred_url":"https://api.github.com/users/chances/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chances/subscriptions","organizations_url":"https://api.github.com/users/chances/orgs","repos_url":"https://api.github.com/users/chances/repos","events_url":"https://api.github.com/users/chances/events{/privacy}","received_events_url":"https://api.github.com/users/chances/received_events","type":"User","site_admin":false},"body":"The IntelliJ Platform comes with spell check. All JetBrains IDEs will check spelling on everything. (Green squiggly)","created_at":"2016-08-18T23:47:23Z","updated_at":"2016-08-18T23:47:23Z","html_url":"https://github.com/RickyV33/JamaTrace/pull/156#discussion_r75409061","pull_request_url":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/156","_links":{"self":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/comments/75409061"},"html":{"href":"https://github.com/RickyV33/JamaTrace/pull/156#discussion_r75409061"},"pull_request":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/156","id":81261087,"html_url":"https://github.com/RickyV33/JamaTrace/pull/156","diff_url":"https://github.com/RickyV33/JamaTrace/pull/156.diff","patch_url":"https://github.com/RickyV33/JamaTrace/pull/156.patch","issue_url":"https://api.github.com/repos/RickyV33/JamaTrace/issues/156","number":156,"state":"open","locked":false,"title":"Commenting all old files","user":{"login":"ibilal","id":6621380,"avatar_url":"https://avatars.githubusercontent.com/u/6621380?v=3","gravatar_id":"","url":"https://api.github.com/users/ibilal","html_url":"https://github.com/ibilal","followers_url":"https://api.github.com/users/ibilal/followers","following_url":"https://api.github.com/users/ibilal/following{/other_user}","gists_url":"https://api.github.com/users/ibilal/gists{/gist_id}","starred_url":"https://api.github.com/users/ibilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibilal/subscriptions","organizations_url":"https://api.github.com/users/ibilal/orgs","repos_url":"https://api.github.com/users/ibilal/repos","events_url":"https://api.github.com/users/ibilal/events{/privacy}","received_events_url":"https://api.github.com/users/ibilal/received_events","type":"User","site_admin":false},"body":"Added comments to lib files (and their test files if they included any functionality)\r\nRemaining files that need comments are: \r\nsrc/graph.js ","created_at":"2016-08-15T01:25:00Z","updated_at":"2016-08-18T23:47:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebfa503d88bbd6e53024e9d97d5e71cc5a3e1403","assignee":{"login":"ibilal","id":6621380,"avatar_url":"https://avatars.githubusercontent.com/u/6621380?v=3","gravatar_id":"","url":"https://api.github.com/users/ibilal","html_url":"https://github.com/ibilal","followers_url":"https://api.github.com/users/ibilal/followers","following_url":"https://api.github.com/users/ibilal/following{/other_user}","gists_url":"https://api.github.com/users/ibilal/gists{/gist_id}","starred_url":"https://api.github.com/users/ibilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibilal/subscriptions","organizations_url":"https://api.github.com/users/ibilal/orgs","repos_url":"https://api.github.com/users/ibilal/repos","events_url":"https://api.github.com/users/ibilal/events{/privacy}","received_events_url":"https://api.github.com/users/ibilal/received_events","type":"User","site_admin":false},"assignees":[{"login":"ibilal","id":6621380,"avatar_url":"https://avatars.githubusercontent.com/u/6621380?v=3","gravatar_id":"","url":"https://api.github.com/users/ibilal","html_url":"https://github.com/ibilal","followers_url":"https://api.github.com/users/ibilal/followers","following_url":"https://api.github.com/users/ibilal/following{/other_user}","gists_url":"https://api.github.com/users/ibilal/gists{/gist_id}","starred_url":"https://api.github.com/users/ibilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibilal/subscriptions","organizations_url":"https://api.github.com/users/ibilal/orgs","repos_url":"https://api.github.com/users/ibilal/repos","events_url":"https://api.github.com/users/ibilal/events{/privacy}","received_events_url":"https://api.github.com/users/ibilal/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/RickyV33/JamaTrace/milestones/4","html_url":"https://github.com/RickyV33/JamaTrace/milestones/Sprint%204","labels_url":"https://api.github.com/repos/RickyV33/JamaTrace/milestones/4/labels","id":1938109,"number":4,"title":"Sprint 4","description":"","creator":{"login":"chances","id":635049,"avatar_url":"https://avatars.githubusercontent.com/u/635049?v=3","gravatar_id":"","url":"https://api.github.com/users/chances","html_url":"https://github.com/chances","followers_url":"https://api.github.com/users/chances/followers","following_url":"https://api.github.com/users/chances/following{/other_user}","gists_url":"https://api.github.com/users/chances/gists{/gist_id}","starred_url":"https://api.github.com/users/chances/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chances/subscriptions","organizations_url":"https://api.github.com/users/chances/orgs","repos_url":"https://api.github.com/users/chances/repos","events_url":"https://api.github.com/users/chances/events{/privacy}","received_events_url":"https://api.github.com/users/chances/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":2,"state":"open","created_at":"2016-08-12T00:16:27Z","updated_at":"2016-08-16T03:29:40Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/156/commits","review_comments_url":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/156/comments","review_comment_url":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RickyV33/JamaTrace/issues/156/comments","statuses_url":"https://api.github.com/repos/RickyV33/JamaTrace/statuses/d617d8c175e2c44dbd8b5dff6711945bbffbd523","head":{"label":"RickyV33:commenting-all-old-files","ref":"commenting-all-old-files","sha":"d617d8c175e2c44dbd8b5dff6711945bbffbd523","user":{"login":"RickyV33","id":5842804,"avatar_url":"https://avatars.githubusercontent.com/u/5842804?v=3","gravatar_id":"","url":"https://api.github.com/users/RickyV33","html_url":"https://github.com/RickyV33","followers_url":"https://api.github.com/users/RickyV33/followers","following_url":"https://api.github.com/users/RickyV33/following{/other_user}","gists_url":"https://api.github.com/users/RickyV33/gists{/gist_id}","starred_url":"https://api.github.com/users/RickyV33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickyV33/subscriptions","organizations_url":"https://api.github.com/users/RickyV33/orgs","repos_url":"https://api.github.com/users/RickyV33/repos","events_url":"https://api.github.com/users/RickyV33/events{/privacy}","received_events_url":"https://api.github.com/users/RickyV33/received_events","type":"User","site_admin":false},"repo":{"id":57909862,"name":"JamaTrace","full_name":"RickyV33/JamaTrace","owner":{"login":"RickyV33","id":5842804,"avatar_url":"https://avatars.githubusercontent.com/u/5842804?v=3","gravatar_id":"","url":"https://api.github.com/users/RickyV33","html_url":"https://github.com/RickyV33","followers_url":"https://api.github.com/users/RickyV33/followers","following_url":"https://api.github.com/users/RickyV33/following{/other_user}","gists_url":"https://api.github.com/users/RickyV33/gists{/gist_id}","starred_url":"https://api.github.com/users/RickyV33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickyV33/subscriptions","organizations_url":"https://api.github.com/users/RickyV33/orgs","repos_url":"https://api.github.com/users/RickyV33/repos","events_url":"https://api.github.com/users/RickyV33/events{/privacy}","received_events_url":"https://api.github.com/users/RickyV33/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RickyV33/JamaTrace","description":"Capstone project for Jama Software that provides a graphical representation of customer requirement relationships.","fork":false,"url":"https://api.github.com/repos/RickyV33/JamaTrace","forks_url":"https://api.github.com/repos/RickyV33/JamaTrace/forks","keys_url":"https://api.github.com/repos/RickyV33/JamaTrace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RickyV33/JamaTrace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RickyV33/JamaTrace/teams","hooks_url":"https://api.github.com/repos/RickyV33/JamaTrace/hooks","issue_events_url":"https://api.github.com/repos/RickyV33/JamaTrace/issues/events{/number}","events_url":"https://api.github.com/repos/RickyV33/JamaTrace/events","assignees_url":"https://api.github.com/repos/RickyV33/JamaTrace/assignees{/user}","branches_url":"https://api.github.com/repos/RickyV33/JamaTrace/branches{/branch}","tags_url":"https://api.github.com/repos/RickyV33/JamaTrace/tags","blobs_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/refs{/sha}","trees_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RickyV33/JamaTrace/statuses/{sha}","languages_url":"https://api.github.com/repos/RickyV33/JamaTrace/languages","stargazers_url":"https://api.github.com/repos/RickyV33/JamaTrace/stargazers","contributors_url":"https://api.github.com/repos/RickyV33/JamaTrace/contributors","subscribers_url":"https://api.github.com/repos/RickyV33/JamaTrace/subscribers","subscription_url":"https://api.github.com/repos/RickyV33/JamaTrace/subscription","commits_url":"https://api.github.com/repos/RickyV33/JamaTrace/commits{/sha}","git_commits_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/commits{/sha}","comments_url":"https://api.github.com/repos/RickyV33/JamaTrace/comments{/number}","issue_comment_url":"https://api.github.com/repos/RickyV33/JamaTrace/issues/comments{/number}","contents_url":"https://api.github.com/repos/RickyV33/JamaTrace/contents/{+path}","compare_url":"https://api.github.com/repos/RickyV33/JamaTrace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RickyV33/JamaTrace/merges","archive_url":"https://api.github.com/repos/RickyV33/JamaTrace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RickyV33/JamaTrace/downloads","issues_url":"https://api.github.com/repos/RickyV33/JamaTrace/issues{/number}","pulls_url":"https://api.github.com/repos/RickyV33/JamaTrace/pulls{/number}","milestones_url":"https://api.github.com/repos/RickyV33/JamaTrace/milestones{/number}","notifications_url":"https://api.github.com/repos/RickyV33/JamaTrace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RickyV33/JamaTrace/labels{/name}","releases_url":"https://api.github.com/repos/RickyV33/JamaTrace/releases{/id}","deployments_url":"https://api.github.com/repos/RickyV33/JamaTrace/deployments","created_at":"2016-05-02T18:04:14Z","updated_at":"2016-07-23T01:33:12Z","pushed_at":"2016-08-18T23:40:45Z","git_url":"git://github.com/RickyV33/JamaTrace.git","ssh_url":"git@github.com:RickyV33/JamaTrace.git","clone_url":"https://github.com/RickyV33/JamaTrace.git","svn_url":"https://github.com/RickyV33/JamaTrace","homepage":"","size":1086,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":39,"forks":3,"open_issues":39,"watchers":0,"default_branch":"master"}},"base":{"label":"RickyV33:development","ref":"development","sha":"a440044a56c18a1eb5c1e7a64247e57ca339f31d","user":{"login":"RickyV33","id":5842804,"avatar_url":"https://avatars.githubusercontent.com/u/5842804?v=3","gravatar_id":"","url":"https://api.github.com/users/RickyV33","html_url":"https://github.com/RickyV33","followers_url":"https://api.github.com/users/RickyV33/followers","following_url":"https://api.github.com/users/RickyV33/following{/other_user}","gists_url":"https://api.github.com/users/RickyV33/gists{/gist_id}","starred_url":"https://api.github.com/users/RickyV33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickyV33/subscriptions","organizations_url":"https://api.github.com/users/RickyV33/orgs","repos_url":"https://api.github.com/users/RickyV33/repos","events_url":"https://api.github.com/users/RickyV33/events{/privacy}","received_events_url":"https://api.github.com/users/RickyV33/received_events","type":"User","site_admin":false},"repo":{"id":57909862,"name":"JamaTrace","full_name":"RickyV33/JamaTrace","owner":{"login":"RickyV33","id":5842804,"avatar_url":"https://avatars.githubusercontent.com/u/5842804?v=3","gravatar_id":"","url":"https://api.github.com/users/RickyV33","html_url":"https://github.com/RickyV33","followers_url":"https://api.github.com/users/RickyV33/followers","following_url":"https://api.github.com/users/RickyV33/following{/other_user}","gists_url":"https://api.github.com/users/RickyV33/gists{/gist_id}","starred_url":"https://api.github.com/users/RickyV33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickyV33/subscriptions","organizations_url":"https://api.github.com/users/RickyV33/orgs","repos_url":"https://api.github.com/users/RickyV33/repos","events_url":"https://api.github.com/users/RickyV33/events{/privacy}","received_events_url":"https://api.github.com/users/RickyV33/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RickyV33/JamaTrace","description":"Capstone project for Jama Software that provides a graphical representation of customer requirement relationships.","fork":false,"url":"https://api.github.com/repos/RickyV33/JamaTrace","forks_url":"https://api.github.com/repos/RickyV33/JamaTrace/forks","keys_url":"https://api.github.com/repos/RickyV33/JamaTrace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RickyV33/JamaTrace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RickyV33/JamaTrace/teams","hooks_url":"https://api.github.com/repos/RickyV33/JamaTrace/hooks","issue_events_url":"https://api.github.com/repos/RickyV33/JamaTrace/issues/events{/number}","events_url":"https://api.github.com/repos/RickyV33/JamaTrace/events","assignees_url":"https://api.github.com/repos/RickyV33/JamaTrace/assignees{/user}","branches_url":"https://api.github.com/repos/RickyV33/JamaTrace/branches{/branch}","tags_url":"https://api.github.com/repos/RickyV33/JamaTrace/tags","blobs_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/refs{/sha}","trees_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RickyV33/JamaTrace/statuses/{sha}","languages_url":"https://api.github.com/repos/RickyV33/JamaTrace/languages","stargazers_url":"https://api.github.com/repos/RickyV33/JamaTrace/stargazers","contributors_url":"https://api.github.com/repos/RickyV33/JamaTrace/contributors","subscribers_url":"https://api.github.com/repos/RickyV33/JamaTrace/subscribers","subscription_url":"https://api.github.com/repos/RickyV33/JamaTrace/subscription","commits_url":"https://api.github.com/repos/RickyV33/JamaTrace/commits{/sha}","git_commits_url":"https://api.github.com/repos/RickyV33/JamaTrace/git/commits{/sha}","comments_url":"https://api.github.com/repos/RickyV33/JamaTrace/comments{/number}","issue_comment_url":"https://api.github.com/repos/RickyV33/JamaTrace/issues/comments{/number}","contents_url":"https://api.github.com/repos/RickyV33/JamaTrace/contents/{+path}","compare_url":"https://api.github.com/repos/RickyV33/JamaTrace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RickyV33/JamaTrace/merges","archive_url":"https://api.github.com/repos/RickyV33/JamaTrace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RickyV33/JamaTrace/downloads","issues_url":"https://api.github.com/repos/RickyV33/JamaTrace/issues{/number}","pulls_url":"https://api.github.com/repos/RickyV33/JamaTrace/pulls{/number}","milestones_url":"https://api.github.com/repos/RickyV33/JamaTrace/milestones{/number}","notifications_url":"https://api.github.com/repos/RickyV33/JamaTrace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RickyV33/JamaTrace/labels{/name}","releases_url":"https://api.github.com/repos/RickyV33/JamaTrace/releases{/id}","deployments_url":"https://api.github.com/repos/RickyV33/JamaTrace/deployments","created_at":"2016-05-02T18:04:14Z","updated_at":"2016-07-23T01:33:12Z","pushed_at":"2016-08-18T23:40:45Z","git_url":"git://github.com/RickyV33/JamaTrace.git","ssh_url":"git@github.com:RickyV33/JamaTrace.git","clone_url":"https://github.com/RickyV33/JamaTrace.git","svn_url":"https://github.com/RickyV33/JamaTrace","homepage":"","size":1086,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":39,"forks":3,"open_issues":39,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/156"},"html":{"href":"https://github.com/RickyV33/JamaTrace/pull/156"},"issue":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/issues/156"},"comments":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/RickyV33/JamaTrace/statuses/d617d8c175e2c44dbd8b5dff6711945bbffbd523"}}}}
{"actor":{"display_login":"chances"}}