GitHub PullRequestReviewCommentEvent at 2014-08-25 15:48:00
Repository: cfgov-refresh
Actor: Scotchester
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments/16662422","id":16662422,"diff_hunk":"@@ -20,3 +20,27 @@\n     {% endif %}\n     {{ share_twitter_url }}\n {% endmacro %}\n+\n+{# Format a phone number to `(XXX) XXX - XXXX` when given `XXXXXXXXXX` #}\n+{% macro format_phone(number) %}\n+    {%- for char in number -%}\n+        {{- '(' if loop.index == 1 -}}\n+        {{ char }}\n+        {{- ') ' if loop.index == 3 -}}\n+        {{- ' - ' if loop.index == 6 -}}\n+    {%- endfor %}\n+{% endmacro %}\n+\n+{# Format address to:\n+   ```\n+   Line 1\n+   Line 2 City, State Zip\n+   ```\n+   when given a contact post type #}\n+{% macro format_address(contact) %}\n+    {{ contact.street if contact.street != 'None' }}<br>\n+    {{ contact.street_2 if contact.street_2 != 'None' }}\n+    {{ contact.city + ',' if contact.city != 'None' }}\n+    {{ contact.state if contact.state != 'None' }}\n+    {{ contact.zip_code if contact.zip_code != 'None' }}\n+{% endmacro %}","path":"_layouts/macros.html","position":27,"original_position":27,"commit_id":"f772e48687f5d543845763b178f2f7baffbeabd6","original_commit_id":"f772e48687f5d543845763b178f2f7baffbeabd6","user":{"login":"Scotchester","id":1044670,"avatar_url":"https://avatars.githubusercontent.com/u/1044670?v=2","gravatar_id":"96523fa9674fbd6b4f2174c7da522b44","url":"https://api.github.com/users/Scotchester","html_url":"https://github.com/Scotchester","followers_url":"https://api.github.com/users/Scotchester/followers","following_url":"https://api.github.com/users/Scotchester/following{/other_user}","gists_url":"https://api.github.com/users/Scotchester/gists{/gist_id}","starred_url":"https://api.github.com/users/Scotchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scotchester/subscriptions","organizations_url":"https://api.github.com/users/Scotchester/orgs","repos_url":"https://api.github.com/users/Scotchester/repos","events_url":"https://api.github.com/users/Scotchester/events{/privacy}","received_events_url":"https://api.github.com/users/Scotchester/received_events","type":"User","site_admin":false},"body":"Ah, I see you did this [in `contact-list.html`](https://github.com/cfpb/cfgov-refresh/pull/124/files#diff-e8c1049f4a3ba7d1a3834b9508a7e017R47)","created_at":"2014-08-25T15:48:00Z","updated_at":"2014-08-25T15:48:00Z","html_url":"https://github.com/cfpb/cfgov-refresh/pull/124#discussion_r16662422","pull_request_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments/16662422"},"html":{"href":"https://github.com/cfpb/cfgov-refresh/pull/124#discussion_r16662422"},"pull_request":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/124","id":20201949,"html_url":"https://github.com/cfpb/cfgov-refresh/pull/124","diff_url":"https://github.com/cfpb/cfgov-refresh/pull/124.diff","patch_url":"https://github.com/cfpb/cfgov-refresh/pull/124.patch","issue_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/124","number":124,"state":"open","locked":false,"title":"Contact indexing","user":{"login":"himedlooff","id":1093373,"avatar_url":"https://avatars.githubusercontent.com/u/1093373?v=2","gravatar_id":"28e73d03cf42c9dcf15a3ec0a26fe8c6","url":"https://api.github.com/users/himedlooff","html_url":"https://github.com/himedlooff","followers_url":"https://api.github.com/users/himedlooff/followers","following_url":"https://api.github.com/users/himedlooff/following{/other_user}","gists_url":"https://api.github.com/users/himedlooff/gists{/gist_id}","starred_url":"https://api.github.com/users/himedlooff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himedlooff/subscriptions","organizations_url":"https://api.github.com/users/himedlooff/orgs","repos_url":"https://api.github.com/users/himedlooff/repos","events_url":"https://api.github.com/users/himedlooff/events{/privacy}","received_events_url":"https://api.github.com/users/himedlooff/received_events","type":"User","site_admin":false},"body":"This adds the indexing needed to grab the contacts and also updates the template to use the real data.","created_at":"2014-08-22T23:05:46Z","updated_at":"2014-08-25T15:48:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a46181a92df4a3b556be18c9ac9d65499890917","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/124/commits","review_comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/124/comments","review_comment_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/124/comments","statuses_url":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/f772e48687f5d543845763b178f2f7baffbeabd6","head":{"label":"himedlooff:contact-indexing","ref":"contact-indexing","sha":"f772e48687f5d543845763b178f2f7baffbeabd6","user":{"login":"himedlooff","id":1093373,"avatar_url":"https://avatars.githubusercontent.com/u/1093373?v=2","gravatar_id":"28e73d03cf42c9dcf15a3ec0a26fe8c6","url":"https://api.github.com/users/himedlooff","html_url":"https://github.com/himedlooff","followers_url":"https://api.github.com/users/himedlooff/followers","following_url":"https://api.github.com/users/himedlooff/following{/other_user}","gists_url":"https://api.github.com/users/himedlooff/gists{/gist_id}","starred_url":"https://api.github.com/users/himedlooff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himedlooff/subscriptions","organizations_url":"https://api.github.com/users/himedlooff/orgs","repos_url":"https://api.github.com/users/himedlooff/repos","events_url":"https://api.github.com/users/himedlooff/events{/privacy}","received_events_url":"https://api.github.com/users/himedlooff/received_events","type":"User","site_admin":false},"repo":{"id":19010199,"name":"cfgov-refresh","full_name":"himedlooff/cfgov-refresh","owner":{"login":"himedlooff","id":1093373,"avatar_url":"https://avatars.githubusercontent.com/u/1093373?v=2","gravatar_id":"28e73d03cf42c9dcf15a3ec0a26fe8c6","url":"https://api.github.com/users/himedlooff","html_url":"https://github.com/himedlooff","followers_url":"https://api.github.com/users/himedlooff/followers","following_url":"https://api.github.com/users/himedlooff/following{/other_user}","gists_url":"https://api.github.com/users/himedlooff/gists{/gist_id}","starred_url":"https://api.github.com/users/himedlooff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himedlooff/subscriptions","organizations_url":"https://api.github.com/users/himedlooff/orgs","repos_url":"https://api.github.com/users/himedlooff/repos","events_url":"https://api.github.com/users/himedlooff/events{/privacy}","received_events_url":"https://api.github.com/users/himedlooff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/himedlooff/cfgov-refresh","description":"","fork":true,"url":"https://api.github.com/repos/himedlooff/cfgov-refresh","forks_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/forks","keys_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/teams","hooks_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/hooks","issue_events_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/issues/events{/number}","events_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/events","assignees_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/assignees{/user}","branches_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/branches{/branch}","tags_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/tags","blobs_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/statuses/{sha}","languages_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/languages","stargazers_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/stargazers","contributors_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/contributors","subscribers_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/subscribers","subscription_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/subscription","commits_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/issues/comments/{number}","contents_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/contents/{+path}","compare_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/merges","archive_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/downloads","issues_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/issues{/number}","pulls_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/pulls{/number}","milestones_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/milestones{/number}","notifications_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/labels{/name}","releases_url":"https://api.github.com/repos/himedlooff/cfgov-refresh/releases{/id}","created_at":"2014-04-21T23:21:28Z","updated_at":"2014-06-25T13:25:39Z","pushed_at":"2014-08-22T23:05:10Z","git_url":"git://github.com/himedlooff/cfgov-refresh.git","ssh_url":"git@github.com:himedlooff/cfgov-refresh.git","clone_url":"https://github.com/himedlooff/cfgov-refresh.git","svn_url":"https://github.com/himedlooff/cfgov-refresh","homepage":"http://himedlooff.github.io/cfgov-refresh/","size":13154,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"cfpb:gh-pages","ref":"gh-pages","sha":"983827faa8f63478bbb58e7115d92c814488bde0","user":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=2","gravatar_id":"a4607dc213b43e6673dc9741f8d0df7c","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"repo":{"id":18852566,"name":"cfgov-refresh","full_name":"cfpb/cfgov-refresh","owner":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=2","gravatar_id":"a4607dc213b43e6673dc9741f8d0df7c","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cfpb/cfgov-refresh","description":"","fork":false,"url":"https://api.github.com/repos/cfpb/cfgov-refresh","forks_url":"https://api.github.com/repos/cfpb/cfgov-refresh/forks","keys_url":"https://api.github.com/repos/cfpb/cfgov-refresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfpb/cfgov-refresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfpb/cfgov-refresh/teams","hooks_url":"https://api.github.com/repos/cfpb/cfgov-refresh/hooks","issue_events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/events{/number}","events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/events","assignees_url":"https://api.github.com/repos/cfpb/cfgov-refresh/assignees{/user}","branches_url":"https://api.github.com/repos/cfpb/cfgov-refresh/branches{/branch}","tags_url":"https://api.github.com/repos/cfpb/cfgov-refresh/tags","blobs_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/{sha}","languages_url":"https://api.github.com/repos/cfpb/cfgov-refresh/languages","stargazers_url":"https://api.github.com/repos/cfpb/cfgov-refresh/stargazers","contributors_url":"https://api.github.com/repos/cfpb/cfgov-refresh/contributors","subscribers_url":"https://api.github.com/repos/cfpb/cfgov-refresh/subscribers","subscription_url":"https://api.github.com/repos/cfpb/cfgov-refresh/subscription","commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/comments/{number}","contents_url":"https://api.github.com/repos/cfpb/cfgov-refresh/contents/{+path}","compare_url":"https://api.github.com/repos/cfpb/cfgov-refresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfpb/cfgov-refresh/merges","archive_url":"https://api.github.com/repos/cfpb/cfgov-refresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfpb/cfgov-refresh/downloads","issues_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues{/number}","pulls_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls{/number}","milestones_url":"https://api.github.com/repos/cfpb/cfgov-refresh/milestones{/number}","notifications_url":"https://api.github.com/repos/cfpb/cfgov-refresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfpb/cfgov-refresh/labels{/name}","releases_url":"https://api.github.com/repos/cfpb/cfgov-refresh/releases{/id}","created_at":"2014-04-16T19:22:03Z","updated_at":"2014-07-02T22:24:01Z","pushed_at":"2014-08-21T20:40:09Z","git_url":"git://github.com/cfpb/cfgov-refresh.git","ssh_url":"git@github.com:cfpb/cfgov-refresh.git","clone_url":"https://github.com/cfpb/cfgov-refresh.git","svn_url":"https://github.com/cfpb/cfgov-refresh","homepage":"http://cfpb.github.io/cfgov-refresh/","size":10069,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":5,"mirror_url":null,"open_issues_count":7,"forks":5,"open_issues":7,"watchers":2,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/124"},"html":{"href":"https://github.com/cfpb/cfgov-refresh/pull/124"},"issue":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/124"},"comments":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/f772e48687f5d543845763b178f2f7baffbeabd6"}}}}