GitHub PullRequestReviewCommentEvent at 2014-07-02 16:11:58
Repository: npm-cid
Actor: Amoki
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/comments/14466368","id":14466368,"diff_hunk":"@@ -1,6 +1,29 @@\n # CID Replace\n > Visit http://anyfetch.com for details about AnyFetch.\n \n-Replace CID img balise in mail\n+Replace CID img balise in HTML mail with corresponding attachment\n+\n+# Usage\n+\n+You must have a string which is your HTML code and an array of attachments with differents properties :\n+    - fileName : the file name\n+    - contentId : the content ID (optionnal)\n+    - content : the content in base 64 (node buffer or string)\n+\n+The module function returns the new HTML without useless CID img. Now, attachments have a property 'applied' which is true when there was a CID img which match with this attachment.\n+\n+```js\n+var cid = require('npm-cid');\n+\n+var attachments = [\n+  {\n+    fileName: \"test.jpg\",\n+    contentId: \"test\",\n+    content: \"base64contentofimg\"\n+  }\n+];\n+\n+console.log(cid('<img src=\"cid:test@evfeuv\">', attachments));\n+```\n \n Support: `support@papiel.fr`.","path":"README.md","position":30,"original_position":30,"commit_id":"59a994ba4bd8a9dcbe5d1fff8f19264547f3790d","original_commit_id":"59a994ba4bd8a9dcbe5d1fff8f19264547f3790d","user":{"login":"Amoki","id":1349751,"avatar_url":"https://avatars.githubusercontent.com/u/1349751?","gravatar_id":"217411fe8ad474db502c3f9bd4295257","url":"https://api.github.com/users/Amoki","html_url":"https://github.com/Amoki","followers_url":"https://api.github.com/users/Amoki/followers","following_url":"https://api.github.com/users/Amoki/following{/other_user}","gists_url":"https://api.github.com/users/Amoki/gists{/gist_id}","starred_url":"https://api.github.com/users/Amoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amoki/subscriptions","organizations_url":"https://api.github.com/users/Amoki/orgs","repos_url":"https://api.github.com/users/Amoki/repos","events_url":"https://api.github.com/users/Amoki/events{/privacy}","received_events_url":"https://api.github.com/users/Amoki/received_events","type":"User","site_admin":false},"body":"support@anyfetch.com","created_at":"2014-07-02T16:11:58Z","updated_at":"2014-07-02T16:11:58Z","html_url":"https://github.com/AnyFetch/npm-cid/pull/1#discussion_r14466368","pull_request_url":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/comments/14466368"},"html":{"href":"https://github.com/AnyFetch/npm-cid/pull/1#discussion_r14466368"},"pull_request":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/1","id":17894738,"html_url":"https://github.com/AnyFetch/npm-cid/pull/1","diff_url":"https://github.com/AnyFetch/npm-cid/pull/1.diff","patch_url":"https://github.com/AnyFetch/npm-cid/pull/1.patch","issue_url":"https://api.github.com/repos/AnyFetch/npm-cid/issues/1","number":1,"state":"open","title":"Version 0.1.2","user":{"login":"Quentin01","id":1022683,"avatar_url":"https://avatars.githubusercontent.com/u/1022683?","gravatar_id":"a5906d8b7d4c8e39c1913548d73119b8","url":"https://api.github.com/users/Quentin01","html_url":"https://github.com/Quentin01","followers_url":"https://api.github.com/users/Quentin01/followers","following_url":"https://api.github.com/users/Quentin01/following{/other_user}","gists_url":"https://api.github.com/users/Quentin01/gists{/gist_id}","starred_url":"https://api.github.com/users/Quentin01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quentin01/subscriptions","organizations_url":"https://api.github.com/users/Quentin01/orgs","repos_url":"https://api.github.com/users/Quentin01/repos","events_url":"https://api.github.com/users/Quentin01/events{/privacy}","received_events_url":"https://api.github.com/users/Quentin01/received_events","type":"User","site_admin":false},"body":"Update differents things","created_at":"2014-07-02T15:56:19Z","updated_at":"2014-07-02T16:11:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e052a2f69afc4ce30f100a9062a07bec95e84f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/1/commits","review_comments_url":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/1/comments","review_comment_url":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/comments/{number}","comments_url":"https://api.github.com/repos/AnyFetch/npm-cid/issues/1/comments","statuses_url":"https://api.github.com/repos/AnyFetch/npm-cid/statuses/59a994ba4bd8a9dcbe5d1fff8f19264547f3790d","head":{"label":"AnyFetch:0.1.2","ref":"0.1.2","sha":"59a994ba4bd8a9dcbe5d1fff8f19264547f3790d","user":{"login":"AnyFetch","id":3952848,"avatar_url":"https://avatars.githubusercontent.com/u/3952848?","gravatar_id":"38a329820c5eab64decbf95bf7f3ebcb","url":"https://api.github.com/users/AnyFetch","html_url":"https://github.com/AnyFetch","followers_url":"https://api.github.com/users/AnyFetch/followers","following_url":"https://api.github.com/users/AnyFetch/following{/other_user}","gists_url":"https://api.github.com/users/AnyFetch/gists{/gist_id}","starred_url":"https://api.github.com/users/AnyFetch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnyFetch/subscriptions","organizations_url":"https://api.github.com/users/AnyFetch/orgs","repos_url":"https://api.github.com/users/AnyFetch/repos","events_url":"https://api.github.com/users/AnyFetch/events{/privacy}","received_events_url":"https://api.github.com/users/AnyFetch/received_events","type":"Organization","site_admin":false},"repo":{"id":21425895,"name":"npm-cid","full_name":"AnyFetch/npm-cid","owner":{"login":"AnyFetch","id":3952848,"avatar_url":"https://avatars.githubusercontent.com/u/3952848?","gravatar_id":"38a329820c5eab64decbf95bf7f3ebcb","url":"https://api.github.com/users/AnyFetch","html_url":"https://github.com/AnyFetch","followers_url":"https://api.github.com/users/AnyFetch/followers","following_url":"https://api.github.com/users/AnyFetch/following{/other_user}","gists_url":"https://api.github.com/users/AnyFetch/gists{/gist_id}","starred_url":"https://api.github.com/users/AnyFetch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnyFetch/subscriptions","organizations_url":"https://api.github.com/users/AnyFetch/orgs","repos_url":"https://api.github.com/users/AnyFetch/repos","events_url":"https://api.github.com/users/AnyFetch/events{/privacy}","received_events_url":"https://api.github.com/users/AnyFetch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AnyFetch/npm-cid","description":"","fork":false,"url":"https://api.github.com/repos/AnyFetch/npm-cid","forks_url":"https://api.github.com/repos/AnyFetch/npm-cid/forks","keys_url":"https://api.github.com/repos/AnyFetch/npm-cid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AnyFetch/npm-cid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AnyFetch/npm-cid/teams","hooks_url":"https://api.github.com/repos/AnyFetch/npm-cid/hooks","issue_events_url":"https://api.github.com/repos/AnyFetch/npm-cid/issues/events{/number}","events_url":"https://api.github.com/repos/AnyFetch/npm-cid/events","assignees_url":"https://api.github.com/repos/AnyFetch/npm-cid/assignees{/user}","branches_url":"https://api.github.com/repos/AnyFetch/npm-cid/branches{/branch}","tags_url":"https://api.github.com/repos/AnyFetch/npm-cid/tags","blobs_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/refs{/sha}","trees_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AnyFetch/npm-cid/statuses/{sha}","languages_url":"https://api.github.com/repos/AnyFetch/npm-cid/languages","stargazers_url":"https://api.github.com/repos/AnyFetch/npm-cid/stargazers","contributors_url":"https://api.github.com/repos/AnyFetch/npm-cid/contributors","subscribers_url":"https://api.github.com/repos/AnyFetch/npm-cid/subscribers","subscription_url":"https://api.github.com/repos/AnyFetch/npm-cid/subscription","commits_url":"https://api.github.com/repos/AnyFetch/npm-cid/commits{/sha}","git_commits_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/commits{/sha}","comments_url":"https://api.github.com/repos/AnyFetch/npm-cid/comments{/number}","issue_comment_url":"https://api.github.com/repos/AnyFetch/npm-cid/issues/comments/{number}","contents_url":"https://api.github.com/repos/AnyFetch/npm-cid/contents/{+path}","compare_url":"https://api.github.com/repos/AnyFetch/npm-cid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AnyFetch/npm-cid/merges","archive_url":"https://api.github.com/repos/AnyFetch/npm-cid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AnyFetch/npm-cid/downloads","issues_url":"https://api.github.com/repos/AnyFetch/npm-cid/issues{/number}","pulls_url":"https://api.github.com/repos/AnyFetch/npm-cid/pulls{/number}","milestones_url":"https://api.github.com/repos/AnyFetch/npm-cid/milestones{/number}","notifications_url":"https://api.github.com/repos/AnyFetch/npm-cid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AnyFetch/npm-cid/labels{/name}","releases_url":"https://api.github.com/repos/AnyFetch/npm-cid/releases{/id}","created_at":"2014-07-02T13:49:04Z","updated_at":"2014-07-02T15:08:14Z","pushed_at":"2014-07-02T15:55:27Z","git_url":"git://github.com/AnyFetch/npm-cid.git","ssh_url":"git@github.com:AnyFetch/npm-cid.git","clone_url":"https://github.com/AnyFetch/npm-cid.git","svn_url":"https://github.com/AnyFetch/npm-cid","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AnyFetch:master","ref":"master","sha":"9e6014194ce06a2a233868f83e86b561cb0bc41e","user":{"login":"AnyFetch","id":3952848,"avatar_url":"https://avatars.githubusercontent.com/u/3952848?","gravatar_id":"38a329820c5eab64decbf95bf7f3ebcb","url":"https://api.github.com/users/AnyFetch","html_url":"https://github.com/AnyFetch","followers_url":"https://api.github.com/users/AnyFetch/followers","following_url":"https://api.github.com/users/AnyFetch/following{/other_user}","gists_url":"https://api.github.com/users/AnyFetch/gists{/gist_id}","starred_url":"https://api.github.com/users/AnyFetch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnyFetch/subscriptions","organizations_url":"https://api.github.com/users/AnyFetch/orgs","repos_url":"https://api.github.com/users/AnyFetch/repos","events_url":"https://api.github.com/users/AnyFetch/events{/privacy}","received_events_url":"https://api.github.com/users/AnyFetch/received_events","type":"Organization","site_admin":false},"repo":{"id":21425895,"name":"npm-cid","full_name":"AnyFetch/npm-cid","owner":{"login":"AnyFetch","id":3952848,"avatar_url":"https://avatars.githubusercontent.com/u/3952848?","gravatar_id":"38a329820c5eab64decbf95bf7f3ebcb","url":"https://api.github.com/users/AnyFetch","html_url":"https://github.com/AnyFetch","followers_url":"https://api.github.com/users/AnyFetch/followers","following_url":"https://api.github.com/users/AnyFetch/following{/other_user}","gists_url":"https://api.github.com/users/AnyFetch/gists{/gist_id}","starred_url":"https://api.github.com/users/AnyFetch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnyFetch/subscriptions","organizations_url":"https://api.github.com/users/AnyFetch/orgs","repos_url":"https://api.github.com/users/AnyFetch/repos","events_url":"https://api.github.com/users/AnyFetch/events{/privacy}","received_events_url":"https://api.github.com/users/AnyFetch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AnyFetch/npm-cid","description":"","fork":false,"url":"https://api.github.com/repos/AnyFetch/npm-cid","forks_url":"https://api.github.com/repos/AnyFetch/npm-cid/forks","keys_url":"https://api.github.com/repos/AnyFetch/npm-cid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AnyFetch/npm-cid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AnyFetch/npm-cid/teams","hooks_url":"https://api.github.com/repos/AnyFetch/npm-cid/hooks","issue_events_url":"https://api.github.com/repos/AnyFetch/npm-cid/issues/events{/number}","events_url":"https://api.github.com/repos/AnyFetch/npm-cid/events","assignees_url":"https://api.github.com/repos/AnyFetch/npm-cid/assignees{/user}","branches_url":"https://api.github.com/repos/AnyFetch/npm-cid/branches{/branch}","tags_url":"https://api.github.com/repos/AnyFetch/npm-cid/tags","blobs_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/refs{/sha}","trees_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AnyFetch/npm-cid/statuses/{sha}","languages_url":"https://api.github.com/repos/AnyFetch/npm-cid/languages","stargazers_url":"https://api.github.com/repos/AnyFetch/npm-cid/stargazers","contributors_url":"https://api.github.com/repos/AnyFetch/npm-cid/contributors","subscribers_url":"https://api.github.com/repos/AnyFetch/npm-cid/subscribers","subscription_url":"https://api.github.com/repos/AnyFetch/npm-cid/subscription","commits_url":"https://api.github.com/repos/AnyFetch/npm-cid/commits{/sha}","git_commits_url":"https://api.github.com/repos/AnyFetch/npm-cid/git/commits{/sha}","comments_url":"https://api.github.com/repos/AnyFetch/npm-cid/comments{/number}","issue_comment_url":"https://api.github.com/repos/AnyFetch/npm-cid/issues/comments/{number}","contents_url":"https://api.github.com/repos/AnyFetch/npm-cid/contents/{+path}","compare_url":"https://api.github.com/repos/AnyFetch/npm-cid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AnyFetch/npm-cid/merges","archive_url":"https://api.github.com/repos/AnyFetch/npm-cid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AnyFetch/npm-cid/downloads","issues_url":"https://api.github.com/repos/AnyFetch/npm-cid/issues{/number}","pulls_url":"https://api.github.com/repos/AnyFetch/npm-cid/pulls{/number}","milestones_url":"https://api.github.com/repos/AnyFetch/npm-cid/milestones{/number}","notifications_url":"https://api.github.com/repos/AnyFetch/npm-cid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AnyFetch/npm-cid/labels{/name}","releases_url":"https://api.github.com/repos/AnyFetch/npm-cid/releases{/id}","created_at":"2014-07-02T13:49:04Z","updated_at":"2014-07-02T15:08:14Z","pushed_at":"2014-07-02T15:55:27Z","git_url":"git://github.com/AnyFetch/npm-cid.git","ssh_url":"git@github.com:AnyFetch/npm-cid.git","clone_url":"https://github.com/AnyFetch/npm-cid.git","svn_url":"https://github.com/AnyFetch/npm-cid","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/1"},"html":{"href":"https://github.com/AnyFetch/npm-cid/pull/1"},"issue":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/issues/1"},"comments":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/AnyFetch/npm-cid/statuses/59a994ba4bd8a9dcbe5d1fff8f19264547f3790d"}}}}