{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/glynnbird/couchimport/pulls/3","id":32167794,"html_url":"https://github.com/glynnbird/couchimport/pull/3","diff_url":"https://github.com/glynnbird/couchimport/pull/3.diff","patch_url":"https://github.com/glynnbird/couchimport/pull/3.patch","issue_url":"https://api.github.com/repos/glynnbird/couchimport/issues/3","number":3,"state":"open","locked":false,"title":"Xform metadata","user":{"login":"smeans","id":92589,"avatar_url":"https://avatars.githubusercontent.com/u/92589?v=3","gravatar_id":"","url":"https://api.github.com/users/smeans","html_url":"https://github.com/smeans","followers_url":"https://api.github.com/users/smeans/followers","following_url":"https://api.github.com/users/smeans/following{/other_user}","gists_url":"https://api.github.com/users/smeans/gists{/gist_id}","starred_url":"https://api.github.com/users/smeans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smeans/subscriptions","organizations_url":"https://api.github.com/users/smeans/orgs","repos_url":"https://api.github.com/users/smeans/repos","events_url":"https://api.github.com/users/smeans/events{/privacy}","received_events_url":"https://api.github.com/users/smeans/received_events","type":"User","site_admin":false},"body":"Hi! This is the first time I've actually taken the trouble to try to submit my changes to a github repo, so I hope I've done it the right way. For my application, I had quoted header fields, which was breaking the import function. I also needed to pass in additional information to my transform function so I could differentiate between different import files. I added support for a metadata environment variable (COUCHIMPORT_META) which is a JSON string. The resulting JSON object is provided to the transform function as an optional second parameter (after doc).\r\n\r\nThanks for writing the code, it's very useful!","created_at":"2015-03-28T17:29:36Z","updated_at":"2015-03-28T17:29:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/glynnbird/couchimport/pulls/3/commits","review_comments_url":"https://api.github.com/repos/glynnbird/couchimport/pulls/3/comments","review_comment_url":"https://api.github.com/repos/glynnbird/couchimport/pulls/comments{/number}","comments_url":"https://api.github.com/repos/glynnbird/couchimport/issues/3/comments","statuses_url":"https://api.github.com/repos/glynnbird/couchimport/statuses/ebaf41186a1dd8d13de6dea63a41a299af6c8ab6","head":{"label":"smeans:xform_metadata","ref":"xform_metadata","sha":"ebaf41186a1dd8d13de6dea63a41a299af6c8ab6","user":{"login":"smeans","id":92589,"avatar_url":"https://avatars.githubusercontent.com/u/92589?v=3","gravatar_id":"","url":"https://api.github.com/users/smeans","html_url":"https://github.com/smeans","followers_url":"https://api.github.com/users/smeans/followers","following_url":"https://api.github.com/users/smeans/following{/other_user}","gists_url":"https://api.github.com/users/smeans/gists{/gist_id}","starred_url":"https://api.github.com/users/smeans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smeans/subscriptions","organizations_url":"https://api.github.com/users/smeans/orgs","repos_url":"https://api.github.com/users/smeans/repos","events_url":"https://api.github.com/users/smeans/events{/privacy}","received_events_url":"https://api.github.com/users/smeans/received_events","type":"User","site_admin":false},"repo":{"id":33042715,"name":"couchimport","full_name":"smeans/couchimport","owner":{"login":"smeans","id":92589,"avatar_url":"https://avatars.githubusercontent.com/u/92589?v=3","gravatar_id":"","url":"https://api.github.com/users/smeans","html_url":"https://github.com/smeans","followers_url":"https://api.github.com/users/smeans/followers","following_url":"https://api.github.com/users/smeans/following{/other_user}","gists_url":"https://api.github.com/users/smeans/gists{/gist_id}","starred_url":"https://api.github.com/users/smeans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smeans/subscriptions","organizations_url":"https://api.github.com/users/smeans/orgs","repos_url":"https://api.github.com/users/smeans/repos","events_url":"https://api.github.com/users/smeans/events{/privacy}","received_events_url":"https://api.github.com/users/smeans/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smeans/couchimport","description":"CouchDB import tool to allow data to be bulk inserted","fork":true,"url":"https://api.github.com/repos/smeans/couchimport","forks_url":"https://api.github.com/repos/smeans/couchimport/forks","keys_url":"https://api.github.com/repos/smeans/couchimport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smeans/couchimport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smeans/couchimport/teams","hooks_url":"https://api.github.com/repos/smeans/couchimport/hooks","issue_events_url":"https://api.github.com/repos/smeans/couchimport/issues/events{/number}","events_url":"https://api.github.com/repos/smeans/couchimport/events","assignees_url":"https://api.github.com/repos/smeans/couchimport/assignees{/user}","branches_url":"https://api.github.com/repos/smeans/couchimport/branches{/branch}","tags_url":"https://api.github.com/repos/smeans/couchimport/tags","blobs_url":"https://api.github.com/repos/smeans/couchimport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smeans/couchimport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smeans/couchimport/git/refs{/sha}","trees_url":"https://api.github.com/repos/smeans/couchimport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smeans/couchimport/statuses/{sha}","languages_url":"https://api.github.com/repos/smeans/couchimport/languages","stargazers_url":"https://api.github.com/repos/smeans/couchimport/stargazers","contributors_url":"https://api.github.com/repos/smeans/couchimport/contributors","subscribers_url":"https://api.github.com/repos/smeans/couchimport/subscribers","subscription_url":"https://api.github.com/repos/smeans/couchimport/subscription","commits_url":"https://api.github.com/repos/smeans/couchimport/commits{/sha}","git_commits_url":"https://api.github.com/repos/smeans/couchimport/git/commits{/sha}","comments_url":"https://api.github.com/repos/smeans/couchimport/comments{/number}","issue_comment_url":"https://api.github.com/repos/smeans/couchimport/issues/comments{/number}","contents_url":"https://api.github.com/repos/smeans/couchimport/contents/{+path}","compare_url":"https://api.github.com/repos/smeans/couchimport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smeans/couchimport/merges","archive_url":"https://api.github.com/repos/smeans/couchimport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smeans/couchimport/downloads","issues_url":"https://api.github.com/repos/smeans/couchimport/issues{/number}","pulls_url":"https://api.github.com/repos/smeans/couchimport/pulls{/number}","milestones_url":"https://api.github.com/repos/smeans/couchimport/milestones{/number}","notifications_url":"https://api.github.com/repos/smeans/couchimport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smeans/couchimport/labels{/name}","releases_url":"https://api.github.com/repos/smeans/couchimport/releases{/id}","created_at":"2015-03-28T17:22:24Z","updated_at":"2015-03-28T17:22:25Z","pushed_at":"2015-03-28T17:27:06Z","git_url":"git://github.com/smeans/couchimport.git","ssh_url":"git@github.com:smeans/couchimport.git","clone_url":"https://github.com/smeans/couchimport.git","svn_url":"https://github.com/smeans/couchimport","homepage":null,"size":209,"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":"glynnbird:master","ref":"master","sha":"fe9bda56e449b3a09055ff144a43f64583016aeb","user":{"login":"glynnbird","id":697925,"avatar_url":"https://avatars.githubusercontent.com/u/697925?v=3","gravatar_id":"","url":"https://api.github.com/users/glynnbird","html_url":"https://github.com/glynnbird","followers_url":"https://api.github.com/users/glynnbird/followers","following_url":"https://api.github.com/users/glynnbird/following{/other_user}","gists_url":"https://api.github.com/users/glynnbird/gists{/gist_id}","starred_url":"https://api.github.com/users/glynnbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glynnbird/subscriptions","organizations_url":"https://api.github.com/users/glynnbird/orgs","repos_url":"https://api.github.com/users/glynnbird/repos","events_url":"https://api.github.com/users/glynnbird/events{/privacy}","received_events_url":"https://api.github.com/users/glynnbird/received_events","type":"User","site_admin":false},"repo":{"id":21348369,"name":"couchimport","full_name":"glynnbird/couchimport","owner":{"login":"glynnbird","id":697925,"avatar_url":"https://avatars.githubusercontent.com/u/697925?v=3","gravatar_id":"","url":"https://api.github.com/users/glynnbird","html_url":"https://github.com/glynnbird","followers_url":"https://api.github.com/users/glynnbird/followers","following_url":"https://api.github.com/users/glynnbird/following{/other_user}","gists_url":"https://api.github.com/users/glynnbird/gists{/gist_id}","starred_url":"https://api.github.com/users/glynnbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glynnbird/subscriptions","organizations_url":"https://api.github.com/users/glynnbird/orgs","repos_url":"https://api.github.com/users/glynnbird/repos","events_url":"https://api.github.com/users/glynnbird/events{/privacy}","received_events_url":"https://api.github.com/users/glynnbird/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glynnbird/couchimport","description":"CouchDB import tool to allow data to be bulk inserted","fork":false,"url":"https://api.github.com/repos/glynnbird/couchimport","forks_url":"https://api.github.com/repos/glynnbird/couchimport/forks","keys_url":"https://api.github.com/repos/glynnbird/couchimport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glynnbird/couchimport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glynnbird/couchimport/teams","hooks_url":"https://api.github.com/repos/glynnbird/couchimport/hooks","issue_events_url":"https://api.github.com/repos/glynnbird/couchimport/issues/events{/number}","events_url":"https://api.github.com/repos/glynnbird/couchimport/events","assignees_url":"https://api.github.com/repos/glynnbird/couchimport/assignees{/user}","branches_url":"https://api.github.com/repos/glynnbird/couchimport/branches{/branch}","tags_url":"https://api.github.com/repos/glynnbird/couchimport/tags","blobs_url":"https://api.github.com/repos/glynnbird/couchimport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glynnbird/couchimport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glynnbird/couchimport/git/refs{/sha}","trees_url":"https://api.github.com/repos/glynnbird/couchimport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glynnbird/couchimport/statuses/{sha}","languages_url":"https://api.github.com/repos/glynnbird/couchimport/languages","stargazers_url":"https://api.github.com/repos/glynnbird/couchimport/stargazers","contributors_url":"https://api.github.com/repos/glynnbird/couchimport/contributors","subscribers_url":"https://api.github.com/repos/glynnbird/couchimport/subscribers","subscription_url":"https://api.github.com/repos/glynnbird/couchimport/subscription","commits_url":"https://api.github.com/repos/glynnbird/couchimport/commits{/sha}","git_commits_url":"https://api.github.com/repos/glynnbird/couchimport/git/commits{/sha}","comments_url":"https://api.github.com/repos/glynnbird/couchimport/comments{/number}","issue_comment_url":"https://api.github.com/repos/glynnbird/couchimport/issues/comments{/number}","contents_url":"https://api.github.com/repos/glynnbird/couchimport/contents/{+path}","compare_url":"https://api.github.com/repos/glynnbird/couchimport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glynnbird/couchimport/merges","archive_url":"https://api.github.com/repos/glynnbird/couchimport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glynnbird/couchimport/downloads","issues_url":"https://api.github.com/repos/glynnbird/couchimport/issues{/number}","pulls_url":"https://api.github.com/repos/glynnbird/couchimport/pulls{/number}","milestones_url":"https://api.github.com/repos/glynnbird/couchimport/milestones{/number}","notifications_url":"https://api.github.com/repos/glynnbird/couchimport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glynnbird/couchimport/labels{/name}","releases_url":"https://api.github.com/repos/glynnbird/couchimport/releases{/id}","created_at":"2014-06-30T11:08:19Z","updated_at":"2015-03-19T15:58:09Z","pushed_at":"2015-03-19T15:58:09Z","git_url":"git://github.com/glynnbird/couchimport.git","ssh_url":"git@github.com:glynnbird/couchimport.git","clone_url":"https://github.com/glynnbird/couchimport.git","svn_url":"https://github.com/glynnbird/couchimport","homepage":null,"size":209,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glynnbird/couchimport/pulls/3"},"html":{"href":"https://github.com/glynnbird/couchimport/pull/3"},"issue":{"href":"https://api.github.com/repos/glynnbird/couchimport/issues/3"},"comments":{"href":"https://api.github.com/repos/glynnbird/couchimport/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/glynnbird/couchimport/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/glynnbird/couchimport/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/glynnbird/couchimport/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/glynnbird/couchimport/statuses/ebaf41186a1dd8d13de6dea63a41a299af6c8ab6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":18,"deletions":9,"changed_files":3}}