{"action":"created","comment":{"url":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/comments/73438916","id":73438916,"diff_hunk":"@@ -0,0 +1,45 @@\n+'use strict'\n+\n+const co = require('co')\n+const cli = require('heroku-cli-util')\n+const pg = require('heroku-pg')\n+const util = require('../lib/util')\n+\n+function * run (context, heroku) {\n+  let db = yield pg.fetcher(heroku).database(context.app, context.args.database)\n+\n+  yield util.ensurePGStatStatement(db)\n+\n+  let truncatedQueryString = context.flags.truncate\n+    ? 'CASE WHEN length(query) < 40 THEN query ELSE substr(query, 0, 38) || \\'..\\' END'","path":"commands/calls.js","position":14,"original_position":14,"commit_id":"3b94b9187fa65c338d870b796ef7f2870a1e6fb0","original_commit_id":"3b94b9187fa65c338d870b796ef7f2870a1e6fb0","user":{"login":"uhoh-itsmaciek","id":159100,"avatar_url":"https://avatars.githubusercontent.com/u/159100?v=3","gravatar_id":"","url":"https://api.github.com/users/uhoh-itsmaciek","html_url":"https://github.com/uhoh-itsmaciek","followers_url":"https://api.github.com/users/uhoh-itsmaciek/followers","following_url":"https://api.github.com/users/uhoh-itsmaciek/following{/other_user}","gists_url":"https://api.github.com/users/uhoh-itsmaciek/gists{/gist_id}","starred_url":"https://api.github.com/users/uhoh-itsmaciek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uhoh-itsmaciek/subscriptions","organizations_url":"https://api.github.com/users/uhoh-itsmaciek/orgs","repos_url":"https://api.github.com/users/uhoh-itsmaciek/repos","events_url":"https://api.github.com/users/uhoh-itsmaciek/events{/privacy}","received_events_url":"https://api.github.com/users/uhoh-itsmaciek/received_events","type":"User","site_admin":false},"body":"You could use a Unicode ellipsis an get an extra character out of it… =D","created_at":"2016-08-03T23:18:24Z","updated_at":"2016-08-03T23:18:24Z","html_url":"https://github.com/heroku/heroku-pg-extras/pull/127#discussion_r73438916","pull_request_url":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/127","_links":{"self":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/comments/73438916"},"html":{"href":"https://github.com/heroku/heroku-pg-extras/pull/127#discussion_r73438916"},"pull_request":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/127"}}},"pull_request":{"url":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/127","id":79788687,"html_url":"https://github.com/heroku/heroku-pg-extras/pull/127","diff_url":"https://github.com/heroku/heroku-pg-extras/pull/127.diff","patch_url":"https://github.com/heroku/heroku-pg-extras/pull/127.patch","issue_url":"https://api.github.com/repos/heroku/heroku-pg-extras/issues/127","number":127,"state":"open","locked":false,"title":"node conversion","user":{"login":"dickeyxxx","id":216188,"avatar_url":"https://avatars.githubusercontent.com/u/216188?v=3","gravatar_id":"","url":"https://api.github.com/users/dickeyxxx","html_url":"https://github.com/dickeyxxx","followers_url":"https://api.github.com/users/dickeyxxx/followers","following_url":"https://api.github.com/users/dickeyxxx/following{/other_user}","gists_url":"https://api.github.com/users/dickeyxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/dickeyxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dickeyxxx/subscriptions","organizations_url":"https://api.github.com/users/dickeyxxx/orgs","repos_url":"https://api.github.com/users/dickeyxxx/repos","events_url":"https://api.github.com/users/dickeyxxx/events{/privacy}","received_events_url":"https://api.github.com/users/dickeyxxx/received_events","type":"User","site_admin":false},"body":"Don't merge because it will break the ruby plugin. We can still release it without merging to master, however.\r\n\r\nDepends on https://github.com/heroku/heroku-pg/pull/9. Before that's pushed, you'll have to use `npm link heroku-pg` to run this locally.\r\n\r\nMissing commands:\r\n\r\n- [x] pg:psqlcommandhelper (hidden)\r\n- [x] pg:create_partitioning_sql (hidden)\r\n- [x] pg:incidents (doesn't seem to work in ruby version)\r\n\r\nDo we still need these?","created_at":"2016-08-02T18:53:40Z","updated_at":"2016-08-03T23:18:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0376ddb19fdfa64089d4f65e56e0034b25824702","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/127/commits","review_comments_url":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/127/comments","review_comment_url":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/heroku/heroku-pg-extras/issues/127/comments","statuses_url":"https://api.github.com/repos/heroku/heroku-pg-extras/statuses/3b94b9187fa65c338d870b796ef7f2870a1e6fb0","head":{"label":"heroku:js","ref":"js","sha":"3b94b9187fa65c338d870b796ef7f2870a1e6fb0","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":6023225,"name":"heroku-pg-extras","full_name":"heroku/heroku-pg-extras","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/heroku-pg-extras","description":"A heroku plugin for awesome pg:* commands that are also great and fun and super.","fork":false,"url":"https://api.github.com/repos/heroku/heroku-pg-extras","forks_url":"https://api.github.com/repos/heroku/heroku-pg-extras/forks","keys_url":"https://api.github.com/repos/heroku/heroku-pg-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/heroku-pg-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/heroku-pg-extras/teams","hooks_url":"https://api.github.com/repos/heroku/heroku-pg-extras/hooks","issue_events_url":"https://api.github.com/repos/heroku/heroku-pg-extras/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/heroku-pg-extras/events","assignees_url":"https://api.github.com/repos/heroku/heroku-pg-extras/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/heroku-pg-extras/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/heroku-pg-extras/tags","blobs_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/heroku-pg-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/heroku-pg-extras/languages","stargazers_url":"https://api.github.com/repos/heroku/heroku-pg-extras/stargazers","contributors_url":"https://api.github.com/repos/heroku/heroku-pg-extras/contributors","subscribers_url":"https://api.github.com/repos/heroku/heroku-pg-extras/subscribers","subscription_url":"https://api.github.com/repos/heroku/heroku-pg-extras/subscription","commits_url":"https://api.github.com/repos/heroku/heroku-pg-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/heroku-pg-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/heroku-pg-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/heroku-pg-extras/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/heroku-pg-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/heroku-pg-extras/merges","archive_url":"https://api.github.com/repos/heroku/heroku-pg-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/heroku-pg-extras/downloads","issues_url":"https://api.github.com/repos/heroku/heroku-pg-extras/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/heroku-pg-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/heroku-pg-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/heroku-pg-extras/labels{/name}","releases_url":"https://api.github.com/repos/heroku/heroku-pg-extras/releases{/id}","deployments_url":"https://api.github.com/repos/heroku/heroku-pg-extras/deployments","created_at":"2012-09-30T22:51:45Z","updated_at":"2016-07-25T16:54:45Z","pushed_at":"2016-08-02T18:53:41Z","git_url":"git://github.com/heroku/heroku-pg-extras.git","ssh_url":"git@github.com:heroku/heroku-pg-extras.git","clone_url":"https://github.com/heroku/heroku-pg-extras.git","svn_url":"https://github.com/heroku/heroku-pg-extras","homepage":"","size":458,"stargazers_count":658,"watchers_count":658,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":19,"forks":54,"open_issues":19,"watchers":658,"default_branch":"master"}},"base":{"label":"heroku:master","ref":"master","sha":"0a6b037af6071fbde3824f88458c48ce3b95f64b","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":6023225,"name":"heroku-pg-extras","full_name":"heroku/heroku-pg-extras","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/heroku-pg-extras","description":"A heroku plugin for awesome pg:* commands that are also great and fun and super.","fork":false,"url":"https://api.github.com/repos/heroku/heroku-pg-extras","forks_url":"https://api.github.com/repos/heroku/heroku-pg-extras/forks","keys_url":"https://api.github.com/repos/heroku/heroku-pg-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/heroku-pg-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/heroku-pg-extras/teams","hooks_url":"https://api.github.com/repos/heroku/heroku-pg-extras/hooks","issue_events_url":"https://api.github.com/repos/heroku/heroku-pg-extras/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/heroku-pg-extras/events","assignees_url":"https://api.github.com/repos/heroku/heroku-pg-extras/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/heroku-pg-extras/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/heroku-pg-extras/tags","blobs_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/heroku-pg-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/heroku-pg-extras/languages","stargazers_url":"https://api.github.com/repos/heroku/heroku-pg-extras/stargazers","contributors_url":"https://api.github.com/repos/heroku/heroku-pg-extras/contributors","subscribers_url":"https://api.github.com/repos/heroku/heroku-pg-extras/subscribers","subscription_url":"https://api.github.com/repos/heroku/heroku-pg-extras/subscription","commits_url":"https://api.github.com/repos/heroku/heroku-pg-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/heroku-pg-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/heroku-pg-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/heroku-pg-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/heroku-pg-extras/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/heroku-pg-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/heroku-pg-extras/merges","archive_url":"https://api.github.com/repos/heroku/heroku-pg-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/heroku-pg-extras/downloads","issues_url":"https://api.github.com/repos/heroku/heroku-pg-extras/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/heroku-pg-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/heroku-pg-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/heroku-pg-extras/labels{/name}","releases_url":"https://api.github.com/repos/heroku/heroku-pg-extras/releases{/id}","deployments_url":"https://api.github.com/repos/heroku/heroku-pg-extras/deployments","created_at":"2012-09-30T22:51:45Z","updated_at":"2016-07-25T16:54:45Z","pushed_at":"2016-08-02T18:53:41Z","git_url":"git://github.com/heroku/heroku-pg-extras.git","ssh_url":"git@github.com:heroku/heroku-pg-extras.git","clone_url":"https://github.com/heroku/heroku-pg-extras.git","svn_url":"https://github.com/heroku/heroku-pg-extras","homepage":"","size":458,"stargazers_count":658,"watchers_count":658,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":19,"forks":54,"open_issues":19,"watchers":658,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/127"},"html":{"href":"https://github.com/heroku/heroku-pg-extras/pull/127"},"issue":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/issues/127"},"comments":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/heroku/heroku-pg-extras/statuses/3b94b9187fa65c338d870b796ef7f2870a1e6fb0"}}}}
{"actor":{"display_login":"uhoh-itsmaciek"}}