{"action":"created","comment":{"url":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/comments/83304272","pull_request_review_id":4157859,"id":83304272,"diff_hunk":"@@ -13,5 +13,6 @@ defmodule ErrorTest do\n     assert message =~ \"duplicate key value violates unique constraint\"\n     assert message =~ \"table: uniques\"\n     assert message =~ \"constraint: uniques_a_key\"\n+    assert message =~ ~r\"\\b\\d{5}\\b\"","path":"test/error_test.exs","position":4,"original_position":4,"commit_id":"6c5ac97dee424b856e081510d757c6ca4f7101b3","original_commit_id":"6c5ac97dee424b856e081510d757c6ca4f7101b3","user":{"login":"fishcakez","id":2001229,"avatar_url":"https://avatars.githubusercontent.com/u/2001229?v=3","gravatar_id":"","url":"https://api.github.com/users/fishcakez","html_url":"https://github.com/fishcakez","followers_url":"https://api.github.com/users/fishcakez/followers","following_url":"https://api.github.com/users/fishcakez/following{/other_user}","gists_url":"https://api.github.com/users/fishcakez/gists{/gist_id}","starred_url":"https://api.github.com/users/fishcakez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishcakez/subscriptions","organizations_url":"https://api.github.com/users/fishcakez/orgs","repos_url":"https://api.github.com/users/fishcakez/repos","events_url":"https://api.github.com/users/fishcakez/events{/privacy}","received_events_url":"https://api.github.com/users/fishcakez/received_events","type":"User","site_admin":false},"body":"Is it possible to test the real error code here?","created_at":"2016-10-13T20:28:30Z","updated_at":"2016-10-13T20:28:30Z","html_url":"https://github.com/elixir-ecto/postgrex/pull/250#discussion_r83304272","pull_request_url":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/250","_links":{"self":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/comments/83304272"},"html":{"href":"https://github.com/elixir-ecto/postgrex/pull/250#discussion_r83304272"},"pull_request":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/250","id":89267931,"html_url":"https://github.com/elixir-ecto/postgrex/pull/250","diff_url":"https://github.com/elixir-ecto/postgrex/pull/250.diff","patch_url":"https://github.com/elixir-ecto/postgrex/pull/250.patch","issue_url":"https://api.github.com/repos/elixir-ecto/postgrex/issues/250","number":250,"state":"open","locked":false,"title":"PG Code in Error Message - Closes #242","user":{"login":"davidkuhta","id":1383793,"avatar_url":"https://avatars.githubusercontent.com/u/1383793?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkuhta","html_url":"https://github.com/davidkuhta","followers_url":"https://api.github.com/users/davidkuhta/followers","following_url":"https://api.github.com/users/davidkuhta/following{/other_user}","gists_url":"https://api.github.com/users/davidkuhta/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkuhta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkuhta/subscriptions","organizations_url":"https://api.github.com/users/davidkuhta/orgs","repos_url":"https://api.github.com/users/davidkuhta/repos","events_url":"https://api.github.com/users/davidkuhta/events{/privacy}","received_events_url":"https://api.github.com/users/davidkuhta/received_events","type":"User","site_admin":false},"body":"1. Modified Postgrex error messages to format `SEVERITY PGCODE\r\n(PGCODE_TO_NAME): MESSAGE`\r\n2. Changed regex on `ERROR (PGCODE_TO_NAME)` to match on `(PGCODE_TO_NAME)` in seven `stream_test` test.\r\ntests consistent with changes in 1.\r\n3. Added assertion to `error_test` to regex match 5 numeric digits in\r\nerror message consistent with changes in 1.","created_at":"2016-10-13T19:39:01Z","updated_at":"2016-10-13T20:28:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9181e2670c1bc99c6cea2496d94d4df66dcebb22","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/250/commits","review_comments_url":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/250/comments","review_comment_url":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixir-ecto/postgrex/issues/250/comments","statuses_url":"https://api.github.com/repos/elixir-ecto/postgrex/statuses/6c5ac97dee424b856e081510d757c6ca4f7101b3","head":{"label":"davidkuhta:num-in-error","ref":"num-in-error","sha":"6c5ac97dee424b856e081510d757c6ca4f7101b3","user":{"login":"davidkuhta","id":1383793,"avatar_url":"https://avatars.githubusercontent.com/u/1383793?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkuhta","html_url":"https://github.com/davidkuhta","followers_url":"https://api.github.com/users/davidkuhta/followers","following_url":"https://api.github.com/users/davidkuhta/following{/other_user}","gists_url":"https://api.github.com/users/davidkuhta/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkuhta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkuhta/subscriptions","organizations_url":"https://api.github.com/users/davidkuhta/orgs","repos_url":"https://api.github.com/users/davidkuhta/repos","events_url":"https://api.github.com/users/davidkuhta/events{/privacy}","received_events_url":"https://api.github.com/users/davidkuhta/received_events","type":"User","site_admin":false},"repo":{"id":70292300,"name":"postgrex","full_name":"davidkuhta/postgrex","owner":{"login":"davidkuhta","id":1383793,"avatar_url":"https://avatars.githubusercontent.com/u/1383793?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkuhta","html_url":"https://github.com/davidkuhta","followers_url":"https://api.github.com/users/davidkuhta/followers","following_url":"https://api.github.com/users/davidkuhta/following{/other_user}","gists_url":"https://api.github.com/users/davidkuhta/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkuhta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkuhta/subscriptions","organizations_url":"https://api.github.com/users/davidkuhta/orgs","repos_url":"https://api.github.com/users/davidkuhta/repos","events_url":"https://api.github.com/users/davidkuhta/events{/privacy}","received_events_url":"https://api.github.com/users/davidkuhta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidkuhta/postgrex","description":"PostgreSQL driver for Elixir","fork":true,"url":"https://api.github.com/repos/davidkuhta/postgrex","forks_url":"https://api.github.com/repos/davidkuhta/postgrex/forks","keys_url":"https://api.github.com/repos/davidkuhta/postgrex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidkuhta/postgrex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidkuhta/postgrex/teams","hooks_url":"https://api.github.com/repos/davidkuhta/postgrex/hooks","issue_events_url":"https://api.github.com/repos/davidkuhta/postgrex/issues/events{/number}","events_url":"https://api.github.com/repos/davidkuhta/postgrex/events","assignees_url":"https://api.github.com/repos/davidkuhta/postgrex/assignees{/user}","branches_url":"https://api.github.com/repos/davidkuhta/postgrex/branches{/branch}","tags_url":"https://api.github.com/repos/davidkuhta/postgrex/tags","blobs_url":"https://api.github.com/repos/davidkuhta/postgrex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidkuhta/postgrex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidkuhta/postgrex/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidkuhta/postgrex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidkuhta/postgrex/statuses/{sha}","languages_url":"https://api.github.com/repos/davidkuhta/postgrex/languages","stargazers_url":"https://api.github.com/repos/davidkuhta/postgrex/stargazers","contributors_url":"https://api.github.com/repos/davidkuhta/postgrex/contributors","subscribers_url":"https://api.github.com/repos/davidkuhta/postgrex/subscribers","subscription_url":"https://api.github.com/repos/davidkuhta/postgrex/subscription","commits_url":"https://api.github.com/repos/davidkuhta/postgrex/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidkuhta/postgrex/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidkuhta/postgrex/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidkuhta/postgrex/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidkuhta/postgrex/contents/{+path}","compare_url":"https://api.github.com/repos/davidkuhta/postgrex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidkuhta/postgrex/merges","archive_url":"https://api.github.com/repos/davidkuhta/postgrex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidkuhta/postgrex/downloads","issues_url":"https://api.github.com/repos/davidkuhta/postgrex/issues{/number}","pulls_url":"https://api.github.com/repos/davidkuhta/postgrex/pulls{/number}","milestones_url":"https://api.github.com/repos/davidkuhta/postgrex/milestones{/number}","notifications_url":"https://api.github.com/repos/davidkuhta/postgrex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidkuhta/postgrex/labels{/name}","releases_url":"https://api.github.com/repos/davidkuhta/postgrex/releases{/id}","deployments_url":"https://api.github.com/repos/davidkuhta/postgrex/deployments","created_at":"2016-10-08T00:36:57Z","updated_at":"2016-10-08T00:36:58Z","pushed_at":"2016-10-13T19:37:36Z","git_url":"git://github.com/davidkuhta/postgrex.git","ssh_url":"git@github.com:davidkuhta/postgrex.git","clone_url":"https://github.com/davidkuhta/postgrex.git","svn_url":"https://github.com/davidkuhta/postgrex","homepage":"http://hexdocs.pm/postgrex/","size":1045,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elixir-ecto:master","ref":"master","sha":"eb7d69d89e2e1889ee15c7b765e5c0b3458503ab","user":{"login":"elixir-ecto","id":19973437,"avatar_url":"https://avatars.githubusercontent.com/u/19973437?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-ecto","html_url":"https://github.com/elixir-ecto","followers_url":"https://api.github.com/users/elixir-ecto/followers","following_url":"https://api.github.com/users/elixir-ecto/following{/other_user}","gists_url":"https://api.github.com/users/elixir-ecto/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-ecto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-ecto/subscriptions","organizations_url":"https://api.github.com/users/elixir-ecto/orgs","repos_url":"https://api.github.com/users/elixir-ecto/repos","events_url":"https://api.github.com/users/elixir-ecto/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-ecto/received_events","type":"Organization","site_admin":false},"repo":{"id":12682522,"name":"postgrex","full_name":"elixir-ecto/postgrex","owner":{"login":"elixir-ecto","id":19973437,"avatar_url":"https://avatars.githubusercontent.com/u/19973437?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-ecto","html_url":"https://github.com/elixir-ecto","followers_url":"https://api.github.com/users/elixir-ecto/followers","following_url":"https://api.github.com/users/elixir-ecto/following{/other_user}","gists_url":"https://api.github.com/users/elixir-ecto/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-ecto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-ecto/subscriptions","organizations_url":"https://api.github.com/users/elixir-ecto/orgs","repos_url":"https://api.github.com/users/elixir-ecto/repos","events_url":"https://api.github.com/users/elixir-ecto/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-ecto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixir-ecto/postgrex","description":"PostgreSQL driver for Elixir","fork":false,"url":"https://api.github.com/repos/elixir-ecto/postgrex","forks_url":"https://api.github.com/repos/elixir-ecto/postgrex/forks","keys_url":"https://api.github.com/repos/elixir-ecto/postgrex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixir-ecto/postgrex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixir-ecto/postgrex/teams","hooks_url":"https://api.github.com/repos/elixir-ecto/postgrex/hooks","issue_events_url":"https://api.github.com/repos/elixir-ecto/postgrex/issues/events{/number}","events_url":"https://api.github.com/repos/elixir-ecto/postgrex/events","assignees_url":"https://api.github.com/repos/elixir-ecto/postgrex/assignees{/user}","branches_url":"https://api.github.com/repos/elixir-ecto/postgrex/branches{/branch}","tags_url":"https://api.github.com/repos/elixir-ecto/postgrex/tags","blobs_url":"https://api.github.com/repos/elixir-ecto/postgrex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixir-ecto/postgrex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixir-ecto/postgrex/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixir-ecto/postgrex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixir-ecto/postgrex/statuses/{sha}","languages_url":"https://api.github.com/repos/elixir-ecto/postgrex/languages","stargazers_url":"https://api.github.com/repos/elixir-ecto/postgrex/stargazers","contributors_url":"https://api.github.com/repos/elixir-ecto/postgrex/contributors","subscribers_url":"https://api.github.com/repos/elixir-ecto/postgrex/subscribers","subscription_url":"https://api.github.com/repos/elixir-ecto/postgrex/subscription","commits_url":"https://api.github.com/repos/elixir-ecto/postgrex/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixir-ecto/postgrex/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixir-ecto/postgrex/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixir-ecto/postgrex/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixir-ecto/postgrex/contents/{+path}","compare_url":"https://api.github.com/repos/elixir-ecto/postgrex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixir-ecto/postgrex/merges","archive_url":"https://api.github.com/repos/elixir-ecto/postgrex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixir-ecto/postgrex/downloads","issues_url":"https://api.github.com/repos/elixir-ecto/postgrex/issues{/number}","pulls_url":"https://api.github.com/repos/elixir-ecto/postgrex/pulls{/number}","milestones_url":"https://api.github.com/repos/elixir-ecto/postgrex/milestones{/number}","notifications_url":"https://api.github.com/repos/elixir-ecto/postgrex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixir-ecto/postgrex/labels{/name}","releases_url":"https://api.github.com/repos/elixir-ecto/postgrex/releases{/id}","deployments_url":"https://api.github.com/repos/elixir-ecto/postgrex/deployments","created_at":"2013-09-08T15:10:47Z","updated_at":"2016-10-12T19:10:51Z","pushed_at":"2016-10-13T19:39:01Z","git_url":"git://github.com/elixir-ecto/postgrex.git","ssh_url":"git@github.com:elixir-ecto/postgrex.git","clone_url":"https://github.com/elixir-ecto/postgrex.git","svn_url":"https://github.com/elixir-ecto/postgrex","homepage":"http://hexdocs.pm/postgrex/","size":1147,"stargazers_count":345,"watchers_count":345,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":5,"forks":93,"open_issues":5,"watchers":345,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/250"},"html":{"href":"https://github.com/elixir-ecto/postgrex/pull/250"},"issue":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/issues/250"},"comments":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-ecto/postgrex/statuses/6c5ac97dee424b856e081510d757c6ca4f7101b3"}}}}
{"actor":{"display_login":"fishcakez"}}