{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/55936380","id":55936380,"diff_hunk":"@@ -0,0 +1,35 @@\n+module Spaceship\n+  module Tunes\n+    # Represents the information about the generation of promocodes\n+    class AppVersionGeneratedPromocodes < TunesBase\n+      # @return\n+      attr_reader :effective_date\n+      attr_reader :expiration_date\n+      attr_reader :username\n+      # the AppVersionPromocodes this relates to\n+      attr_reader :version\n+      # Array of String\n+      attr_reader :codes\n+\n+      attr_mapping({\n+        'effectiveDate' => :effective_date,\n+        'expirationDate' => :expiration_date,\n+        'username' => :username\n+      })\n+\n+      class << self\n+        # Create a new object based on a hash.\n+        # This is used to create a new object based on the server response.\n+        def factory(attrs)\n+          obj = self.new(attrs)\n+          return obj\n+        end\n+      end\n+\n+      def setup\n+        @version = Tunes::AppVersionPromocodes.factory(raw_data['version'])\n+        @codes = raw_data['codes']\n+      end\n+    end\n+  end\n+end","path":"spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb","position":35,"original_position":35,"commit_id":"3f0c85d902237c1bb44e064a6d1d70653389e4c8","original_commit_id":"3f0c85d902237c1bb44e064a6d1d70653389e4c8","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Final newline missing.","created_at":"2016-03-13T12:24:41Z","updated_at":"2016-03-13T12:24:41Z","html_url":"https://github.com/fastlane/fastlane/pull/3713#discussion_r55936380","pull_request_url":"https://api.github.com/repos/fastlane/fastlane/pulls/3713","_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/55936380"},"html":{"href":"https://github.com/fastlane/fastlane/pull/3713#discussion_r55936380"},"pull_request":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/3713"}}},"pull_request":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/3713","id":62669660,"html_url":"https://github.com/fastlane/fastlane/pull/3713","diff_url":"https://github.com/fastlane/fastlane/pull/3713.diff","patch_url":"https://github.com/fastlane/fastlane/pull/3713.patch","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/3713","number":3713,"state":"open","locked":false,"title":"Add the ability to fetch promocodes","user":{"login":"lacostej","id":24282,"avatar_url":"https://avatars.githubusercontent.com/u/24282?v=3","gravatar_id":"","url":"https://api.github.com/users/lacostej","html_url":"https://github.com/lacostej","followers_url":"https://api.github.com/users/lacostej/followers","following_url":"https://api.github.com/users/lacostej/following{/other_user}","gists_url":"https://api.github.com/users/lacostej/gists{/gist_id}","starred_url":"https://api.github.com/users/lacostej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacostej/subscriptions","organizations_url":"https://api.github.com/users/lacostej/orgs","repos_url":"https://api.github.com/users/lacostej/repos","events_url":"https://api.github.com/users/lacostej/events{/privacy}","received_events_url":"https://api.github.com/users/lacostej/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-03-13T12:24:32Z","updated_at":"2016-03-13T12:24:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d9ec34531797885ebdf13a4538d07c8869fec87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/fastlane/pulls/3713/commits","review_comments_url":"https://api.github.com/repos/fastlane/fastlane/pulls/3713/comments","review_comment_url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/3713/comments","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/3f0c85d902237c1bb44e064a6d1d70653389e4c8","head":{"label":"lacostej:promo_codes","ref":"promo_codes","sha":"3f0c85d902237c1bb44e064a6d1d70653389e4c8","user":{"login":"lacostej","id":24282,"avatar_url":"https://avatars.githubusercontent.com/u/24282?v=3","gravatar_id":"","url":"https://api.github.com/users/lacostej","html_url":"https://github.com/lacostej","followers_url":"https://api.github.com/users/lacostej/followers","following_url":"https://api.github.com/users/lacostej/following{/other_user}","gists_url":"https://api.github.com/users/lacostej/gists{/gist_id}","starred_url":"https://api.github.com/users/lacostej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacostej/subscriptions","organizations_url":"https://api.github.com/users/lacostej/orgs","repos_url":"https://api.github.com/users/lacostej/repos","events_url":"https://api.github.com/users/lacostej/events{/privacy}","received_events_url":"https://api.github.com/users/lacostej/received_events","type":"User","site_admin":false},"repo":{"id":41957907,"name":"fastlane","full_name":"lacostej/fastlane","owner":{"login":"lacostej","id":24282,"avatar_url":"https://avatars.githubusercontent.com/u/24282?v=3","gravatar_id":"","url":"https://api.github.com/users/lacostej","html_url":"https://github.com/lacostej","followers_url":"https://api.github.com/users/lacostej/followers","following_url":"https://api.github.com/users/lacostej/following{/other_user}","gists_url":"https://api.github.com/users/lacostej/gists{/gist_id}","starred_url":"https://api.github.com/users/lacostej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacostej/subscriptions","organizations_url":"https://api.github.com/users/lacostej/orgs","repos_url":"https://api.github.com/users/lacostej/repos","events_url":"https://api.github.com/users/lacostej/events{/privacy}","received_events_url":"https://api.github.com/users/lacostej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lacostej/fastlane","description":"Connect all iOS deployment tools into one streamlined workflow","fork":true,"url":"https://api.github.com/repos/lacostej/fastlane","forks_url":"https://api.github.com/repos/lacostej/fastlane/forks","keys_url":"https://api.github.com/repos/lacostej/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lacostej/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lacostej/fastlane/teams","hooks_url":"https://api.github.com/repos/lacostej/fastlane/hooks","issue_events_url":"https://api.github.com/repos/lacostej/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/lacostej/fastlane/events","assignees_url":"https://api.github.com/repos/lacostej/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/lacostej/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/lacostej/fastlane/tags","blobs_url":"https://api.github.com/repos/lacostej/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lacostej/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lacostej/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/lacostej/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lacostej/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/lacostej/fastlane/languages","stargazers_url":"https://api.github.com/repos/lacostej/fastlane/stargazers","contributors_url":"https://api.github.com/repos/lacostej/fastlane/contributors","subscribers_url":"https://api.github.com/repos/lacostej/fastlane/subscribers","subscription_url":"https://api.github.com/repos/lacostej/fastlane/subscription","commits_url":"https://api.github.com/repos/lacostej/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/lacostej/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/lacostej/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/lacostej/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/lacostej/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/lacostej/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lacostej/fastlane/merges","archive_url":"https://api.github.com/repos/lacostej/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lacostej/fastlane/downloads","issues_url":"https://api.github.com/repos/lacostej/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/lacostej/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/lacostej/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/lacostej/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lacostej/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/lacostej/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/lacostej/fastlane/deployments","created_at":"2015-09-05T11:00:25Z","updated_at":"2016-03-11T12:57:44Z","pushed_at":"2016-03-13T12:22:46Z","git_url":"git://github.com/lacostej/fastlane.git","ssh_url":"git@github.com:lacostej/fastlane.git","clone_url":"https://github.com/lacostej/fastlane.git","svn_url":"https://github.com/lacostej/fastlane","homepage":"https://fastlane.tools","size":47949,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"fastlane:master","ref":"master","sha":"d88a12e4e6ed05d11f2c14f7df6e9576e6f5944a","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":"Connect all iOS and Android deployment tools into one streamlined workflow","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-03-13T10:55:16Z","pushed_at":"2016-03-13T12:24:32Z","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":50918,"stargazers_count":6199,"watchers_count":6199,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":745,"mirror_url":null,"open_issues_count":741,"forks":745,"open_issues":741,"watchers":6199,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/3713"},"html":{"href":"https://github.com/fastlane/fastlane/pull/3713"},"issue":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/3713"},"comments":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/3713/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/3713/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/3713/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/fastlane/statuses/3f0c85d902237c1bb44e064a6d1d70653389e4c8"}}}}