{"action":"created","comment":{"url":"https://api.github.com/repos/nilenso/leaflike/pulls/comments/159030168","pull_request_review_id":85917588,"id":159030168,"diff_hunk":"@@ -0,0 +1,37 @@\n+(ns leaflike.bookmarks.db\n+  (:require [clojure.java.jdbc :as jdbc]\n+            [leaflike.config :refer [db-spec]]\n+            [honeysql.core :as sql]\n+            [honeysql.helpers :as helpers]))\n+\n+(defn create\n+  [body]\n+  (jdbc/execute! (db-spec) (-> (helpers/insert-into :bookmarks)\n+                               (helpers/values [body])\n+                               sql/format)))\n+\n+(defn list-all\n+  [member_id]\n+  (jdbc/query (db-spec) (-> (helpers/select :*)\n+                            (helpers/from :bookmarks)\n+                            (helpers/where [:= :member_id member_id])\n+                            sql/format)))\n+\n+(defn list-by-id\n+  [params]","path":"src/leaflike/bookmarks/db.clj","position":21,"original_position":21,"commit_id":"73fb1a09bbae4915f2e6a05e3107fa5af379e9fd","original_commit_id":"73fb1a09bbae4915f2e6a05e3107fa5af379e9fd","user":{"login":"trycatcher","id":39019,"avatar_url":"https://avatars0.githubusercontent.com/u/39019?v=4","gravatar_id":"","url":"https://api.github.com/users/trycatcher","html_url":"https://github.com/trycatcher","followers_url":"https://api.github.com/users/trycatcher/followers","following_url":"https://api.github.com/users/trycatcher/following{/other_user}","gists_url":"https://api.github.com/users/trycatcher/gists{/gist_id}","starred_url":"https://api.github.com/users/trycatcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trycatcher/subscriptions","organizations_url":"https://api.github.com/users/trycatcher/orgs","repos_url":"https://api.github.com/users/trycatcher/repos","events_url":"https://api.github.com/users/trycatcher/events{/privacy}","received_events_url":"https://api.github.com/users/trycatcher/received_events","type":"User","site_admin":false},"body":"Use args destructuring","created_at":"2017-12-29T06:47:59Z","updated_at":"2017-12-29T06:47:59Z","html_url":"https://github.com/nilenso/leaflike/pull/20#discussion_r159030168","pull_request_url":"https://api.github.com/repos/nilenso/leaflike/pulls/20","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nilenso/leaflike/pulls/comments/159030168"},"html":{"href":"https://github.com/nilenso/leaflike/pull/20#discussion_r159030168"},"pull_request":{"href":"https://api.github.com/repos/nilenso/leaflike/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/nilenso/leaflike/pulls/20","id":159424021,"html_url":"https://github.com/nilenso/leaflike/pull/20","diff_url":"https://github.com/nilenso/leaflike/pull/20.diff","patch_url":"https://github.com/nilenso/leaflike/pull/20.patch","issue_url":"https://api.github.com/repos/nilenso/leaflike/issues/20","number":20,"state":"open","locked":false,"title":"backend for user-bookmarks alongwith corrected auth","user":{"login":"namratachaudhary","id":6064926,"avatar_url":"https://avatars0.githubusercontent.com/u/6064926?v=4","gravatar_id":"","url":"https://api.github.com/users/namratachaudhary","html_url":"https://github.com/namratachaudhary","followers_url":"https://api.github.com/users/namratachaudhary/followers","following_url":"https://api.github.com/users/namratachaudhary/following{/other_user}","gists_url":"https://api.github.com/users/namratachaudhary/gists{/gist_id}","starred_url":"https://api.github.com/users/namratachaudhary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namratachaudhary/subscriptions","organizations_url":"https://api.github.com/users/namratachaudhary/orgs","repos_url":"https://api.github.com/users/namratachaudhary/repos","events_url":"https://api.github.com/users/namratachaudhary/events{/privacy}","received_events_url":"https://api.github.com/users/namratachaudhary/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-20T14:03:02Z","updated_at":"2017-12-29T06:47:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78b99876d8cdaec9dbec036b800ba62c871dee2b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"yudistrange","id":2247412,"avatar_url":"https://avatars0.githubusercontent.com/u/2247412?v=4","gravatar_id":"","url":"https://api.github.com/users/yudistrange","html_url":"https://github.com/yudistrange","followers_url":"https://api.github.com/users/yudistrange/followers","following_url":"https://api.github.com/users/yudistrange/following{/other_user}","gists_url":"https://api.github.com/users/yudistrange/gists{/gist_id}","starred_url":"https://api.github.com/users/yudistrange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yudistrange/subscriptions","organizations_url":"https://api.github.com/users/yudistrange/orgs","repos_url":"https://api.github.com/users/yudistrange/repos","events_url":"https://api.github.com/users/yudistrange/events{/privacy}","received_events_url":"https://api.github.com/users/yudistrange/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nilenso/leaflike/pulls/20/commits","review_comments_url":"https://api.github.com/repos/nilenso/leaflike/pulls/20/comments","review_comment_url":"https://api.github.com/repos/nilenso/leaflike/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nilenso/leaflike/issues/20/comments","statuses_url":"https://api.github.com/repos/nilenso/leaflike/statuses/73fb1a09bbae4915f2e6a05e3107fa5af379e9fd","head":{"label":"nilenso:user-bookmark","ref":"user-bookmark","sha":"73fb1a09bbae4915f2e6a05e3107fa5af379e9fd","user":{"login":"nilenso","id":4366055,"avatar_url":"https://avatars0.githubusercontent.com/u/4366055?v=4","gravatar_id":"","url":"https://api.github.com/users/nilenso","html_url":"https://github.com/nilenso","followers_url":"https://api.github.com/users/nilenso/followers","following_url":"https://api.github.com/users/nilenso/following{/other_user}","gists_url":"https://api.github.com/users/nilenso/gists{/gist_id}","starred_url":"https://api.github.com/users/nilenso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilenso/subscriptions","organizations_url":"https://api.github.com/users/nilenso/orgs","repos_url":"https://api.github.com/users/nilenso/repos","events_url":"https://api.github.com/users/nilenso/events{/privacy}","received_events_url":"https://api.github.com/users/nilenso/received_events","type":"Organization","site_admin":false},"repo":{"id":111890334,"name":"leaflike","full_name":"nilenso/leaflike","owner":{"login":"nilenso","id":4366055,"avatar_url":"https://avatars0.githubusercontent.com/u/4366055?v=4","gravatar_id":"","url":"https://api.github.com/users/nilenso","html_url":"https://github.com/nilenso","followers_url":"https://api.github.com/users/nilenso/followers","following_url":"https://api.github.com/users/nilenso/following{/other_user}","gists_url":"https://api.github.com/users/nilenso/gists{/gist_id}","starred_url":"https://api.github.com/users/nilenso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilenso/subscriptions","organizations_url":"https://api.github.com/users/nilenso/orgs","repos_url":"https://api.github.com/users/nilenso/repos","events_url":"https://api.github.com/users/nilenso/events{/privacy}","received_events_url":"https://api.github.com/users/nilenso/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nilenso/leaflike","description":"A minimal bookmarking service","fork":false,"url":"https://api.github.com/repos/nilenso/leaflike","forks_url":"https://api.github.com/repos/nilenso/leaflike/forks","keys_url":"https://api.github.com/repos/nilenso/leaflike/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nilenso/leaflike/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nilenso/leaflike/teams","hooks_url":"https://api.github.com/repos/nilenso/leaflike/hooks","issue_events_url":"https://api.github.com/repos/nilenso/leaflike/issues/events{/number}","events_url":"https://api.github.com/repos/nilenso/leaflike/events","assignees_url":"https://api.github.com/repos/nilenso/leaflike/assignees{/user}","branches_url":"https://api.github.com/repos/nilenso/leaflike/branches{/branch}","tags_url":"https://api.github.com/repos/nilenso/leaflike/tags","blobs_url":"https://api.github.com/repos/nilenso/leaflike/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nilenso/leaflike/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nilenso/leaflike/git/refs{/sha}","trees_url":"https://api.github.com/repos/nilenso/leaflike/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nilenso/leaflike/statuses/{sha}","languages_url":"https://api.github.com/repos/nilenso/leaflike/languages","stargazers_url":"https://api.github.com/repos/nilenso/leaflike/stargazers","contributors_url":"https://api.github.com/repos/nilenso/leaflike/contributors","subscribers_url":"https://api.github.com/repos/nilenso/leaflike/subscribers","subscription_url":"https://api.github.com/repos/nilenso/leaflike/subscription","commits_url":"https://api.github.com/repos/nilenso/leaflike/commits{/sha}","git_commits_url":"https://api.github.com/repos/nilenso/leaflike/git/commits{/sha}","comments_url":"https://api.github.com/repos/nilenso/leaflike/comments{/number}","issue_comment_url":"https://api.github.com/repos/nilenso/leaflike/issues/comments{/number}","contents_url":"https://api.github.com/repos/nilenso/leaflike/contents/{+path}","compare_url":"https://api.github.com/repos/nilenso/leaflike/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nilenso/leaflike/merges","archive_url":"https://api.github.com/repos/nilenso/leaflike/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nilenso/leaflike/downloads","issues_url":"https://api.github.com/repos/nilenso/leaflike/issues{/number}","pulls_url":"https://api.github.com/repos/nilenso/leaflike/pulls{/number}","milestones_url":"https://api.github.com/repos/nilenso/leaflike/milestones{/number}","notifications_url":"https://api.github.com/repos/nilenso/leaflike/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nilenso/leaflike/labels{/name}","releases_url":"https://api.github.com/repos/nilenso/leaflike/releases{/id}","deployments_url":"https://api.github.com/repos/nilenso/leaflike/deployments","created_at":"2017-11-24T07:43:23Z","updated_at":"2017-11-24T07:57:21Z","pushed_at":"2017-12-21T11:34:12Z","git_url":"git://github.com/nilenso/leaflike.git","ssh_url":"git@github.com:nilenso/leaflike.git","clone_url":"https://github.com/nilenso/leaflike.git","svn_url":"https://github.com/nilenso/leaflike","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Clojure","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":10,"license":{"key":"epl-1.0","name":"Eclipse Public License 1.0","spdx_id":"EPL-1.0","url":"https://api.github.com/licenses/epl-1.0"},"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"nilenso:master","ref":"master","sha":"adeb5409757eeb4a5b142dac6d878b7ea61eca93","user":{"login":"nilenso","id":4366055,"avatar_url":"https://avatars0.githubusercontent.com/u/4366055?v=4","gravatar_id":"","url":"https://api.github.com/users/nilenso","html_url":"https://github.com/nilenso","followers_url":"https://api.github.com/users/nilenso/followers","following_url":"https://api.github.com/users/nilenso/following{/other_user}","gists_url":"https://api.github.com/users/nilenso/gists{/gist_id}","starred_url":"https://api.github.com/users/nilenso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilenso/subscriptions","organizations_url":"https://api.github.com/users/nilenso/orgs","repos_url":"https://api.github.com/users/nilenso/repos","events_url":"https://api.github.com/users/nilenso/events{/privacy}","received_events_url":"https://api.github.com/users/nilenso/received_events","type":"Organization","site_admin":false},"repo":{"id":111890334,"name":"leaflike","full_name":"nilenso/leaflike","owner":{"login":"nilenso","id":4366055,"avatar_url":"https://avatars0.githubusercontent.com/u/4366055?v=4","gravatar_id":"","url":"https://api.github.com/users/nilenso","html_url":"https://github.com/nilenso","followers_url":"https://api.github.com/users/nilenso/followers","following_url":"https://api.github.com/users/nilenso/following{/other_user}","gists_url":"https://api.github.com/users/nilenso/gists{/gist_id}","starred_url":"https://api.github.com/users/nilenso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilenso/subscriptions","organizations_url":"https://api.github.com/users/nilenso/orgs","repos_url":"https://api.github.com/users/nilenso/repos","events_url":"https://api.github.com/users/nilenso/events{/privacy}","received_events_url":"https://api.github.com/users/nilenso/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nilenso/leaflike","description":"A minimal bookmarking service","fork":false,"url":"https://api.github.com/repos/nilenso/leaflike","forks_url":"https://api.github.com/repos/nilenso/leaflike/forks","keys_url":"https://api.github.com/repos/nilenso/leaflike/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nilenso/leaflike/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nilenso/leaflike/teams","hooks_url":"https://api.github.com/repos/nilenso/leaflike/hooks","issue_events_url":"https://api.github.com/repos/nilenso/leaflike/issues/events{/number}","events_url":"https://api.github.com/repos/nilenso/leaflike/events","assignees_url":"https://api.github.com/repos/nilenso/leaflike/assignees{/user}","branches_url":"https://api.github.com/repos/nilenso/leaflike/branches{/branch}","tags_url":"https://api.github.com/repos/nilenso/leaflike/tags","blobs_url":"https://api.github.com/repos/nilenso/leaflike/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nilenso/leaflike/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nilenso/leaflike/git/refs{/sha}","trees_url":"https://api.github.com/repos/nilenso/leaflike/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nilenso/leaflike/statuses/{sha}","languages_url":"https://api.github.com/repos/nilenso/leaflike/languages","stargazers_url":"https://api.github.com/repos/nilenso/leaflike/stargazers","contributors_url":"https://api.github.com/repos/nilenso/leaflike/contributors","subscribers_url":"https://api.github.com/repos/nilenso/leaflike/subscribers","subscription_url":"https://api.github.com/repos/nilenso/leaflike/subscription","commits_url":"https://api.github.com/repos/nilenso/leaflike/commits{/sha}","git_commits_url":"https://api.github.com/repos/nilenso/leaflike/git/commits{/sha}","comments_url":"https://api.github.com/repos/nilenso/leaflike/comments{/number}","issue_comment_url":"https://api.github.com/repos/nilenso/leaflike/issues/comments{/number}","contents_url":"https://api.github.com/repos/nilenso/leaflike/contents/{+path}","compare_url":"https://api.github.com/repos/nilenso/leaflike/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nilenso/leaflike/merges","archive_url":"https://api.github.com/repos/nilenso/leaflike/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nilenso/leaflike/downloads","issues_url":"https://api.github.com/repos/nilenso/leaflike/issues{/number}","pulls_url":"https://api.github.com/repos/nilenso/leaflike/pulls{/number}","milestones_url":"https://api.github.com/repos/nilenso/leaflike/milestones{/number}","notifications_url":"https://api.github.com/repos/nilenso/leaflike/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nilenso/leaflike/labels{/name}","releases_url":"https://api.github.com/repos/nilenso/leaflike/releases{/id}","deployments_url":"https://api.github.com/repos/nilenso/leaflike/deployments","created_at":"2017-11-24T07:43:23Z","updated_at":"2017-11-24T07:57:21Z","pushed_at":"2017-12-21T11:34:12Z","git_url":"git://github.com/nilenso/leaflike.git","ssh_url":"git@github.com:nilenso/leaflike.git","clone_url":"https://github.com/nilenso/leaflike.git","svn_url":"https://github.com/nilenso/leaflike","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Clojure","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":10,"license":{"key":"epl-1.0","name":"Eclipse Public License 1.0","spdx_id":"EPL-1.0","url":"https://api.github.com/licenses/epl-1.0"},"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilenso/leaflike/pulls/20"},"html":{"href":"https://github.com/nilenso/leaflike/pull/20"},"issue":{"href":"https://api.github.com/repos/nilenso/leaflike/issues/20"},"comments":{"href":"https://api.github.com/repos/nilenso/leaflike/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/nilenso/leaflike/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/nilenso/leaflike/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nilenso/leaflike/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/nilenso/leaflike/statuses/73fb1a09bbae4915f2e6a05e3107fa5af379e9fd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"trycatcher"}}