{"action":"closed","number":169,"pull_request":{"url":"https://api.github.com/repos/bellycard/napa/pulls/169","id":26481008,"html_url":"https://github.com/bellycard/napa/pull/169","diff_url":"https://github.com/bellycard/napa/pull/169.diff","patch_url":"https://github.com/bellycard/napa/pull/169.patch","issue_url":"https://api.github.com/repos/bellycard/napa/issues/169","number":169,"state":"closed","locked":false,"title":"Sanitize params","user":{"login":"ywong19","id":2077895,"avatar_url":"https://avatars.githubusercontent.com/u/2077895?v=3","gravatar_id":"","url":"https://api.github.com/users/ywong19","html_url":"https://github.com/ywong19","followers_url":"https://api.github.com/users/ywong19/followers","following_url":"https://api.github.com/users/ywong19/following{/other_user}","gists_url":"https://api.github.com/users/ywong19/gists{/gist_id}","starred_url":"https://api.github.com/users/ywong19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywong19/subscriptions","organizations_url":"https://api.github.com/users/ywong19/orgs","repos_url":"https://api.github.com/users/ywong19/repos","events_url":"https://api.github.com/users/ywong19/events{/privacy}","received_events_url":"https://api.github.com/users/ywong19/received_events","type":"User","site_admin":false},"body":"Allows us to sanitize params from our logs. `filter_params` is configurable (see below)\r\n\r\nMakes use of ActionDispatch::Http::FilterParameters. \r\n\r\n@bellycard/platform \r\n\r\n----\r\nUsage: In `config/initializers/logger.rb`, add this line:\r\n```ruby\r\nNapa::ParamSanitizer.filter_params = [:password, :card_number, :cvv, :password_confirmation]\r\n```\r\nReplace array with the parameters that you want filtered out from your logs","created_at":"2014-12-22T21:08:14Z","updated_at":"2015-01-07T23:33:42Z","closed_at":"2015-01-07T23:33:42Z","merged_at":"2015-01-07T23:33:42Z","merge_commit_sha":"9035bae1040ed5e6a691c3a38d1f7e70dcf09c73","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bellycard/napa/pulls/169/commits","review_comments_url":"https://api.github.com/repos/bellycard/napa/pulls/169/comments","review_comment_url":"https://api.github.com/repos/bellycard/napa/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bellycard/napa/issues/169/comments","statuses_url":"https://api.github.com/repos/bellycard/napa/statuses/76b4045f8d3cb137b946dfe3c7a0d1982e82ffa7","head":{"label":"ywong19:sanitize-params","ref":"sanitize-params","sha":"76b4045f8d3cb137b946dfe3c7a0d1982e82ffa7","user":{"login":"ywong19","id":2077895,"avatar_url":"https://avatars.githubusercontent.com/u/2077895?v=3","gravatar_id":"","url":"https://api.github.com/users/ywong19","html_url":"https://github.com/ywong19","followers_url":"https://api.github.com/users/ywong19/followers","following_url":"https://api.github.com/users/ywong19/following{/other_user}","gists_url":"https://api.github.com/users/ywong19/gists{/gist_id}","starred_url":"https://api.github.com/users/ywong19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywong19/subscriptions","organizations_url":"https://api.github.com/users/ywong19/orgs","repos_url":"https://api.github.com/users/ywong19/repos","events_url":"https://api.github.com/users/ywong19/events{/privacy}","received_events_url":"https://api.github.com/users/ywong19/received_events","type":"User","site_admin":false},"repo":{"id":23085436,"name":"napa","full_name":"ywong19/napa","owner":{"login":"ywong19","id":2077895,"avatar_url":"https://avatars.githubusercontent.com/u/2077895?v=3","gravatar_id":"","url":"https://api.github.com/users/ywong19","html_url":"https://github.com/ywong19","followers_url":"https://api.github.com/users/ywong19/followers","following_url":"https://api.github.com/users/ywong19/following{/other_user}","gists_url":"https://api.github.com/users/ywong19/gists{/gist_id}","starred_url":"https://api.github.com/users/ywong19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywong19/subscriptions","organizations_url":"https://api.github.com/users/ywong19/orgs","repos_url":"https://api.github.com/users/ywong19/repos","events_url":"https://api.github.com/users/ywong19/events{/privacy}","received_events_url":"https://api.github.com/users/ywong19/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ywong19/napa","description":"A simple framework for building APIs with Grape","fork":true,"url":"https://api.github.com/repos/ywong19/napa","forks_url":"https://api.github.com/repos/ywong19/napa/forks","keys_url":"https://api.github.com/repos/ywong19/napa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ywong19/napa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ywong19/napa/teams","hooks_url":"https://api.github.com/repos/ywong19/napa/hooks","issue_events_url":"https://api.github.com/repos/ywong19/napa/issues/events{/number}","events_url":"https://api.github.com/repos/ywong19/napa/events","assignees_url":"https://api.github.com/repos/ywong19/napa/assignees{/user}","branches_url":"https://api.github.com/repos/ywong19/napa/branches{/branch}","tags_url":"https://api.github.com/repos/ywong19/napa/tags","blobs_url":"https://api.github.com/repos/ywong19/napa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ywong19/napa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ywong19/napa/git/refs{/sha}","trees_url":"https://api.github.com/repos/ywong19/napa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ywong19/napa/statuses/{sha}","languages_url":"https://api.github.com/repos/ywong19/napa/languages","stargazers_url":"https://api.github.com/repos/ywong19/napa/stargazers","contributors_url":"https://api.github.com/repos/ywong19/napa/contributors","subscribers_url":"https://api.github.com/repos/ywong19/napa/subscribers","subscription_url":"https://api.github.com/repos/ywong19/napa/subscription","commits_url":"https://api.github.com/repos/ywong19/napa/commits{/sha}","git_commits_url":"https://api.github.com/repos/ywong19/napa/git/commits{/sha}","comments_url":"https://api.github.com/repos/ywong19/napa/comments{/number}","issue_comment_url":"https://api.github.com/repos/ywong19/napa/issues/comments/{number}","contents_url":"https://api.github.com/repos/ywong19/napa/contents/{+path}","compare_url":"https://api.github.com/repos/ywong19/napa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ywong19/napa/merges","archive_url":"https://api.github.com/repos/ywong19/napa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ywong19/napa/downloads","issues_url":"https://api.github.com/repos/ywong19/napa/issues{/number}","pulls_url":"https://api.github.com/repos/ywong19/napa/pulls{/number}","milestones_url":"https://api.github.com/repos/ywong19/napa/milestones{/number}","notifications_url":"https://api.github.com/repos/ywong19/napa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ywong19/napa/labels{/name}","releases_url":"https://api.github.com/repos/ywong19/napa/releases{/id}","created_at":"2014-08-18T20:28:01Z","updated_at":"2015-01-07T23:33:26Z","pushed_at":"2015-01-07T23:33:25Z","git_url":"git://github.com/ywong19/napa.git","ssh_url":"git@github.com:ywong19/napa.git","clone_url":"https://github.com/ywong19/napa.git","svn_url":"https://github.com/ywong19/napa","homepage":null,"size":451,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"bellycard:master","ref":"master","sha":"a1af10222aa011b1537e0935dc930637589a5f11","user":{"login":"bellycard","id":1090217,"avatar_url":"https://avatars.githubusercontent.com/u/1090217?v=3","gravatar_id":"","url":"https://api.github.com/users/bellycard","html_url":"https://github.com/bellycard","followers_url":"https://api.github.com/users/bellycard/followers","following_url":"https://api.github.com/users/bellycard/following{/other_user}","gists_url":"https://api.github.com/users/bellycard/gists{/gist_id}","starred_url":"https://api.github.com/users/bellycard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bellycard/subscriptions","organizations_url":"https://api.github.com/users/bellycard/orgs","repos_url":"https://api.github.com/users/bellycard/repos","events_url":"https://api.github.com/users/bellycard/events{/privacy}","received_events_url":"https://api.github.com/users/bellycard/received_events","type":"Organization","site_admin":false},"repo":{"id":13999902,"name":"napa","full_name":"bellycard/napa","owner":{"login":"bellycard","id":1090217,"avatar_url":"https://avatars.githubusercontent.com/u/1090217?v=3","gravatar_id":"","url":"https://api.github.com/users/bellycard","html_url":"https://github.com/bellycard","followers_url":"https://api.github.com/users/bellycard/followers","following_url":"https://api.github.com/users/bellycard/following{/other_user}","gists_url":"https://api.github.com/users/bellycard/gists{/gist_id}","starred_url":"https://api.github.com/users/bellycard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bellycard/subscriptions","organizations_url":"https://api.github.com/users/bellycard/orgs","repos_url":"https://api.github.com/users/bellycard/repos","events_url":"https://api.github.com/users/bellycard/events{/privacy}","received_events_url":"https://api.github.com/users/bellycard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bellycard/napa","description":"A simple framework for building APIs with Grape","fork":false,"url":"https://api.github.com/repos/bellycard/napa","forks_url":"https://api.github.com/repos/bellycard/napa/forks","keys_url":"https://api.github.com/repos/bellycard/napa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bellycard/napa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bellycard/napa/teams","hooks_url":"https://api.github.com/repos/bellycard/napa/hooks","issue_events_url":"https://api.github.com/repos/bellycard/napa/issues/events{/number}","events_url":"https://api.github.com/repos/bellycard/napa/events","assignees_url":"https://api.github.com/repos/bellycard/napa/assignees{/user}","branches_url":"https://api.github.com/repos/bellycard/napa/branches{/branch}","tags_url":"https://api.github.com/repos/bellycard/napa/tags","blobs_url":"https://api.github.com/repos/bellycard/napa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bellycard/napa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bellycard/napa/git/refs{/sha}","trees_url":"https://api.github.com/repos/bellycard/napa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bellycard/napa/statuses/{sha}","languages_url":"https://api.github.com/repos/bellycard/napa/languages","stargazers_url":"https://api.github.com/repos/bellycard/napa/stargazers","contributors_url":"https://api.github.com/repos/bellycard/napa/contributors","subscribers_url":"https://api.github.com/repos/bellycard/napa/subscribers","subscription_url":"https://api.github.com/repos/bellycard/napa/subscription","commits_url":"https://api.github.com/repos/bellycard/napa/commits{/sha}","git_commits_url":"https://api.github.com/repos/bellycard/napa/git/commits{/sha}","comments_url":"https://api.github.com/repos/bellycard/napa/comments{/number}","issue_comment_url":"https://api.github.com/repos/bellycard/napa/issues/comments/{number}","contents_url":"https://api.github.com/repos/bellycard/napa/contents/{+path}","compare_url":"https://api.github.com/repos/bellycard/napa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bellycard/napa/merges","archive_url":"https://api.github.com/repos/bellycard/napa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bellycard/napa/downloads","issues_url":"https://api.github.com/repos/bellycard/napa/issues{/number}","pulls_url":"https://api.github.com/repos/bellycard/napa/pulls{/number}","milestones_url":"https://api.github.com/repos/bellycard/napa/milestones{/number}","notifications_url":"https://api.github.com/repos/bellycard/napa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bellycard/napa/labels{/name}","releases_url":"https://api.github.com/repos/bellycard/napa/releases{/id}","created_at":"2013-10-30T21:15:59Z","updated_at":"2015-01-05T02:51:23Z","pushed_at":"2015-01-07T23:33:42Z","git_url":"git://github.com/bellycard/napa.git","ssh_url":"git@github.com:bellycard/napa.git","clone_url":"https://github.com/bellycard/napa.git","svn_url":"https://github.com/bellycard/napa","homepage":null,"size":1209,"stargazers_count":69,"watchers_count":69,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":9,"forks":42,"open_issues":9,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bellycard/napa/pulls/169"},"html":{"href":"https://github.com/bellycard/napa/pull/169"},"issue":{"href":"https://api.github.com/repos/bellycard/napa/issues/169"},"comments":{"href":"https://api.github.com/repos/bellycard/napa/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/bellycard/napa/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/bellycard/napa/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bellycard/napa/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/bellycard/napa/statuses/76b4045f8d3cb137b946dfe3c7a0d1982e82ffa7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ywong19","id":2077895,"avatar_url":"https://avatars.githubusercontent.com/u/2077895?v=3","gravatar_id":"","url":"https://api.github.com/users/ywong19","html_url":"https://github.com/ywong19","followers_url":"https://api.github.com/users/ywong19/followers","following_url":"https://api.github.com/users/ywong19/following{/other_user}","gists_url":"https://api.github.com/users/ywong19/gists{/gist_id}","starred_url":"https://api.github.com/users/ywong19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywong19/subscriptions","organizations_url":"https://api.github.com/users/ywong19/orgs","repos_url":"https://api.github.com/users/ywong19/repos","events_url":"https://api.github.com/users/ywong19/events{/privacy}","received_events_url":"https://api.github.com/users/ywong19/received_events","type":"User","site_admin":false},"comments":13,"review_comments":1,"commits":2,"additions":63,"deletions":5,"changed_files":5}}