{"action":"closed","number":35,"pull_request":{"url":"https://api.github.com/repos/shinuza/sardine/pulls/35","id":56488551,"html_url":"https://github.com/shinuza/sardine/pull/35","diff_url":"https://github.com/shinuza/sardine/pull/35.diff","patch_url":"https://github.com/shinuza/sardine/pull/35.patch","issue_url":"https://api.github.com/repos/shinuza/sardine/issues/35","number":35,"state":"closed","locked":false,"title":"Add SQL preprocessor option","user":{"login":"mrtbld","id":11838792,"avatar_url":"https://avatars.githubusercontent.com/u/11838792?v=3","gravatar_id":"","url":"https://api.github.com/users/mrtbld","html_url":"https://github.com/mrtbld","followers_url":"https://api.github.com/users/mrtbld/followers","following_url":"https://api.github.com/users/mrtbld/following{/other_user}","gists_url":"https://api.github.com/users/mrtbld/gists{/gist_id}","starred_url":"https://api.github.com/users/mrtbld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrtbld/subscriptions","organizations_url":"https://api.github.com/users/mrtbld/orgs","repos_url":"https://api.github.com/users/mrtbld/repos","events_url":"https://api.github.com/users/mrtbld/events{/privacy}","received_events_url":"https://api.github.com/users/mrtbld/received_events","type":"User","site_admin":false},"body":"New config option: `preprocess`, a function that may alter the SQL code\r\n(content of the SQL files) at runtime, just before it is executed.\r\nThe function is executed once for each SQL file of a migration.\r\nIt takes as parameters the content of the file (the SQL code) and\r\nthe relative file path, and returns the processed SQL code.\r\n\r\nAn example usage of this feature is the replacement of placeholders by\r\ntheir actual values.\r\n\r\nThe default value of `preprocess` is the identity function.","created_at":"2016-01-19T16:20:26Z","updated_at":"2016-02-11T10:14:56Z","closed_at":"2016-02-11T10:14:56Z","merged_at":"2016-02-11T10:14:56Z","merge_commit_sha":"d92ad8252ad055f65b068d9479b2f99e72bec4a8","assignee":{"login":"shinuza","id":137940,"avatar_url":"https://avatars.githubusercontent.com/u/137940?v=3","gravatar_id":"","url":"https://api.github.com/users/shinuza","html_url":"https://github.com/shinuza","followers_url":"https://api.github.com/users/shinuza/followers","following_url":"https://api.github.com/users/shinuza/following{/other_user}","gists_url":"https://api.github.com/users/shinuza/gists{/gist_id}","starred_url":"https://api.github.com/users/shinuza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinuza/subscriptions","organizations_url":"https://api.github.com/users/shinuza/orgs","repos_url":"https://api.github.com/users/shinuza/repos","events_url":"https://api.github.com/users/shinuza/events{/privacy}","received_events_url":"https://api.github.com/users/shinuza/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/shinuza/sardine/pulls/35/commits","review_comments_url":"https://api.github.com/repos/shinuza/sardine/pulls/35/comments","review_comment_url":"https://api.github.com/repos/shinuza/sardine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shinuza/sardine/issues/35/comments","statuses_url":"https://api.github.com/repos/shinuza/sardine/statuses/49c5e2c8af69dbdfc88f840be3f66ab2aab0370a","head":{"label":"mrtbld:add-sql-preprocessor-option","ref":"add-sql-preprocessor-option","sha":"49c5e2c8af69dbdfc88f840be3f66ab2aab0370a","user":{"login":"mrtbld","id":11838792,"avatar_url":"https://avatars.githubusercontent.com/u/11838792?v=3","gravatar_id":"","url":"https://api.github.com/users/mrtbld","html_url":"https://github.com/mrtbld","followers_url":"https://api.github.com/users/mrtbld/followers","following_url":"https://api.github.com/users/mrtbld/following{/other_user}","gists_url":"https://api.github.com/users/mrtbld/gists{/gist_id}","starred_url":"https://api.github.com/users/mrtbld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrtbld/subscriptions","organizations_url":"https://api.github.com/users/mrtbld/orgs","repos_url":"https://api.github.com/users/mrtbld/repos","events_url":"https://api.github.com/users/mrtbld/events{/privacy}","received_events_url":"https://api.github.com/users/mrtbld/received_events","type":"User","site_admin":false},"repo":{"id":49887087,"name":"sardine","full_name":"mrtbld/sardine","owner":{"login":"mrtbld","id":11838792,"avatar_url":"https://avatars.githubusercontent.com/u/11838792?v=3","gravatar_id":"","url":"https://api.github.com/users/mrtbld","html_url":"https://github.com/mrtbld","followers_url":"https://api.github.com/users/mrtbld/followers","following_url":"https://api.github.com/users/mrtbld/following{/other_user}","gists_url":"https://api.github.com/users/mrtbld/gists{/gist_id}","starred_url":"https://api.github.com/users/mrtbld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrtbld/subscriptions","organizations_url":"https://api.github.com/users/mrtbld/orgs","repos_url":"https://api.github.com/users/mrtbld/repos","events_url":"https://api.github.com/users/mrtbld/events{/privacy}","received_events_url":"https://api.github.com/users/mrtbld/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrtbld/sardine","description":"A simple database migration tool","fork":true,"url":"https://api.github.com/repos/mrtbld/sardine","forks_url":"https://api.github.com/repos/mrtbld/sardine/forks","keys_url":"https://api.github.com/repos/mrtbld/sardine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrtbld/sardine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrtbld/sardine/teams","hooks_url":"https://api.github.com/repos/mrtbld/sardine/hooks","issue_events_url":"https://api.github.com/repos/mrtbld/sardine/issues/events{/number}","events_url":"https://api.github.com/repos/mrtbld/sardine/events","assignees_url":"https://api.github.com/repos/mrtbld/sardine/assignees{/user}","branches_url":"https://api.github.com/repos/mrtbld/sardine/branches{/branch}","tags_url":"https://api.github.com/repos/mrtbld/sardine/tags","blobs_url":"https://api.github.com/repos/mrtbld/sardine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrtbld/sardine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrtbld/sardine/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrtbld/sardine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrtbld/sardine/statuses/{sha}","languages_url":"https://api.github.com/repos/mrtbld/sardine/languages","stargazers_url":"https://api.github.com/repos/mrtbld/sardine/stargazers","contributors_url":"https://api.github.com/repos/mrtbld/sardine/contributors","subscribers_url":"https://api.github.com/repos/mrtbld/sardine/subscribers","subscription_url":"https://api.github.com/repos/mrtbld/sardine/subscription","commits_url":"https://api.github.com/repos/mrtbld/sardine/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrtbld/sardine/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrtbld/sardine/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrtbld/sardine/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrtbld/sardine/contents/{+path}","compare_url":"https://api.github.com/repos/mrtbld/sardine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrtbld/sardine/merges","archive_url":"https://api.github.com/repos/mrtbld/sardine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrtbld/sardine/downloads","issues_url":"https://api.github.com/repos/mrtbld/sardine/issues{/number}","pulls_url":"https://api.github.com/repos/mrtbld/sardine/pulls{/number}","milestones_url":"https://api.github.com/repos/mrtbld/sardine/milestones{/number}","notifications_url":"https://api.github.com/repos/mrtbld/sardine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrtbld/sardine/labels{/name}","releases_url":"https://api.github.com/repos/mrtbld/sardine/releases{/id}","deployments_url":"https://api.github.com/repos/mrtbld/sardine/deployments","created_at":"2016-01-18T15:53:22Z","updated_at":"2016-01-18T15:53:23Z","pushed_at":"2016-02-10T13:53:36Z","git_url":"git://github.com/mrtbld/sardine.git","ssh_url":"git@github.com:mrtbld/sardine.git","clone_url":"https://github.com/mrtbld/sardine.git","svn_url":"https://github.com/mrtbld/sardine","homepage":"","size":160,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"shinuza:master","ref":"master","sha":"3635c83f685df008d95aa4c9a8ab6775d08c6145","user":{"login":"shinuza","id":137940,"avatar_url":"https://avatars.githubusercontent.com/u/137940?v=3","gravatar_id":"","url":"https://api.github.com/users/shinuza","html_url":"https://github.com/shinuza","followers_url":"https://api.github.com/users/shinuza/followers","following_url":"https://api.github.com/users/shinuza/following{/other_user}","gists_url":"https://api.github.com/users/shinuza/gists{/gist_id}","starred_url":"https://api.github.com/users/shinuza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinuza/subscriptions","organizations_url":"https://api.github.com/users/shinuza/orgs","repos_url":"https://api.github.com/users/shinuza/repos","events_url":"https://api.github.com/users/shinuza/events{/privacy}","received_events_url":"https://api.github.com/users/shinuza/received_events","type":"User","site_admin":false},"repo":{"id":44494970,"name":"sardine","full_name":"shinuza/sardine","owner":{"login":"shinuza","id":137940,"avatar_url":"https://avatars.githubusercontent.com/u/137940?v=3","gravatar_id":"","url":"https://api.github.com/users/shinuza","html_url":"https://github.com/shinuza","followers_url":"https://api.github.com/users/shinuza/followers","following_url":"https://api.github.com/users/shinuza/following{/other_user}","gists_url":"https://api.github.com/users/shinuza/gists{/gist_id}","starred_url":"https://api.github.com/users/shinuza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinuza/subscriptions","organizations_url":"https://api.github.com/users/shinuza/orgs","repos_url":"https://api.github.com/users/shinuza/repos","events_url":"https://api.github.com/users/shinuza/events{/privacy}","received_events_url":"https://api.github.com/users/shinuza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shinuza/sardine","description":"A simple database migration tool","fork":false,"url":"https://api.github.com/repos/shinuza/sardine","forks_url":"https://api.github.com/repos/shinuza/sardine/forks","keys_url":"https://api.github.com/repos/shinuza/sardine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shinuza/sardine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shinuza/sardine/teams","hooks_url":"https://api.github.com/repos/shinuza/sardine/hooks","issue_events_url":"https://api.github.com/repos/shinuza/sardine/issues/events{/number}","events_url":"https://api.github.com/repos/shinuza/sardine/events","assignees_url":"https://api.github.com/repos/shinuza/sardine/assignees{/user}","branches_url":"https://api.github.com/repos/shinuza/sardine/branches{/branch}","tags_url":"https://api.github.com/repos/shinuza/sardine/tags","blobs_url":"https://api.github.com/repos/shinuza/sardine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shinuza/sardine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shinuza/sardine/git/refs{/sha}","trees_url":"https://api.github.com/repos/shinuza/sardine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shinuza/sardine/statuses/{sha}","languages_url":"https://api.github.com/repos/shinuza/sardine/languages","stargazers_url":"https://api.github.com/repos/shinuza/sardine/stargazers","contributors_url":"https://api.github.com/repos/shinuza/sardine/contributors","subscribers_url":"https://api.github.com/repos/shinuza/sardine/subscribers","subscription_url":"https://api.github.com/repos/shinuza/sardine/subscription","commits_url":"https://api.github.com/repos/shinuza/sardine/commits{/sha}","git_commits_url":"https://api.github.com/repos/shinuza/sardine/git/commits{/sha}","comments_url":"https://api.github.com/repos/shinuza/sardine/comments{/number}","issue_comment_url":"https://api.github.com/repos/shinuza/sardine/issues/comments{/number}","contents_url":"https://api.github.com/repos/shinuza/sardine/contents/{+path}","compare_url":"https://api.github.com/repos/shinuza/sardine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shinuza/sardine/merges","archive_url":"https://api.github.com/repos/shinuza/sardine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shinuza/sardine/downloads","issues_url":"https://api.github.com/repos/shinuza/sardine/issues{/number}","pulls_url":"https://api.github.com/repos/shinuza/sardine/pulls{/number}","milestones_url":"https://api.github.com/repos/shinuza/sardine/milestones{/number}","notifications_url":"https://api.github.com/repos/shinuza/sardine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shinuza/sardine/labels{/name}","releases_url":"https://api.github.com/repos/shinuza/sardine/releases{/id}","deployments_url":"https://api.github.com/repos/shinuza/sardine/deployments","created_at":"2015-10-18T20:22:43Z","updated_at":"2016-02-01T10:20:14Z","pushed_at":"2016-02-11T10:14:56Z","git_url":"git://github.com/shinuza/sardine.git","ssh_url":"git@github.com:shinuza/sardine.git","clone_url":"https://github.com/shinuza/sardine.git","svn_url":"https://github.com/shinuza/sardine","homepage":"","size":166,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shinuza/sardine/pulls/35"},"html":{"href":"https://github.com/shinuza/sardine/pull/35"},"issue":{"href":"https://api.github.com/repos/shinuza/sardine/issues/35"},"comments":{"href":"https://api.github.com/repos/shinuza/sardine/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/shinuza/sardine/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/shinuza/sardine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shinuza/sardine/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/shinuza/sardine/statuses/49c5e2c8af69dbdfc88f840be3f66ab2aab0370a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"shinuza","id":137940,"avatar_url":"https://avatars.githubusercontent.com/u/137940?v=3","gravatar_id":"","url":"https://api.github.com/users/shinuza","html_url":"https://github.com/shinuza","followers_url":"https://api.github.com/users/shinuza/followers","following_url":"https://api.github.com/users/shinuza/following{/other_user}","gists_url":"https://api.github.com/users/shinuza/gists{/gist_id}","starred_url":"https://api.github.com/users/shinuza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinuza/subscriptions","organizations_url":"https://api.github.com/users/shinuza/orgs","repos_url":"https://api.github.com/users/shinuza/repos","events_url":"https://api.github.com/users/shinuza/events{/privacy}","received_events_url":"https://api.github.com/users/shinuza/received_events","type":"User","site_admin":false},"comments":2,"review_comments":2,"commits":1,"additions":54,"deletions":8,"changed_files":3}}