{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/comments/110918504","pull_request_review_id":32118356,"id":110918504,"diff_hunk":"@@ -0,0 +1,120 @@\n+-- This Source Code Form is subject to the terms of the Mozilla Public\n+-- License, v. 2.0. If a copy of the MPL was not distributed with this\n+-- file, You can obtain one at http://mozilla.org/MPL/2.0/.\n+\n+--[[\n+# Heka Gelf Decoder Module\n+Takes a gelf message, which should be a UTF-8 string, and adds it to the Heka\n+message Payload header.\n+\n+## Decoder Configuration Table\n+- none\n+\n+## Functions\n+\n+### decode\n+\n+Decode and inject the resulting message\n+\n+*Arguments*\n+- data (string) - Data to write to the msg.Payload\n+- default_headers (optional table) - Heka message table containing the default\n+  header values to use, if they are not populated by the decoder. If 'Fields'\n+  is specified it should be in the hashed based format see:\n+  http://mozilla-services.github.io/lua_sandbox/heka/message.html\n+\n+*Return*\n+- nil - throws an error on inject_message failure.\n+\n+--]]\n+\n+-- Imports\n+\n+local module_name    = ...\n+local module_cfg     = require \"string\".gsub(module_name, \"%.\", \"_\")\n+local cjson          = require \"cjson\"\n+local inject_message = inject_message\n+local ipairs         = ipairs\n+local pairs          = pairs\n+local type           = type\n+local table          = require \"table\"\n+local string         = require \"string\"\n+local io = require \"io\"\n+local read_config    = read_config","path":"heka/io_modules/decoders/gelf.lua","position":43,"original_position":43,"commit_id":"e87ddf18406051586491c783c962d0c540b967fa","original_commit_id":"e87ddf18406051586491c783c962d0c540b967fa","user":{"login":"trink","id":795988,"avatar_url":"https://avatars1.githubusercontent.com/u/795988?v=3","gravatar_id":"","url":"https://api.github.com/users/trink","html_url":"https://github.com/trink","followers_url":"https://api.github.com/users/trink/followers","following_url":"https://api.github.com/users/trink/following{/other_user}","gists_url":"https://api.github.com/users/trink/gists{/gist_id}","starred_url":"https://api.github.com/users/trink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trink/subscriptions","organizations_url":"https://api.github.com/users/trink/orgs","repos_url":"https://api.github.com/users/trink/repos","events_url":"https://api.github.com/users/trink/events{/privacy}","received_events_url":"https://api.github.com/users/trink/received_events","type":"User","site_admin":false},"body":"will not be needed","created_at":"2017-04-11T14:33:53Z","updated_at":"2017-04-11T14:55:58Z","html_url":"https://github.com/mozilla-services/lua_sandbox_extensions/pull/113#discussion_r110918504","pull_request_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/comments/110918504"},"html":{"href":"https://github.com/mozilla-services/lua_sandbox_extensions/pull/113#discussion_r110918504"},"pull_request":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/113","id":115048229,"html_url":"https://github.com/mozilla-services/lua_sandbox_extensions/pull/113","diff_url":"https://github.com/mozilla-services/lua_sandbox_extensions/pull/113.diff","patch_url":"https://github.com/mozilla-services/lua_sandbox_extensions/pull/113.patch","issue_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/issues/113","number":113,"state":"open","locked":false,"title":"Add gelf decoder","user":{"login":"AlexisSellier","id":3765063,"avatar_url":"https://avatars3.githubusercontent.com/u/3765063?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexisSellier","html_url":"https://github.com/AlexisSellier","followers_url":"https://api.github.com/users/AlexisSellier/followers","following_url":"https://api.github.com/users/AlexisSellier/following{/other_user}","gists_url":"https://api.github.com/users/AlexisSellier/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexisSellier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexisSellier/subscriptions","organizations_url":"https://api.github.com/users/AlexisSellier/orgs","repos_url":"https://api.github.com/users/AlexisSellier/repos","events_url":"https://api.github.com/users/AlexisSellier/events{/privacy}","received_events_url":"https://api.github.com/users/AlexisSellier/received_events","type":"User","site_admin":false},"body":"Gelf decoder that also handles chunked message","created_at":"2017-04-10T08:26:00Z","updated_at":"2017-04-11T14:55:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f279f1045908c063248f2a35f9af0f3d30a79185","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/113/commits","review_comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/113/comments","review_comment_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/issues/113/comments","statuses_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/statuses/e87ddf18406051586491c783c962d0c540b967fa","head":{"label":"AlexisSellier:gelf_decoder","ref":"gelf_decoder","sha":"e87ddf18406051586491c783c962d0c540b967fa","user":{"login":"AlexisSellier","id":3765063,"avatar_url":"https://avatars3.githubusercontent.com/u/3765063?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexisSellier","html_url":"https://github.com/AlexisSellier","followers_url":"https://api.github.com/users/AlexisSellier/followers","following_url":"https://api.github.com/users/AlexisSellier/following{/other_user}","gists_url":"https://api.github.com/users/AlexisSellier/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexisSellier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexisSellier/subscriptions","organizations_url":"https://api.github.com/users/AlexisSellier/orgs","repos_url":"https://api.github.com/users/AlexisSellier/repos","events_url":"https://api.github.com/users/AlexisSellier/events{/privacy}","received_events_url":"https://api.github.com/users/AlexisSellier/received_events","type":"User","site_admin":false},"repo":{"id":82804121,"name":"lua_sandbox_extensions","full_name":"AlexisSellier/lua_sandbox_extensions","owner":{"login":"AlexisSellier","id":3765063,"avatar_url":"https://avatars3.githubusercontent.com/u/3765063?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexisSellier","html_url":"https://github.com/AlexisSellier","followers_url":"https://api.github.com/users/AlexisSellier/followers","following_url":"https://api.github.com/users/AlexisSellier/following{/other_user}","gists_url":"https://api.github.com/users/AlexisSellier/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexisSellier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexisSellier/subscriptions","organizations_url":"https://api.github.com/users/AlexisSellier/orgs","repos_url":"https://api.github.com/users/AlexisSellier/repos","events_url":"https://api.github.com/users/AlexisSellier/events{/privacy}","received_events_url":"https://api.github.com/users/AlexisSellier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexisSellier/lua_sandbox_extensions","description":"Extension packages (sandboxes and modules) for the lua_sandbox project","fork":true,"url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions","forks_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/forks","keys_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/teams","hooks_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/hooks","issue_events_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/issues/events{/number}","events_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/events","assignees_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/assignees{/user}","branches_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/branches{/branch}","tags_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/tags","blobs_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/languages","stargazers_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/stargazers","contributors_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/contributors","subscribers_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/subscribers","subscription_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/subscription","commits_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/contents/{+path}","compare_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/merges","archive_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/downloads","issues_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/issues{/number}","pulls_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/labels{/name}","releases_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/releases{/id}","deployments_url":"https://api.github.com/repos/AlexisSellier/lua_sandbox_extensions/deployments","created_at":"2017-02-22T12:54:09Z","updated_at":"2017-02-22T12:54:11Z","pushed_at":"2017-04-10T08:21:35Z","git_url":"git://github.com/AlexisSellier/lua_sandbox_extensions.git","ssh_url":"git@github.com:AlexisSellier/lua_sandbox_extensions.git","clone_url":"https://github.com/AlexisSellier/lua_sandbox_extensions.git","svn_url":"https://github.com/AlexisSellier/lua_sandbox_extensions","homepage":null,"size":1263,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_projects":true,"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":"mozilla-services:master","ref":"master","sha":"d5d65adbe4e075825aa99f5abee01ffff93bcced","user":{"login":"mozilla-services","id":1066228,"avatar_url":"https://avatars2.githubusercontent.com/u/1066228?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-services","html_url":"https://github.com/mozilla-services","followers_url":"https://api.github.com/users/mozilla-services/followers","following_url":"https://api.github.com/users/mozilla-services/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-services/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-services/subscriptions","organizations_url":"https://api.github.com/users/mozilla-services/orgs","repos_url":"https://api.github.com/users/mozilla-services/repos","events_url":"https://api.github.com/users/mozilla-services/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-services/received_events","type":"Organization","site_admin":false},"repo":{"id":63124846,"name":"lua_sandbox_extensions","full_name":"mozilla-services/lua_sandbox_extensions","owner":{"login":"mozilla-services","id":1066228,"avatar_url":"https://avatars2.githubusercontent.com/u/1066228?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-services","html_url":"https://github.com/mozilla-services","followers_url":"https://api.github.com/users/mozilla-services/followers","following_url":"https://api.github.com/users/mozilla-services/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-services/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-services/subscriptions","organizations_url":"https://api.github.com/users/mozilla-services/orgs","repos_url":"https://api.github.com/users/mozilla-services/repos","events_url":"https://api.github.com/users/mozilla-services/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-services/lua_sandbox_extensions","description":"Extension packages (sandboxes and modules) for the lua_sandbox project","fork":false,"url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions","forks_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/forks","keys_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/teams","hooks_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/hooks","issue_events_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/events","assignees_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/tags","blobs_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/languages","stargazers_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/stargazers","contributors_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/contributors","subscribers_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/subscribers","subscription_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/subscription","commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/merges","archive_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/downloads","issues_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/deployments","created_at":"2016-07-12T03:56:59Z","updated_at":"2017-04-07T15:39:32Z","pushed_at":"2017-04-10T08:26:00Z","git_url":"git://github.com/mozilla-services/lua_sandbox_extensions.git","ssh_url":"git@github.com:mozilla-services/lua_sandbox_extensions.git","clone_url":"https://github.com/mozilla-services/lua_sandbox_extensions.git","svn_url":"https://github.com/mozilla-services/lua_sandbox_extensions","homepage":null,"size":1414,"stargazers_count":24,"watchers_count":24,"language":"Lua","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":10,"forks":19,"open_issues":10,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/113"},"html":{"href":"https://github.com/mozilla-services/lua_sandbox_extensions/pull/113"},"issue":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/issues/113"},"comments":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox_extensions/statuses/e87ddf18406051586491c783c962d0c540b967fa"}}}}
{"actor":{"display_login":"trink"}}