{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments/26752283","id":26752283,"diff_hunk":"@@ -0,0 +1,44 @@\n+package DDG::Goodie::BRT;\n+# ABSTRACT: Track a shipment from BRT (formerly Bartolini)\n+\n+use DDG::Goodie;\n+\n+zci answer_type => \"brt\";\n+zci is_cached   => 1;\n+\n+name \"BRT\";\n+description \"Track a shipment from BRT\";\n+icon_url \"https://afelicioni.github.io/assets/i/www.brt.it.ico\";\n+code_url \"https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/BRT.pm\";\n+primary_example_queries \"brt 114090393162\";\n+secondary_example_queries \"brtcode 1511409039316255850\";\n+source \"BRT\";\n+category 'ids';\n+topics 'special_interest';\n+attribution web => [\"https://afelicioni.github.io/\", \"Alessio Felicioni\"],\n+            github => [\"afelicioni\", \"Alessio Felicioni\"],\n+            twitter => [\"afelicioni_pro\", \"Alessio Felicioni\"];\n+\n+triggers start => \"brt\", \"brtcode\";\n+\n+handle query_lc => sub {\n+    return unless /^(?:brt\\s+(?:([0-9]{12})|([0-9]{19}))|brtcode\\s+([0-9]{19}))$/;","path":"lib/DDG/Goodie/BRT.pm","position":25,"original_position":25,"commit_id":"158df3037b3814f183698ffe2a9fa6a4dec1d02e","original_commit_id":"158df3037b3814f183698ffe2a9fa6a4dec1d02e","user":{"login":"mintsoft","id":978048,"avatar_url":"https://avatars.githubusercontent.com/u/978048?v=3","gravatar_id":"","url":"https://api.github.com/users/mintsoft","html_url":"https://github.com/mintsoft","followers_url":"https://api.github.com/users/mintsoft/followers","following_url":"https://api.github.com/users/mintsoft/following{/other_user}","gists_url":"https://api.github.com/users/mintsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mintsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mintsoft/subscriptions","organizations_url":"https://api.github.com/users/mintsoft/orgs","repos_url":"https://api.github.com/users/mintsoft/repos","events_url":"https://api.github.com/users/mintsoft/events{/privacy}","received_events_url":"https://api.github.com/users/mintsoft/received_events","type":"User","site_admin":false},"body":"You could use named captures here to make this a little clearer?\r\nExample: https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Base.pm#L37","created_at":"2015-03-19T13:21:33Z","updated_at":"2015-03-19T13:21:33Z","html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1071#discussion_r26752283","pull_request_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1071","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments/26752283"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1071#discussion_r26752283"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1071"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1071","id":31509121,"html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1071","diff_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1071.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1071.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1071","number":1071,"state":"open","locked":false,"title":"Add BRT Shipment Tracking","user":{"login":"afelicioni","id":1416945,"avatar_url":"https://avatars.githubusercontent.com/u/1416945?v=3","gravatar_id":"","url":"https://api.github.com/users/afelicioni","html_url":"https://github.com/afelicioni","followers_url":"https://api.github.com/users/afelicioni/followers","following_url":"https://api.github.com/users/afelicioni/following{/other_user}","gists_url":"https://api.github.com/users/afelicioni/gists{/gist_id}","starred_url":"https://api.github.com/users/afelicioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afelicioni/subscriptions","organizations_url":"https://api.github.com/users/afelicioni/orgs","repos_url":"https://api.github.com/users/afelicioni/repos","events_url":"https://api.github.com/users/afelicioni/events{/privacy}","received_events_url":"https://api.github.com/users/afelicioni/received_events","type":"User","site_admin":false},"body":"# Goodie Pull Request Template\r\n**What does your Instant Answer do?**\r\nProviding tracking information handled by [BRT](http://www.brt.it/) shipping carrier services\r\n\r\n**What problem does your Instant Answer solve (Why is it better than organic links)?**\r\nLinks directly to shipment details\r\n\r\n**What is the data source for your Instant Answer? (Provide a link if possible)**\r\n[BRT](http://www.brt.it/) web service\r\n\r\n**Why did you choose this data source?**\r\nThe information is the only available from BRT\r\n\r\n**Are there any other alternative (better) data sources?**\r\nNo\r\n\r\n**What are some example queries that trigger this Instant Answer?**\r\n12 digit shipment code\r\n``brt 123456789012``\r\n19 digit \"BRTcode\"\r\n``brtcode 1234567890123456789`` or ``brt 1234567890123456789``\r\n\r\n**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**\r\nE-commerce users\r\n\r\n**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**\r\n[#5069](https://duck.co/ideas/idea/5069/brt-shipment-tracking) BRT Shipment Tracking\r\n\r\n**Which existing Instant Answers will this one supercede/overlap with?**\r\nNone\r\n\r\n**Are you having any problems? Do you need our help with anything?**\r\nNo, no\r\n\r\n\r\n**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**\r\n![ios simulator screen shot 19 mar 2015 10 49 34](https://cloud.githubusercontent.com/assets/1416945/6727936/1bb13b72-ce26-11e4-8e8d-ab83432fe55c.png)\r\n\r\n## Checklist\r\nPlease place an 'X' where appropriate.\r\n\r\n```\r\n- [X] Added metadata and attribution information (https://duck.co/duckduckhack/metadata)\r\n- [X] Wrote test file and added to t/ directory (https://duck.co/duckduckhack/goodie_tests)\r\n- [X] Verified that instant answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)\r\n- [X] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)\r\n- [X] Tested cross-browser compatibility\r\n\r\n    Please let us know which browsers/devices you've tested on:\r\n    - Windows 8\r\n        - [] Google Chrome\r\n        - [] Firefox\r\n        - [] Opera\r\n        - [] IE 10\r\n\r\n    - Windows 7\r\n        - [] Google Chrome\r\n        - [] Firefox\r\n        - [] Opera\r\n        - [] IE 8\r\n        - [] IE 9\r\n        - [] IE 10\r\n\r\n    - Windows XP\r\n        - [] IE 7\r\n        - [] IE 8\r\n\r\n    - Mac OSX\r\n        - [X] Google Chrome\r\n        - [X] Firefox\r\n        - [] Opera\r\n        - [X] Safari\r\n\r\n    - iOS (iPhone)\r\n        - [X] Safari Mobile\r\n        - [] Google Chrome\r\n        - [] Opera\r\n\r\n    - iOS (iPad)\r\n        - [] Safari Mobile\r\n        - [] Google Chrome\r\n        - [] Opera\r\n\r\n    - Android\r\n        - [] Firefox\r\n        - [] Native Browser\r\n        - [] Google Chrome\r\n        - [] Opera\r\n\r\n```","created_at":"2015-03-19T10:07:02Z","updated_at":"2015-03-19T13:21:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2bbab6eda62818f8aab24cc7b8fa2f4bffce8e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1071/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1071/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1071/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/158df3037b3814f183698ffe2a9fa6a4dec1d02e","head":{"label":"afelicioni:afelicioni/brt-tracking","ref":"afelicioni/brt-tracking","sha":"158df3037b3814f183698ffe2a9fa6a4dec1d02e","user":{"login":"afelicioni","id":1416945,"avatar_url":"https://avatars.githubusercontent.com/u/1416945?v=3","gravatar_id":"","url":"https://api.github.com/users/afelicioni","html_url":"https://github.com/afelicioni","followers_url":"https://api.github.com/users/afelicioni/followers","following_url":"https://api.github.com/users/afelicioni/following{/other_user}","gists_url":"https://api.github.com/users/afelicioni/gists{/gist_id}","starred_url":"https://api.github.com/users/afelicioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afelicioni/subscriptions","organizations_url":"https://api.github.com/users/afelicioni/orgs","repos_url":"https://api.github.com/users/afelicioni/repos","events_url":"https://api.github.com/users/afelicioni/events{/privacy}","received_events_url":"https://api.github.com/users/afelicioni/received_events","type":"User","site_admin":false},"repo":{"id":32225784,"name":"zeroclickinfo-goodies","full_name":"afelicioni/zeroclickinfo-goodies","owner":{"login":"afelicioni","id":1416945,"avatar_url":"https://avatars.githubusercontent.com/u/1416945?v=3","gravatar_id":"","url":"https://api.github.com/users/afelicioni","html_url":"https://github.com/afelicioni","followers_url":"https://api.github.com/users/afelicioni/followers","following_url":"https://api.github.com/users/afelicioni/following{/other_user}","gists_url":"https://api.github.com/users/afelicioni/gists{/gist_id}","starred_url":"https://api.github.com/users/afelicioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afelicioni/subscriptions","organizations_url":"https://api.github.com/users/afelicioni/orgs","repos_url":"https://api.github.com/users/afelicioni/repos","events_url":"https://api.github.com/users/afelicioni/events{/privacy}","received_events_url":"https://api.github.com/users/afelicioni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/afelicioni/zeroclickinfo-goodies","description":"DuckDuckGo instant answer plugins based on Perl functions","fork":true,"url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies","forks_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/forks","keys_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/teams","hooks_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/hooks","issue_events_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/issues/events{/number}","events_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/events","assignees_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/assignees{/user}","branches_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/branches{/branch}","tags_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/tags","blobs_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/languages","stargazers_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/stargazers","contributors_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/contributors","subscribers_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/subscribers","subscription_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/subscription","commits_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/issues/comments{/number}","contents_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/contents/{+path}","compare_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/merges","archive_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/downloads","issues_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/issues{/number}","pulls_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/labels{/name}","releases_url":"https://api.github.com/repos/afelicioni/zeroclickinfo-goodies/releases{/id}","created_at":"2015-03-14T18:22:32Z","updated_at":"2015-03-19T09:34:14Z","pushed_at":"2015-03-19T09:34:12Z","git_url":"git://github.com/afelicioni/zeroclickinfo-goodies.git","ssh_url":"git@github.com:afelicioni/zeroclickinfo-goodies.git","clone_url":"https://github.com/afelicioni/zeroclickinfo-goodies.git","svn_url":"https://github.com/afelicioni/zeroclickinfo-goodies","homepage":"http://duckduckhack.com/","size":8878,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"duckduckgo:master","ref":"master","sha":"9484cc54e60123b4b5f05f07838b0c59f144ebfb","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":2164979,"name":"zeroclickinfo-goodies","full_name":"duckduckgo/zeroclickinfo-goodies","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies","description":"DuckDuckGo instant answer plugins based on Perl functions","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/releases{/id}","created_at":"2011-08-06T13:26:05Z","updated_at":"2015-03-18T22:50:22Z","pushed_at":"2015-03-18T22:50:20Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-goodies.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-goodies.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-goodies.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-goodies","homepage":"http://duckduckhack.com/","size":26322,"stargazers_count":254,"watchers_count":254,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":760,"mirror_url":null,"open_issues_count":89,"forks":760,"open_issues":89,"watchers":254,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1071"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1071"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1071"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1071/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1071/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1071/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/158df3037b3814f183698ffe2a9fa6a4dec1d02e"}}}}