{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/64485516","id":64485516,"diff_hunk":"@@ -82,6 +88,20 @@ def create_certificate\n       end\n       # rubocop:enable Metrics/AbcSize\n \n+      def revoke_old_certificates\n+        UI.important \"Revoking existing Push Certificates.\"\n+\n+        begin\n+          certificate.all.select { |crt| crt.name == PEM.config[:app_identifier] }.each { |crt| revoke(crt) }","path":"pem/lib/pem/manager.rb","position":21,"original_position":21,"commit_id":"12d93da007c22d2ca0467f199f3fc3b555441f3a","original_commit_id":"12d93da007c22d2ca0467f199f3fc3b555441f3a","user":{"login":"KrauseFx","id":869950,"avatar_url":"https://avatars.githubusercontent.com/u/869950?v=3","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"body":"This revoked all certificates even if they're still valid","created_at":"2016-05-24T22:22:01Z","updated_at":"2016-05-24T22:22:01Z","html_url":"https://github.com/fastlane/fastlane/pull/4814#discussion_r64485516","pull_request_url":"https://api.github.com/repos/fastlane/fastlane/pulls/4814","_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/64485516"},"html":{"href":"https://github.com/fastlane/fastlane/pull/4814#discussion_r64485516"},"pull_request":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/4814"}}},"pull_request":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/4814","id":71160065,"html_url":"https://github.com/fastlane/fastlane/pull/4814","diff_url":"https://github.com/fastlane/fastlane/pull/4814.diff","patch_url":"https://github.com/fastlane/fastlane/pull/4814.patch","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/4814","number":4814,"state":"open","locked":false,"title":"[pem] Revoke old certs","user":{"login":"bre7","id":3183848,"avatar_url":"https://avatars.githubusercontent.com/u/3183848?v=3","gravatar_id":"","url":"https://api.github.com/users/bre7","html_url":"https://github.com/bre7","followers_url":"https://api.github.com/users/bre7/followers","following_url":"https://api.github.com/users/bre7/following{/other_user}","gists_url":"https://api.github.com/users/bre7/gists{/gist_id}","starred_url":"https://api.github.com/users/bre7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bre7/subscriptions","organizations_url":"https://api.github.com/users/bre7/orgs","repos_url":"https://api.github.com/users/bre7/repos","events_url":"https://api.github.com/users/bre7/events{/privacy}","received_events_url":"https://api.github.com/users/bre7/received_events","type":"User","site_admin":false},"body":"Old certificates are revoked before the new ones are created.\r\n\r\nCloses #1754 \r\nCloses #4824 \r\n\r\n⚠️ Tests missing","created_at":"2016-05-24T05:34:26Z","updated_at":"2016-05-24T22:22:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f00d8dfddfb89daddd24872302d7e45e7a639b90","assignee":{"login":"KrauseFx","id":869950,"avatar_url":"https://avatars.githubusercontent.com/u/869950?v=3","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/fastlane/pulls/4814/commits","review_comments_url":"https://api.github.com/repos/fastlane/fastlane/pulls/4814/comments","review_comment_url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/4814/comments","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/12d93da007c22d2ca0467f199f3fc3b555441f3a","head":{"label":"bre7:pem-revoke-old","ref":"pem-revoke-old","sha":"12d93da007c22d2ca0467f199f3fc3b555441f3a","user":{"login":"bre7","id":3183848,"avatar_url":"https://avatars.githubusercontent.com/u/3183848?v=3","gravatar_id":"","url":"https://api.github.com/users/bre7","html_url":"https://github.com/bre7","followers_url":"https://api.github.com/users/bre7/followers","following_url":"https://api.github.com/users/bre7/following{/other_user}","gists_url":"https://api.github.com/users/bre7/gists{/gist_id}","starred_url":"https://api.github.com/users/bre7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bre7/subscriptions","organizations_url":"https://api.github.com/users/bre7/orgs","repos_url":"https://api.github.com/users/bre7/repos","events_url":"https://api.github.com/users/bre7/events{/privacy}","received_events_url":"https://api.github.com/users/bre7/received_events","type":"User","site_admin":false},"repo":{"id":59542399,"name":"fastlane","full_name":"bre7/fastlane","owner":{"login":"bre7","id":3183848,"avatar_url":"https://avatars.githubusercontent.com/u/3183848?v=3","gravatar_id":"","url":"https://api.github.com/users/bre7","html_url":"https://github.com/bre7","followers_url":"https://api.github.com/users/bre7/followers","following_url":"https://api.github.com/users/bre7/following{/other_user}","gists_url":"https://api.github.com/users/bre7/gists{/gist_id}","starred_url":"https://api.github.com/users/bre7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bre7/subscriptions","organizations_url":"https://api.github.com/users/bre7/orgs","repos_url":"https://api.github.com/users/bre7/repos","events_url":"https://api.github.com/users/bre7/events{/privacy}","received_events_url":"https://api.github.com/users/bre7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bre7/fastlane","description":"The easiest way to automate building and releasing your iOS and Android apps","fork":true,"url":"https://api.github.com/repos/bre7/fastlane","forks_url":"https://api.github.com/repos/bre7/fastlane/forks","keys_url":"https://api.github.com/repos/bre7/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bre7/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bre7/fastlane/teams","hooks_url":"https://api.github.com/repos/bre7/fastlane/hooks","issue_events_url":"https://api.github.com/repos/bre7/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/bre7/fastlane/events","assignees_url":"https://api.github.com/repos/bre7/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/bre7/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/bre7/fastlane/tags","blobs_url":"https://api.github.com/repos/bre7/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bre7/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bre7/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/bre7/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bre7/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/bre7/fastlane/languages","stargazers_url":"https://api.github.com/repos/bre7/fastlane/stargazers","contributors_url":"https://api.github.com/repos/bre7/fastlane/contributors","subscribers_url":"https://api.github.com/repos/bre7/fastlane/subscribers","subscription_url":"https://api.github.com/repos/bre7/fastlane/subscription","commits_url":"https://api.github.com/repos/bre7/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/bre7/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/bre7/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/bre7/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/bre7/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/bre7/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bre7/fastlane/merges","archive_url":"https://api.github.com/repos/bre7/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bre7/fastlane/downloads","issues_url":"https://api.github.com/repos/bre7/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/bre7/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/bre7/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/bre7/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bre7/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/bre7/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/bre7/fastlane/deployments","created_at":"2016-05-24T05:17:14Z","updated_at":"2016-05-24T05:17:19Z","pushed_at":"2016-05-24T05:50:22Z","git_url":"git://github.com/bre7/fastlane.git","ssh_url":"git@github.com:bre7/fastlane.git","clone_url":"https://github.com/bre7/fastlane.git","svn_url":"https://github.com/bre7/fastlane","homepage":"https://fastlane.tools","size":50035,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"fastlane:master","ref":"master","sha":"3af3d9141949e71557c3877125c3c958098bbefd","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":27442967,"name":"fastlane","full_name":"fastlane/fastlane","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/fastlane","description":"The easiest way to automate building and releasing your iOS and Android apps","fork":false,"url":"https://api.github.com/repos/fastlane/fastlane","forks_url":"https://api.github.com/repos/fastlane/fastlane/forks","keys_url":"https://api.github.com/repos/fastlane/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/fastlane/teams","hooks_url":"https://api.github.com/repos/fastlane/fastlane/hooks","issue_events_url":"https://api.github.com/repos/fastlane/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/fastlane/events","assignees_url":"https://api.github.com/repos/fastlane/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/fastlane/tags","blobs_url":"https://api.github.com/repos/fastlane/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/fastlane/languages","stargazers_url":"https://api.github.com/repos/fastlane/fastlane/stargazers","contributors_url":"https://api.github.com/repos/fastlane/fastlane/contributors","subscribers_url":"https://api.github.com/repos/fastlane/fastlane/subscribers","subscription_url":"https://api.github.com/repos/fastlane/fastlane/subscription","commits_url":"https://api.github.com/repos/fastlane/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/fastlane/merges","archive_url":"https://api.github.com/repos/fastlane/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/fastlane/downloads","issues_url":"https://api.github.com/repos/fastlane/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/fastlane/fastlane/deployments","created_at":"2014-12-02T17:00:38Z","updated_at":"2016-05-24T20:19:19Z","pushed_at":"2016-05-24T21:38:49Z","git_url":"git://github.com/fastlane/fastlane.git","ssh_url":"git@github.com:fastlane/fastlane.git","clone_url":"https://github.com/fastlane/fastlane.git","svn_url":"https://github.com/fastlane/fastlane","homepage":"https://fastlane.tools","size":58222,"stargazers_count":8030,"watchers_count":8030,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1080,"mirror_url":null,"open_issues_count":720,"forks":1080,"open_issues":720,"watchers":8030,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/4814"},"html":{"href":"https://github.com/fastlane/fastlane/pull/4814"},"issue":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/4814"},"comments":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/4814/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/4814/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/4814/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/fastlane/statuses/12d93da007c22d2ca0467f199f3fc3b555441f3a"}}}}
{"actor":{"display_login":"KrauseFx"}}