{"action":"created","comment":{"url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/comments/83281207","pull_request_review_id":4132616,"id":83281207,"diff_hunk":"@@ -1,55 +1,406 @@\n-var express = require('express');\n-var router = express.Router();\n-var Song = require('../models/song');\n-var User = require('../models/user')\n-var app = require('../app')\n-var pdf = require('html-pdf')\n-var fs = require('file-system')\n-\n-\n-/* GET home page. */\n-router.get('/', function(req, res, next) {\n-    Song.find(function(err, songs) {\n-            Song.find({\n-                source: {\n-                    $ne: undefined\n-                }\n-            }, function(err, demo) {\n-                console.log(demo)\n+var express = require('express'),\n+    router = express.Router(),\n+    Song = require('../models/song'),\n+    User = require('../models/user'),\n+    _ = require('lodash'),\n+    Playlist = require('../models/playlist'),\n+    async = require('async')\n+\n+\n+router.get('/demo', function(req, res) {\n+    var temp = ['english', 'spanish', 'portuguese']\n+    var number = 0\n+    temp.forEach((t) => {\n+        Song.find({\n+            lang: t\n+        }, function(err, songs) {\n+            songs.forEach((s) => {\n+                number++\n             })\n-            res.render('index', {\n+            console.log(songs)\n+            console.log(number)\n+        })\n+    })\n+})\n+\n+router.get('/', function(req, res) {\n+    console.log()\n+    var messages = req.flash()\n+    Song.find(function(err, songs, count) {\n+            if (err) {\n+                res.status(400).send('error getting song list ' + err)\n+            }\n+            if (req.isAuthenticated()) {\n+                User.findOne({\n+                    _id: req.user._id\n+                }, function(err, user) {\n+                    if (err) return handleError(err)\n+                    Playlist.find({\n+                        owner: req.user._id\n+                    }, function(err, playlists) {\n+                        if (err) return handleError(err)\n+                        res.render('index', {\n+                            songs: songs,\n+                            inLibrary: user.library,\n+                            playlists: playlists,\n+                            messages: messages\n+                        })\n+                    })\n+\n+                })\n+            } else {\n+                res.render('index', {\n+                    songs: songs,\n+                    inLibrary: [],\n+                    playlists: [],\n+                    messages: messages\n+                })\n+            }\n+        })\n+        .sort({\n+            title: 1\n+        })\n+        .limit(10)\n+})\n+\n+router.put('/', function(req, res) {\n+    var messages = req.flash()\n+    var amount = req.body.amount\n+    var langShown = req.body.langShown\n+    Song.find({\n+            lang: langShown\n+        }, function(err, songs) {\n+            if (err) {\n+                res.status(400).send('error getting song list ' + err)\n+            }\n+            res.send({\n                 songs: songs\n             })\n         })\n         .sort({\n-            _id: -1\n-        }).limit(5)\n+            title: 1\n+        })\n+        .limit(amount)\n+\n })\n \n-router.post('/', function(req, res, next) {\n-    Song.find({\n-        $text: {\n-            $search: \"\\\"\" + req.body.search + \"\\\"\"\n-        }\n-    }, function(err, songs) {\n+router.post('/', function(req, res) {\n+    var id = req.body.id\n+    if (req.isAuthenticated()) {\n+        User.findOne({\n+            _id: req.user._id\n+        }, function(err, user) {\n+            if (err) return handleError(err)\n+            user.library.push(id)\n+            user.save(function(err) {\n+                if (err) return handleError(err)\n+                res.send({\n+                    inLibrary: user.library\n+                })\n+            })\n+        })\n+    } else {\n+        res.send({\n+            url: '/user/login'\n+        })\n+    }\n+})\n+\n+router.delete('/', function(req, res) {\n+    var id = req.body.id\n+    User.findOne({\n+        _id: req.user._id\n+    }, function(err, user) {\n         if (err) return handleError(err)\n-        if (req.isAuthenticated()) {\n-            User.findOne({\n-                _id: req.user._id\n-            }, function(err, user) {\n+        var index = user.library.indexOf(id)\n+        if (index > -1) {\n+            user.library.splice(index, 1)\n+        }\n+        user.save(function(err) {\n+            if (err) return handleError(err)\n+            console.log('delete success')\n+            res.send({\n+                inLibrary: user.library\n+            })\n+        })\n+    })\n+})\n+\n+router.post('/filter', function(req, res) {\n+        var langShown = req.body.langShown.toLowerCase()\n+        var langFilter = req.body.langFilter.map((lf) => lf.toLowerCase())\n+        var songs2d = []\n+        var temp = []\n+        async.waterfall([\n+                function(done) {\n+                    Song.find({\n+                        source: {\n+                            $exists: false\n+                        }\n+                    }, function(err, songs) {\n+                        done(err, songs)\n+                    })\n+                },\n+                function(songs, done) {\n+                    var cbs = songs.map((s, i, arr) => {\n+                        return function(done) {\n+                            temp = []\n+                            temp.push(s)\n+                            Song.find({\n+                                source: s._id\n+                            }, (err, translations) => {\n+                                translations.forEach((t) => {\n+                                    temp.push(t)\n+                                })\n+                                songs2d.push(temp)\n+                                if (i === arr.length - 1) {\n+                                    done(null, songs2d)\n+                                } else {\n+                                    done()\n+                                }\n+                            })\n+                        }\n+                    });\n+                    async.waterfall(cbs, function(err, songs2d) {\n+                        done(null, songs2d)\n+                    });\n+                },\n+                function(songs2d, done) {\n+                    songs2d = songs2d.filter((songs) => {\n+                        var langArray = (songs.map((song) => song.lang))\n+                        for (var i = 0; i < langFilter.length; i++) {\n+                            if (!_.includes(langArray, langFilter[i])) {\n+                                return false\n+                            }\n+                        }\n+                        return true\n+                    })\n+                    done(null, songs2d)\n+                },\n+                function(songs2d, done) {\n+                    if (!_.isEmpty(songs2d)) {\n+                        songs2d = songs2d.reduce((prev, curr) => {\n+                            return _.concat(prev, curr)\n+                        })\n+                    }\n+                    done(null, songs2d)\n+                },\n+                function(songs2d, done){\n+                  songs2d = songs2d.filter((s) => s.lang === langShown)\n+                  done(null, songs2d)\n+                }\n+            ],\n+            function(err, songs2d) {\n                 if (err) return handleError(err)\n-                res.render('songlist', {\n+                res.send({\n+                    songs: songs2d\n+                })\n+            })\n+    })\n+\n+router.get('/search', function(req, res) {\n+    var tag = req.query.q\n+    var messages = req.flash()\n+    Song.find({\n+            $text: {\n+                $search: \"\\\"\" + tag + \"\\\"\"\n+            }\n+        }, function(err, songs, count) {\n+            if (err) {\n+                res.status(400).send('error getting song list ' + err)\n+            }\n+            if (req.isAuthenticated()) {","path":"routes/index.js","position":244,"original_position":244,"commit_id":"603dcdb26a8e87a3bcd2e5e2eb42f59438f88774","original_commit_id":"603dcdb26a8e87a3bcd2e5e2eb42f59438f88774","user":{"login":"chrislim","id":469630,"avatar_url":"https://avatars.githubusercontent.com/u/469630?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislim","html_url":"https://github.com/chrislim","followers_url":"https://api.github.com/users/chrislim/followers","following_url":"https://api.github.com/users/chrislim/following{/other_user}","gists_url":"https://api.github.com/users/chrislim/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislim/subscriptions","organizations_url":"https://api.github.com/users/chrislim/orgs","repos_url":"https://api.github.com/users/chrislim/repos","events_url":"https://api.github.com/users/chrislim/events{/privacy}","received_events_url":"https://api.github.com/users/chrislim/received_events","type":"User","site_admin":false},"body":"Some of this code seems similar to line 23. Refactor to reuse code?","created_at":"2016-10-13T18:27:40Z","updated_at":"2016-10-13T18:27:40Z","html_url":"https://github.com/jonathanarde/spfio-songdatabase/pull/8#discussion_r83281207","pull_request_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/comments/83281207"},"html":{"href":"https://github.com/jonathanarde/spfio-songdatabase/pull/8#discussion_r83281207"},"pull_request":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/8","id":88356404,"html_url":"https://github.com/jonathanarde/spfio-songdatabase/pull/8","diff_url":"https://github.com/jonathanarde/spfio-songdatabase/pull/8.diff","patch_url":"https://github.com/jonathanarde/spfio-songdatabase/pull/8.patch","issue_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues/8","number":8,"state":"open","locked":false,"title":"adding addToPlaylist button on songlist","user":{"login":"jonathanarde","id":20826134,"avatar_url":"https://avatars.githubusercontent.com/u/20826134?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanarde","html_url":"https://github.com/jonathanarde","followers_url":"https://api.github.com/users/jonathanarde/followers","following_url":"https://api.github.com/users/jonathanarde/following{/other_user}","gists_url":"https://api.github.com/users/jonathanarde/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanarde/subscriptions","organizations_url":"https://api.github.com/users/jonathanarde/orgs","repos_url":"https://api.github.com/users/jonathanarde/repos","events_url":"https://api.github.com/users/jonathanarde/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanarde/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-06T23:01:01Z","updated_at":"2016-10-13T18:32:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66df74c575fa9fbd1c920eaef598c6b3d1d0ba4f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/8/commits","review_comments_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/8/comments","review_comment_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues/8/comments","statuses_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/statuses/603dcdb26a8e87a3bcd2e5e2eb42f59438f88774","head":{"label":"jonathanarde:ui","ref":"ui","sha":"603dcdb26a8e87a3bcd2e5e2eb42f59438f88774","user":{"login":"jonathanarde","id":20826134,"avatar_url":"https://avatars.githubusercontent.com/u/20826134?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanarde","html_url":"https://github.com/jonathanarde","followers_url":"https://api.github.com/users/jonathanarde/followers","following_url":"https://api.github.com/users/jonathanarde/following{/other_user}","gists_url":"https://api.github.com/users/jonathanarde/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanarde/subscriptions","organizations_url":"https://api.github.com/users/jonathanarde/orgs","repos_url":"https://api.github.com/users/jonathanarde/repos","events_url":"https://api.github.com/users/jonathanarde/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanarde/received_events","type":"User","site_admin":false},"repo":{"id":67388245,"name":"spfio-songdatabase","full_name":"jonathanarde/spfio-songdatabase","owner":{"login":"jonathanarde","id":20826134,"avatar_url":"https://avatars.githubusercontent.com/u/20826134?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanarde","html_url":"https://github.com/jonathanarde","followers_url":"https://api.github.com/users/jonathanarde/followers","following_url":"https://api.github.com/users/jonathanarde/following{/other_user}","gists_url":"https://api.github.com/users/jonathanarde/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanarde/subscriptions","organizations_url":"https://api.github.com/users/jonathanarde/orgs","repos_url":"https://api.github.com/users/jonathanarde/repos","events_url":"https://api.github.com/users/jonathanarde/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanarde/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonathanarde/spfio-songdatabase","description":"song database for spfio","fork":false,"url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase","forks_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/forks","keys_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/teams","hooks_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/hooks","issue_events_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues/events{/number}","events_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/events","assignees_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/assignees{/user}","branches_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/branches{/branch}","tags_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/tags","blobs_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/statuses/{sha}","languages_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/languages","stargazers_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/stargazers","contributors_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/contributors","subscribers_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/subscribers","subscription_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/subscription","commits_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/contents/{+path}","compare_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/merges","archive_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/downloads","issues_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues{/number}","pulls_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls{/number}","milestones_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/milestones{/number}","notifications_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/labels{/name}","releases_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/releases{/id}","deployments_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/deployments","created_at":"2016-09-05T04:34:24Z","updated_at":"2016-09-21T23:14:19Z","pushed_at":"2016-10-13T18:06:57Z","git_url":"git://github.com/jonathanarde/spfio-songdatabase.git","ssh_url":"git@github.com:jonathanarde/spfio-songdatabase.git","clone_url":"https://github.com/jonathanarde/spfio-songdatabase.git","svn_url":"https://github.com/jonathanarde/spfio-songdatabase","homepage":null,"size":22418,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jonathanarde:master","ref":"master","sha":"72fe8ecca9e4bb2d895dc5641bc418f820ae0a47","user":{"login":"jonathanarde","id":20826134,"avatar_url":"https://avatars.githubusercontent.com/u/20826134?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanarde","html_url":"https://github.com/jonathanarde","followers_url":"https://api.github.com/users/jonathanarde/followers","following_url":"https://api.github.com/users/jonathanarde/following{/other_user}","gists_url":"https://api.github.com/users/jonathanarde/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanarde/subscriptions","organizations_url":"https://api.github.com/users/jonathanarde/orgs","repos_url":"https://api.github.com/users/jonathanarde/repos","events_url":"https://api.github.com/users/jonathanarde/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanarde/received_events","type":"User","site_admin":false},"repo":{"id":67388245,"name":"spfio-songdatabase","full_name":"jonathanarde/spfio-songdatabase","owner":{"login":"jonathanarde","id":20826134,"avatar_url":"https://avatars.githubusercontent.com/u/20826134?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanarde","html_url":"https://github.com/jonathanarde","followers_url":"https://api.github.com/users/jonathanarde/followers","following_url":"https://api.github.com/users/jonathanarde/following{/other_user}","gists_url":"https://api.github.com/users/jonathanarde/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanarde/subscriptions","organizations_url":"https://api.github.com/users/jonathanarde/orgs","repos_url":"https://api.github.com/users/jonathanarde/repos","events_url":"https://api.github.com/users/jonathanarde/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanarde/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonathanarde/spfio-songdatabase","description":"song database for spfio","fork":false,"url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase","forks_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/forks","keys_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/teams","hooks_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/hooks","issue_events_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues/events{/number}","events_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/events","assignees_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/assignees{/user}","branches_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/branches{/branch}","tags_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/tags","blobs_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/statuses/{sha}","languages_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/languages","stargazers_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/stargazers","contributors_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/contributors","subscribers_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/subscribers","subscription_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/subscription","commits_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/contents/{+path}","compare_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/merges","archive_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/downloads","issues_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues{/number}","pulls_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls{/number}","milestones_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/milestones{/number}","notifications_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/labels{/name}","releases_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/releases{/id}","deployments_url":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/deployments","created_at":"2016-09-05T04:34:24Z","updated_at":"2016-09-21T23:14:19Z","pushed_at":"2016-10-13T18:06:57Z","git_url":"git://github.com/jonathanarde/spfio-songdatabase.git","ssh_url":"git@github.com:jonathanarde/spfio-songdatabase.git","clone_url":"https://github.com/jonathanarde/spfio-songdatabase.git","svn_url":"https://github.com/jonathanarde/spfio-songdatabase","homepage":null,"size":22418,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/8"},"html":{"href":"https://github.com/jonathanarde/spfio-songdatabase/pull/8"},"issue":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues/8"},"comments":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/jonathanarde/spfio-songdatabase/statuses/603dcdb26a8e87a3bcd2e5e2eb42f59438f88774"}}}}
{"actor":{"display_login":"chrislim"}}