{"action":"opened","number":33,"pull_request":{"url":"https://api.github.com/repos/jeads/datasource/pulls/33","id":39697129,"html_url":"https://github.com/jeads/datasource/pull/33","diff_url":"https://github.com/jeads/datasource/pull/33.diff","patch_url":"https://github.com/jeads/datasource/pull/33.patch","issue_url":"https://api.github.com/repos/jeads/datasource/issues/33","number":33,"state":"open","locked":false,"title":"Bug 1182485 - Strip leading/trailing whitespace from datasource files","user":{"login":"edmorley","id":501702,"avatar_url":"https://avatars.githubusercontent.com/u/501702?v=3","gravatar_id":"","url":"https://api.github.com/users/edmorley","html_url":"https://github.com/edmorley","followers_url":"https://api.github.com/users/edmorley/followers","following_url":"https://api.github.com/users/edmorley/following{/other_user}","gists_url":"https://api.github.com/users/edmorley/gists{/gist_id}","starred_url":"https://api.github.com/users/edmorley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmorley/subscriptions","organizations_url":"https://api.github.com/users/edmorley/orgs","repos_url":"https://api.github.com/users/edmorley/repos","events_url":"https://api.github.com/users/edmorley/events{/privacy}","received_events_url":"https://api.github.com/users/edmorley/received_events","type":"User","site_admin":false},"body":"So as to make the queries more readable in logs / avoid bloating the\r\nbinlogs. This turns:\r\n```json\r\n    \"inserts\":{\r\n        \"create_job_data\":{\r\n            \"sql\":\"INSERT INTO `job` (\r\n                `job_guid`,\r\n                `signature`,\r\n                `job_coalesced_to_guid`,\r\n                `result_set_id`,\r\n...\r\n```\r\n\r\nInto:\r\n```json\r\n\"inserts\":{ \"create_job_data\":{ \"sql\":\"INSERT INTO `job` ( `job_guid`, `signature`, ...\r\n```","created_at":"2015-07-10T15:48:03Z","updated_at":"2015-07-10T15:48:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"787cca395c3babc1c3058cdfdfe785577d8a0ddf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jeads/datasource/pulls/33/commits","review_comments_url":"https://api.github.com/repos/jeads/datasource/pulls/33/comments","review_comment_url":"https://api.github.com/repos/jeads/datasource/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jeads/datasource/issues/33/comments","statuses_url":"https://api.github.com/repos/jeads/datasource/statuses/ee90b84a7fc081a135e6aae8a2ea8eb1133041b5","head":{"label":"edmorley:strip-datasource-file-lines","ref":"strip-datasource-file-lines","sha":"ee90b84a7fc081a135e6aae8a2ea8eb1133041b5","user":{"login":"edmorley","id":501702,"avatar_url":"https://avatars.githubusercontent.com/u/501702?v=3","gravatar_id":"","url":"https://api.github.com/users/edmorley","html_url":"https://github.com/edmorley","followers_url":"https://api.github.com/users/edmorley/followers","following_url":"https://api.github.com/users/edmorley/following{/other_user}","gists_url":"https://api.github.com/users/edmorley/gists{/gist_id}","starred_url":"https://api.github.com/users/edmorley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmorley/subscriptions","organizations_url":"https://api.github.com/users/edmorley/orgs","repos_url":"https://api.github.com/users/edmorley/repos","events_url":"https://api.github.com/users/edmorley/events{/privacy}","received_events_url":"https://api.github.com/users/edmorley/received_events","type":"User","site_admin":false},"repo":{"id":29791698,"name":"datasource","full_name":"edmorley/datasource","owner":{"login":"edmorley","id":501702,"avatar_url":"https://avatars.githubusercontent.com/u/501702?v=3","gravatar_id":"","url":"https://api.github.com/users/edmorley","html_url":"https://github.com/edmorley","followers_url":"https://api.github.com/users/edmorley/followers","following_url":"https://api.github.com/users/edmorley/following{/other_user}","gists_url":"https://api.github.com/users/edmorley/gists{/gist_id}","starred_url":"https://api.github.com/users/edmorley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmorley/subscriptions","organizations_url":"https://api.github.com/users/edmorley/orgs","repos_url":"https://api.github.com/users/edmorley/repos","events_url":"https://api.github.com/users/edmorley/events{/privacy}","received_events_url":"https://api.github.com/users/edmorley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edmorley/datasource","description":"Provides encapsulation and a clean interface for data sources.","fork":true,"url":"https://api.github.com/repos/edmorley/datasource","forks_url":"https://api.github.com/repos/edmorley/datasource/forks","keys_url":"https://api.github.com/repos/edmorley/datasource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edmorley/datasource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edmorley/datasource/teams","hooks_url":"https://api.github.com/repos/edmorley/datasource/hooks","issue_events_url":"https://api.github.com/repos/edmorley/datasource/issues/events{/number}","events_url":"https://api.github.com/repos/edmorley/datasource/events","assignees_url":"https://api.github.com/repos/edmorley/datasource/assignees{/user}","branches_url":"https://api.github.com/repos/edmorley/datasource/branches{/branch}","tags_url":"https://api.github.com/repos/edmorley/datasource/tags","blobs_url":"https://api.github.com/repos/edmorley/datasource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edmorley/datasource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edmorley/datasource/git/refs{/sha}","trees_url":"https://api.github.com/repos/edmorley/datasource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edmorley/datasource/statuses/{sha}","languages_url":"https://api.github.com/repos/edmorley/datasource/languages","stargazers_url":"https://api.github.com/repos/edmorley/datasource/stargazers","contributors_url":"https://api.github.com/repos/edmorley/datasource/contributors","subscribers_url":"https://api.github.com/repos/edmorley/datasource/subscribers","subscription_url":"https://api.github.com/repos/edmorley/datasource/subscription","commits_url":"https://api.github.com/repos/edmorley/datasource/commits{/sha}","git_commits_url":"https://api.github.com/repos/edmorley/datasource/git/commits{/sha}","comments_url":"https://api.github.com/repos/edmorley/datasource/comments{/number}","issue_comment_url":"https://api.github.com/repos/edmorley/datasource/issues/comments{/number}","contents_url":"https://api.github.com/repos/edmorley/datasource/contents/{+path}","compare_url":"https://api.github.com/repos/edmorley/datasource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edmorley/datasource/merges","archive_url":"https://api.github.com/repos/edmorley/datasource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edmorley/datasource/downloads","issues_url":"https://api.github.com/repos/edmorley/datasource/issues{/number}","pulls_url":"https://api.github.com/repos/edmorley/datasource/pulls{/number}","milestones_url":"https://api.github.com/repos/edmorley/datasource/milestones{/number}","notifications_url":"https://api.github.com/repos/edmorley/datasource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edmorley/datasource/labels{/name}","releases_url":"https://api.github.com/repos/edmorley/datasource/releases{/id}","created_at":"2015-01-24T21:07:56Z","updated_at":"2015-05-07T11:12:21Z","pushed_at":"2015-07-10T15:47:24Z","git_url":"git://github.com/edmorley/datasource.git","ssh_url":"git@github.com:edmorley/datasource.git","clone_url":"https://github.com/edmorley/datasource.git","svn_url":"https://github.com/edmorley/datasource","homepage":null,"size":403,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"jeads:master","ref":"master","sha":"aab1f00d9533cb043c7e6074a0f01e02814fba2a","user":{"login":"jeads","id":949498,"avatar_url":"https://avatars.githubusercontent.com/u/949498?v=3","gravatar_id":"","url":"https://api.github.com/users/jeads","html_url":"https://github.com/jeads","followers_url":"https://api.github.com/users/jeads/followers","following_url":"https://api.github.com/users/jeads/following{/other_user}","gists_url":"https://api.github.com/users/jeads/gists{/gist_id}","starred_url":"https://api.github.com/users/jeads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeads/subscriptions","organizations_url":"https://api.github.com/users/jeads/orgs","repos_url":"https://api.github.com/users/jeads/repos","events_url":"https://api.github.com/users/jeads/events{/privacy}","received_events_url":"https://api.github.com/users/jeads/received_events","type":"User","site_admin":false},"repo":{"id":2351607,"name":"datasource","full_name":"jeads/datasource","owner":{"login":"jeads","id":949498,"avatar_url":"https://avatars.githubusercontent.com/u/949498?v=3","gravatar_id":"","url":"https://api.github.com/users/jeads","html_url":"https://github.com/jeads","followers_url":"https://api.github.com/users/jeads/followers","following_url":"https://api.github.com/users/jeads/following{/other_user}","gists_url":"https://api.github.com/users/jeads/gists{/gist_id}","starred_url":"https://api.github.com/users/jeads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeads/subscriptions","organizations_url":"https://api.github.com/users/jeads/orgs","repos_url":"https://api.github.com/users/jeads/repos","events_url":"https://api.github.com/users/jeads/events{/privacy}","received_events_url":"https://api.github.com/users/jeads/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeads/datasource","description":"Provides encapsulation and a clean interface for data sources.","fork":false,"url":"https://api.github.com/repos/jeads/datasource","forks_url":"https://api.github.com/repos/jeads/datasource/forks","keys_url":"https://api.github.com/repos/jeads/datasource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeads/datasource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeads/datasource/teams","hooks_url":"https://api.github.com/repos/jeads/datasource/hooks","issue_events_url":"https://api.github.com/repos/jeads/datasource/issues/events{/number}","events_url":"https://api.github.com/repos/jeads/datasource/events","assignees_url":"https://api.github.com/repos/jeads/datasource/assignees{/user}","branches_url":"https://api.github.com/repos/jeads/datasource/branches{/branch}","tags_url":"https://api.github.com/repos/jeads/datasource/tags","blobs_url":"https://api.github.com/repos/jeads/datasource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeads/datasource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeads/datasource/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeads/datasource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeads/datasource/statuses/{sha}","languages_url":"https://api.github.com/repos/jeads/datasource/languages","stargazers_url":"https://api.github.com/repos/jeads/datasource/stargazers","contributors_url":"https://api.github.com/repos/jeads/datasource/contributors","subscribers_url":"https://api.github.com/repos/jeads/datasource/subscribers","subscription_url":"https://api.github.com/repos/jeads/datasource/subscription","commits_url":"https://api.github.com/repos/jeads/datasource/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeads/datasource/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeads/datasource/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeads/datasource/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeads/datasource/contents/{+path}","compare_url":"https://api.github.com/repos/jeads/datasource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeads/datasource/merges","archive_url":"https://api.github.com/repos/jeads/datasource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeads/datasource/downloads","issues_url":"https://api.github.com/repos/jeads/datasource/issues{/number}","pulls_url":"https://api.github.com/repos/jeads/datasource/pulls{/number}","milestones_url":"https://api.github.com/repos/jeads/datasource/milestones{/number}","notifications_url":"https://api.github.com/repos/jeads/datasource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeads/datasource/labels{/name}","releases_url":"https://api.github.com/repos/jeads/datasource/releases{/id}","created_at":"2011-09-08T21:20:34Z","updated_at":"2015-05-07T11:12:15Z","pushed_at":"2015-07-10T15:48:05Z","git_url":"git://github.com/jeads/datasource.git","ssh_url":"git@github.com:jeads/datasource.git","clone_url":"https://github.com/jeads/datasource.git","svn_url":"https://github.com/jeads/datasource","homepage":null,"size":527,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":3,"forks":8,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jeads/datasource/pulls/33"},"html":{"href":"https://github.com/jeads/datasource/pull/33"},"issue":{"href":"https://api.github.com/repos/jeads/datasource/issues/33"},"comments":{"href":"https://api.github.com/repos/jeads/datasource/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/jeads/datasource/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/jeads/datasource/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jeads/datasource/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/jeads/datasource/statuses/ee90b84a7fc081a135e6aae8a2ea8eb1133041b5"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":7,"changed_files":1}}