{"action":"created","comment":{"url":"https://api.github.com/repos/bitpay/copay/pulls/comments/90027998","pull_request_review_id":10547495,"id":90027998,"diff_hunk":"@@ -1,103 +1,199 @@\n 'use strict';\n \n-angular.module('copayApp.controllers').controller('confirmController', function($rootScope, $scope, $interval, $filter, $timeout, $ionicScrollDelegate, gettextCatalog, walletService, platformInfo, lodash, configService, rateService, $stateParams, $window, $state, $log, profileService, bitcore, gettext, txFormatService, ongoingProcess, $ionicModal, popupService, $ionicHistory, $ionicConfig, payproService) {\n+angular.module('copayApp.controllers').controller('confirmController', function($rootScope, $scope, $interval, $filter, $timeout, $ionicScrollDelegate, gettextCatalog, walletService, platformInfo, lodash, configService, rateService, $stateParams, $window, $state, $log, profileService, bitcore, gettext, txFormatService, ongoingProcess, $ionicModal, popupService, $ionicHistory, $ionicConfig, payproService, feeService) {\n   var cachedTxp = {};\n+  var amountStr;\n+  var toAmount;\n   var isChromeApp = platformInfo.isChromeApp;\n   var countDown = null;\n+  var cachedSendMax = {};\n   $scope.isCordova = platformInfo.isCordova;\n   $ionicConfig.views.swipeBackEnabled(false);\n \n   $scope.$on(\"$ionicView.beforeEnter\", function(event, data) {\n+    toAmount = data.stateParams.toAmount;\n+    cachedSendMax = {};\n+    $scope.useSendMax = data.stateParams.useSendMax == 'true' ? true : false;\n     $scope.isWallet = data.stateParams.isWallet;\n     $scope.cardId = data.stateParams.cardId;\n-    $scope.toAmount = data.stateParams.toAmount;\n     $scope.toAddress = data.stateParams.toAddress;\n     $scope.toName = data.stateParams.toName;\n     $scope.toEmail = data.stateParams.toEmail;\n     $scope.description = data.stateParams.description;\n     $scope.paypro = data.stateParams.paypro;\n+    $scope.insufficientFunds = false;\n+    $scope.noMatchingWallet = false;\n     $scope.paymentExpired = {\n       value: false\n     };\n     $scope.remainingTimeStr = {\n       value: null\n     };\n-    initConfirm();\n-  });\n-\n-  var initConfirm = function() {\n-    // TODO (URL , etc)\n-    if (!$scope.toAddress || !$scope.toAmount) {\n-      $log.error('Bad params at amount');\n-      throw ('bad params');\n-    }\n \n     var config = configService.getSync().wallet;\n     $scope.feeLevel = config.settings && config.settings.feeLevel ? config.settings.feeLevel : 'normal';\n+    $scope.network = (new bitcore.Address($scope.toAddress)).network.name;\n+    setwallets();\n+  });\n \n-    $scope.toAmount = parseInt($scope.toAmount);\n-    $scope.amountStr = txFormatService.formatAmountStr($scope.toAmount);\n-    $scope.displayAmount = getDisplayAmount($scope.amountStr);\n-    $scope.displayUnit = getDisplayUnit($scope.amountStr);\n-\n-    var networkName = (new bitcore.Address($scope.toAddress)).network.name;\n-    $scope.network = networkName;\n-\n-    $scope.insuffientFunds = false;\n-    $scope.noMatchingWallet = false;\n-\n-    var wallets = profileService.getWallets({\n+  function setwallets() {\n+    $scope.wallets = profileService.getWallets({\n       onlyComplete: true,\n-      network: networkName,\n+      network: $scope.network,\n     });\n \n-    if (!wallets || !wallets.length) {\n+    if (!$scope.wallets || !$scope.wallets.length)\n       $scope.noMatchingWallet = true;\n-    }\n \n     var filteredWallets = [];\n     var index = 0;\n     var enoughFunds = false;\n \n-    lodash.each(wallets, function(w) {\n+    lodash.each($scope.wallets, function(w) {\n       walletService.getStatus(w, {}, function(err, status) {\n         if (err || !status) {\n           $log.error(err);\n         } else {\n           w.status = status;\n           if (!status.availableBalanceSat) $log.debug('No balance available in: ' + w.name);\n-          if (status.availableBalanceSat > $scope.toAmount) {\n+          if (status.availableBalanceSat > toAmount) {\n             filteredWallets.push(w);\n             enoughFunds = true;\n           }\n         }\n \n-        if (++index == wallets.length) {\n+        if (++index == $scope.wallets.length) {\n           if (!lodash.isEmpty(filteredWallets)) {\n             $scope.wallets = lodash.clone(filteredWallets);\n-            setWallet($scope.wallets[0]);\n+            if ($scope.useSendMax) $scope.showWalletSelector();\n+            else initConfirm();\n           } else {\n-\n-            if (!enoughFunds)\n-              $scope.insuffientFunds = true;\n-\n+            if (!enoughFunds) $scope.insufficientFunds = true;\n             $log.warn('No wallet available to make the payment');\n-            $timeout(function() {\n-              $scope.$apply();\n-            });\n           }\n+          $timeout(function() {\n+            $scope.$apply();\n+          });\n         }\n       });\n     });\n+  };\n+\n+  var initConfirm = function() {\n+    toAmount = parseInt(toAmount);\n+    amountStr = txFormatService.formatAmountStr(toAmount);\n+    $scope.displayAmount = getDisplayAmount(amountStr);\n+    $scope.displayUnit = getDisplayUnit(amountStr);\n \n-    txFormatService.formatAlternativeStr($scope.toAmount, function(v) {\n+    txFormatService.formatAlternativeStr(toAmount, function(v) {\n       $scope.alternativeAmountStr = v;\n     });\n \n-    if($scope.paypro) {\n-      _paymentTimeControl($scope.paypro.expires);\n-    }\n+    if ($scope.paypro) _paymentTimeControl($scope.paypro.expires);\n+\n+    $scope.showWalletSelector();\n+    $timeout(function() {\n+      $scope.$apply();\n+    });\n+  };\n+\n+  function resetValues() {\n+    $scope.displayAmount = $scope.displayUnit = $scope.fee = $scope.alternativeAmountStr = $scope.insufficientFunds = $scope.noMatchingWallet = null;\n+  };\n+\n+  $scope.getSendMaxInfo = function() {\n+    resetValues();\n+\n+    ongoingProcess.set('gettingFeeLevels', true);\n+    feeService.getCurrentFeeValue($scope.network, function(err, feePerKb) {\n+      ongoingProcess.set('gettingFeeLevels', false);\n+      if (err) {\n+        popupService.showAlert(gettextCatalog.getString('Error'), err.message);\n+        return;\n+      }\n+      var config = configService.getSync().wallet;\n+\n+      ongoingProcess.set('retrievingInputs', true);\n+      walletService.getSendMaxInfo($scope.wallet, {\n+        feePerKb: feePerKb,\n+        excludeUnconfirmedUtxos: !config.spendUnconfirmed,\n+        returnInputs: true,\n+      }, function(err, resp) {\n+        ongoingProcess.set('retrievingInputs', false);\n+        if (err) {\n+          $scope.insufficientFunds = true;\n+          popupService.showAlert(gettextCatalog.getString('Error'), err);\n+          return;\n+        }\n+\n+        if (resp.amount == 0) {\n+          $scope.insufficientFunds = true;\n+          popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Not enough funds for fee'));\n+          return;\n+        }\n+\n+        $scope.sendMaxInfo = {\n+          sendMax: true,\n+          amount: resp.amount,\n+          inputs: resp.inputs,\n+          fee: resp.fee,\n+          feePerKb: feePerKb,\n+        };\n+\n+        cachedSendMax[$scope.wallet.id] = $scope.sendMaxInfo;\n+\n+        var msg = gettextCatalog.getString(\"{{fee}} will be deducted for bitcoin networking fees\", {\n+          fee: txFormatService.formatAmountStr(resp.fee)\n+        });\n+        var warningMsg = verifyExcludedUtxos();\n+\n+        if (!lodash.isEmpty(warningMsg))\n+          msg += '. \\n' + warningMsg;\n+\n+        popupService.showAlert(null, msg, function() {\n+          setSendMaxValues(resp);\n+\n+          createTx($scope.wallet, true, function(err, txp) {\n+            if (err) return;\n+            cachedTxp[$scope.wallet.id] = txp;\n+            apply(txp);\n+          });\n+        });\n+\n+        function verifyExcludedUtxos() {\n+          var warningMsg = [];\n+          if (resp.utxosBelowFee > 0) {\n+            warningMsg.push(gettextCatalog.getString(\"A total of {{amountBelowFeeStr}} were excluded. These funds come from UTXOs smaller than the network fee provided.\", {\n+              amountBelowFeeStr: txFormatService.formatAmountStr(resp.amountBelowFee)\n+            }));\n+          }\n+\n+          if (resp.utxosAboveMaxSize > 0) {\n+            warningMsg.push(gettextCatalog.getString(\"A total of {{amountAboveMaxSizeStr}} were excluded. The maximum size allowed for a transaction was exceeded\", {","path":"src/js/controllers/confirm.js","position":213,"original_position":213,"commit_id":"45b61326857197fdb6323158aa91933f2767b840","original_commit_id":"45b61326857197fdb6323158aa91933f2767b840","user":{"login":"isocolsky","id":2073468,"avatar_url":"https://avatars.githubusercontent.com/u/2073468?v=3","gravatar_id":"","url":"https://api.github.com/users/isocolsky","html_url":"https://github.com/isocolsky","followers_url":"https://api.github.com/users/isocolsky/followers","following_url":"https://api.github.com/users/isocolsky/following{/other_user}","gists_url":"https://api.github.com/users/isocolsky/gists{/gist_id}","starred_url":"https://api.github.com/users/isocolsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isocolsky/subscriptions","organizations_url":"https://api.github.com/users/isocolsky/orgs","repos_url":"https://api.github.com/users/isocolsky/repos","events_url":"https://api.github.com/users/isocolsky/events{/privacy}","received_events_url":"https://api.github.com/users/isocolsky/received_events","type":"User","site_admin":false},"body":"Add '.' at the end.","created_at":"2016-11-29T15:12:17Z","updated_at":"2016-11-29T15:28:56Z","html_url":"https://github.com/bitpay/copay/pull/5108#discussion_r90027998","pull_request_url":"https://api.github.com/repos/bitpay/copay/pulls/5108","_links":{"self":{"href":"https://api.github.com/repos/bitpay/copay/pulls/comments/90027998"},"html":{"href":"https://github.com/bitpay/copay/pull/5108#discussion_r90027998"},"pull_request":{"href":"https://api.github.com/repos/bitpay/copay/pulls/5108"}}},"pull_request":{"url":"https://api.github.com/repos/bitpay/copay/pulls/5108","id":95222610,"html_url":"https://github.com/bitpay/copay/pull/5108","diff_url":"https://github.com/bitpay/copay/pull/5108.diff","patch_url":"https://github.com/bitpay/copay/pull/5108.patch","issue_url":"https://api.github.com/repos/bitpay/copay/issues/5108","number":5108,"state":"open","locked":false,"title":"WIP send max","user":{"login":"JDonadio","id":13851807,"avatar_url":"https://avatars.githubusercontent.com/u/13851807?v=3","gravatar_id":"","url":"https://api.github.com/users/JDonadio","html_url":"https://github.com/JDonadio","followers_url":"https://api.github.com/users/JDonadio/followers","following_url":"https://api.github.com/users/JDonadio/following{/other_user}","gists_url":"https://api.github.com/users/JDonadio/gists{/gist_id}","starred_url":"https://api.github.com/users/JDonadio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDonadio/subscriptions","organizations_url":"https://api.github.com/users/JDonadio/orgs","repos_url":"https://api.github.com/users/JDonadio/repos","events_url":"https://api.github.com/users/JDonadio/events{/privacy}","received_events_url":"https://api.github.com/users/JDonadio/received_events","type":"User","site_admin":false},"body":"Closes https://github.com/bitpay/copay/issues/4884\r\n\r\n* Add menu to display **send max** option\r\n* Display wallet selector in confirm view without default selection\r\n* Select wallet to get _send max information_ (add to cache list)\r\n\r\n* Pending max icon > unavailable from inVision project\r\n\r\n<img width=\"377\" alt=\"bitpay_wallet_inspect_mode_-_invision\" src=\"https://cloud.githubusercontent.com/assets/13851807/20626260/42703878-b2f7-11e6-882b-d98032d4c07f.png\">\r\n","created_at":"2016-11-24T19:41:26Z","updated_at":"2016-11-29T15:28:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"109a9cf2c89d85228487aa5280fa0ab54b1ae8fa","assignee":{"login":"JDonadio","id":13851807,"avatar_url":"https://avatars.githubusercontent.com/u/13851807?v=3","gravatar_id":"","url":"https://api.github.com/users/JDonadio","html_url":"https://github.com/JDonadio","followers_url":"https://api.github.com/users/JDonadio/followers","following_url":"https://api.github.com/users/JDonadio/following{/other_user}","gists_url":"https://api.github.com/users/JDonadio/gists{/gist_id}","starred_url":"https://api.github.com/users/JDonadio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDonadio/subscriptions","organizations_url":"https://api.github.com/users/JDonadio/orgs","repos_url":"https://api.github.com/users/JDonadio/repos","events_url":"https://api.github.com/users/JDonadio/events{/privacy}","received_events_url":"https://api.github.com/users/JDonadio/received_events","type":"User","site_admin":false},"assignees":[{"login":"JDonadio","id":13851807,"avatar_url":"https://avatars.githubusercontent.com/u/13851807?v=3","gravatar_id":"","url":"https://api.github.com/users/JDonadio","html_url":"https://github.com/JDonadio","followers_url":"https://api.github.com/users/JDonadio/followers","following_url":"https://api.github.com/users/JDonadio/following{/other_user}","gists_url":"https://api.github.com/users/JDonadio/gists{/gist_id}","starred_url":"https://api.github.com/users/JDonadio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDonadio/subscriptions","organizations_url":"https://api.github.com/users/JDonadio/orgs","repos_url":"https://api.github.com/users/JDonadio/repos","events_url":"https://api.github.com/users/JDonadio/events{/privacy}","received_events_url":"https://api.github.com/users/JDonadio/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bitpay/copay/pulls/5108/commits","review_comments_url":"https://api.github.com/repos/bitpay/copay/pulls/5108/comments","review_comment_url":"https://api.github.com/repos/bitpay/copay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitpay/copay/issues/5108/comments","statuses_url":"https://api.github.com/repos/bitpay/copay/statuses/45b61326857197fdb6323158aa91933f2767b840","head":{"label":"JDonadio:feat/send-max","ref":"feat/send-max","sha":"45b61326857197fdb6323158aa91933f2767b840","user":{"login":"JDonadio","id":13851807,"avatar_url":"https://avatars.githubusercontent.com/u/13851807?v=3","gravatar_id":"","url":"https://api.github.com/users/JDonadio","html_url":"https://github.com/JDonadio","followers_url":"https://api.github.com/users/JDonadio/followers","following_url":"https://api.github.com/users/JDonadio/following{/other_user}","gists_url":"https://api.github.com/users/JDonadio/gists{/gist_id}","starred_url":"https://api.github.com/users/JDonadio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDonadio/subscriptions","organizations_url":"https://api.github.com/users/JDonadio/orgs","repos_url":"https://api.github.com/users/JDonadio/repos","events_url":"https://api.github.com/users/JDonadio/events{/privacy}","received_events_url":"https://api.github.com/users/JDonadio/received_events","type":"User","site_admin":false},"repo":{"id":40997923,"name":"copay","full_name":"JDonadio/copay","owner":{"login":"JDonadio","id":13851807,"avatar_url":"https://avatars.githubusercontent.com/u/13851807?v=3","gravatar_id":"","url":"https://api.github.com/users/JDonadio","html_url":"https://github.com/JDonadio","followers_url":"https://api.github.com/users/JDonadio/followers","following_url":"https://api.github.com/users/JDonadio/following{/other_user}","gists_url":"https://api.github.com/users/JDonadio/gists{/gist_id}","starred_url":"https://api.github.com/users/JDonadio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDonadio/subscriptions","organizations_url":"https://api.github.com/users/JDonadio/orgs","repos_url":"https://api.github.com/users/JDonadio/repos","events_url":"https://api.github.com/users/JDonadio/events{/privacy}","received_events_url":"https://api.github.com/users/JDonadio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JDonadio/copay","description":"A multisignature wallet.","fork":true,"url":"https://api.github.com/repos/JDonadio/copay","forks_url":"https://api.github.com/repos/JDonadio/copay/forks","keys_url":"https://api.github.com/repos/JDonadio/copay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JDonadio/copay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JDonadio/copay/teams","hooks_url":"https://api.github.com/repos/JDonadio/copay/hooks","issue_events_url":"https://api.github.com/repos/JDonadio/copay/issues/events{/number}","events_url":"https://api.github.com/repos/JDonadio/copay/events","assignees_url":"https://api.github.com/repos/JDonadio/copay/assignees{/user}","branches_url":"https://api.github.com/repos/JDonadio/copay/branches{/branch}","tags_url":"https://api.github.com/repos/JDonadio/copay/tags","blobs_url":"https://api.github.com/repos/JDonadio/copay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JDonadio/copay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JDonadio/copay/git/refs{/sha}","trees_url":"https://api.github.com/repos/JDonadio/copay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JDonadio/copay/statuses/{sha}","languages_url":"https://api.github.com/repos/JDonadio/copay/languages","stargazers_url":"https://api.github.com/repos/JDonadio/copay/stargazers","contributors_url":"https://api.github.com/repos/JDonadio/copay/contributors","subscribers_url":"https://api.github.com/repos/JDonadio/copay/subscribers","subscription_url":"https://api.github.com/repos/JDonadio/copay/subscription","commits_url":"https://api.github.com/repos/JDonadio/copay/commits{/sha}","git_commits_url":"https://api.github.com/repos/JDonadio/copay/git/commits{/sha}","comments_url":"https://api.github.com/repos/JDonadio/copay/comments{/number}","issue_comment_url":"https://api.github.com/repos/JDonadio/copay/issues/comments{/number}","contents_url":"https://api.github.com/repos/JDonadio/copay/contents/{+path}","compare_url":"https://api.github.com/repos/JDonadio/copay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JDonadio/copay/merges","archive_url":"https://api.github.com/repos/JDonadio/copay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JDonadio/copay/downloads","issues_url":"https://api.github.com/repos/JDonadio/copay/issues{/number}","pulls_url":"https://api.github.com/repos/JDonadio/copay/pulls{/number}","milestones_url":"https://api.github.com/repos/JDonadio/copay/milestones{/number}","notifications_url":"https://api.github.com/repos/JDonadio/copay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JDonadio/copay/labels{/name}","releases_url":"https://api.github.com/repos/JDonadio/copay/releases{/id}","deployments_url":"https://api.github.com/repos/JDonadio/copay/deployments","created_at":"2015-08-18T21:15:39Z","updated_at":"2016-05-30T00:21:21Z","pushed_at":"2016-11-29T15:02:19Z","git_url":"git://github.com/JDonadio/copay.git","ssh_url":"git@github.com:JDonadio/copay.git","clone_url":"https://github.com/JDonadio/copay.git","svn_url":"https://github.com/JDonadio/copay","homepage":"http://copay.io","size":150090,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bitpay:master","ref":"master","sha":"15248dd82bf9db5d9ba6467fde84a704c33b967e","user":{"login":"bitpay","id":2554930,"avatar_url":"https://avatars.githubusercontent.com/u/2554930?v=3","gravatar_id":"","url":"https://api.github.com/users/bitpay","html_url":"https://github.com/bitpay","followers_url":"https://api.github.com/users/bitpay/followers","following_url":"https://api.github.com/users/bitpay/following{/other_user}","gists_url":"https://api.github.com/users/bitpay/gists{/gist_id}","starred_url":"https://api.github.com/users/bitpay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitpay/subscriptions","organizations_url":"https://api.github.com/users/bitpay/orgs","repos_url":"https://api.github.com/users/bitpay/repos","events_url":"https://api.github.com/users/bitpay/events{/privacy}","received_events_url":"https://api.github.com/users/bitpay/received_events","type":"Organization","site_admin":false},"repo":{"id":18141084,"name":"copay","full_name":"bitpay/copay","owner":{"login":"bitpay","id":2554930,"avatar_url":"https://avatars.githubusercontent.com/u/2554930?v=3","gravatar_id":"","url":"https://api.github.com/users/bitpay","html_url":"https://github.com/bitpay","followers_url":"https://api.github.com/users/bitpay/followers","following_url":"https://api.github.com/users/bitpay/following{/other_user}","gists_url":"https://api.github.com/users/bitpay/gists{/gist_id}","starred_url":"https://api.github.com/users/bitpay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitpay/subscriptions","organizations_url":"https://api.github.com/users/bitpay/orgs","repos_url":"https://api.github.com/users/bitpay/repos","events_url":"https://api.github.com/users/bitpay/events{/privacy}","received_events_url":"https://api.github.com/users/bitpay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitpay/copay","description":"Copay is a secure bitcoin wallet platform for both desktop and mobile devices.","fork":false,"url":"https://api.github.com/repos/bitpay/copay","forks_url":"https://api.github.com/repos/bitpay/copay/forks","keys_url":"https://api.github.com/repos/bitpay/copay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitpay/copay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitpay/copay/teams","hooks_url":"https://api.github.com/repos/bitpay/copay/hooks","issue_events_url":"https://api.github.com/repos/bitpay/copay/issues/events{/number}","events_url":"https://api.github.com/repos/bitpay/copay/events","assignees_url":"https://api.github.com/repos/bitpay/copay/assignees{/user}","branches_url":"https://api.github.com/repos/bitpay/copay/branches{/branch}","tags_url":"https://api.github.com/repos/bitpay/copay/tags","blobs_url":"https://api.github.com/repos/bitpay/copay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitpay/copay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitpay/copay/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitpay/copay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitpay/copay/statuses/{sha}","languages_url":"https://api.github.com/repos/bitpay/copay/languages","stargazers_url":"https://api.github.com/repos/bitpay/copay/stargazers","contributors_url":"https://api.github.com/repos/bitpay/copay/contributors","subscribers_url":"https://api.github.com/repos/bitpay/copay/subscribers","subscription_url":"https://api.github.com/repos/bitpay/copay/subscription","commits_url":"https://api.github.com/repos/bitpay/copay/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitpay/copay/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitpay/copay/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitpay/copay/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitpay/copay/contents/{+path}","compare_url":"https://api.github.com/repos/bitpay/copay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitpay/copay/merges","archive_url":"https://api.github.com/repos/bitpay/copay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitpay/copay/downloads","issues_url":"https://api.github.com/repos/bitpay/copay/issues{/number}","pulls_url":"https://api.github.com/repos/bitpay/copay/pulls{/number}","milestones_url":"https://api.github.com/repos/bitpay/copay/milestones{/number}","notifications_url":"https://api.github.com/repos/bitpay/copay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitpay/copay/labels{/name}","releases_url":"https://api.github.com/repos/bitpay/copay/releases{/id}","deployments_url":"https://api.github.com/repos/bitpay/copay/deployments","created_at":"2014-03-26T14:33:07Z","updated_at":"2016-11-29T14:28:39Z","pushed_at":"2016-11-29T15:09:07Z","git_url":"git://github.com/bitpay/copay.git","ssh_url":"git@github.com:bitpay/copay.git","clone_url":"https://github.com/bitpay/copay.git","svn_url":"https://github.com/bitpay/copay","homepage":"http://copay.io","size":189059,"stargazers_count":659,"watchers_count":659,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":367,"mirror_url":null,"open_issues_count":222,"forks":367,"open_issues":222,"watchers":659,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitpay/copay/pulls/5108"},"html":{"href":"https://github.com/bitpay/copay/pull/5108"},"issue":{"href":"https://api.github.com/repos/bitpay/copay/issues/5108"},"comments":{"href":"https://api.github.com/repos/bitpay/copay/issues/5108/comments"},"review_comments":{"href":"https://api.github.com/repos/bitpay/copay/pulls/5108/comments"},"review_comment":{"href":"https://api.github.com/repos/bitpay/copay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitpay/copay/pulls/5108/commits"},"statuses":{"href":"https://api.github.com/repos/bitpay/copay/statuses/45b61326857197fdb6323158aa91933f2767b840"}}}}
{"actor":{"display_login":"isocolsky"}}