{"action":"created","comment":{"url":"https://api.github.com/repos/scbd/www.cbd.int/pulls/comments/200770255","pull_request_review_id":135134293,"id":200770255,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDc3MDI1NQ==","diff_hunk":"@@ -0,0 +1,536 @@\n+define(['app', 'services/conference-service','providers/locale','directives/kronos/participant','directives/kronos/user-messages','filters/term','directives/file',], function(app) { 'use strict';\n+\n+\treturn ['$scope','$http','conferenceService','$filter','$route','$location','locale','user','$timeout','$document', function( $scope,$http,conferenceService,$filter,$route,$location,locale,user,$timeout,$document) {\n+\n+\t\tvar _ctrl \t\t           = this\n+\n+    var orgTypes = {media:[\n+      {'identifier':'Educational/Public', 'title':'Educational/Public'},\n+      {'identifier':'Government/State',   'title':'Government/State'},\n+      {'identifier':'Private',            'title':'Private'},\n+      {'identifier':'Other',              'title':'Other'}],\n+      observer:[]\n+    }\n+    \"Print\",\"News agency/service\",\"Radio\",\"Photo/visual\",\"Television\",\"Weekly publication\",\"Other\"\n+    var mediums = [\n+      {'identifier':'Print',                  'title':'Print'},\n+      {'identifier':'News agency/service',    'title':'News agency/service'},\n+      {'identifier':'Radio',                  'title':'Radio'},\n+      {'identifier':'Photo/visual',           'title':'Photo/visual'},\n+      {'identifier':'Television',             'title':'Television'},\n+\n+      {'identifier':'Independent broadcast or film production',             'title':'Independent broadcast or film production'},\n+      {'identifier':'Weekly publication',     'title':'Weekly publication'},\n+      {'identifier':'Web publication',     'title':'Web publication'},\n+      {'identifier':'Online journal',     'title':'Online journal'},\n+      {'identifier':'Blog',                   'title':'Blog'},\n+      {'identifier':'Other online media',     'title':'Other online media'},\n+      {'identifier':'Freelance journalist',     'title':'Freelance journalist'},\n+      {'identifier':'Other',                  'title':'Other'},\n+    ]\n+\n+    var MIMES = {\n+        'application/pdf':                                                            { title: 'PDF',               color: 'red',    btn: 'btn-danger',  icon: 'fa-file-pdf-o'   },\n+        'application/vnd.openxmlformats-officedocument.wordprocessingml.document' :   { title: 'Word (docx)',       color: 'blue',   btn: 'btn-primary', icon: 'fa-file-word-o'  },\n+        'application/msword':                                                         { title: 'Word (doc)',        color: 'blue',   btn: 'btn-primary', icon: 'fa-file-word-o'  },\n+        'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' :         { title: 'Excel (xlsx)',      color: 'green',  btn: 'btn-success', icon: 'fa-file-excel-o' },\n+        'application/vnd.ms-excel':                                                   { title: 'Excel (xls)',       color: 'green',  btn: 'btn-success', icon: 'fa-file-excel-o' },\n+        'application/vnd.openxmlformats-officedocument.presentationml.presentation' : { title: 'PowerPoint (pptx)', color: 'orange', btn: 'btn-warning', icon: 'fa-file-powerpoint-o' },\n+        'application/vnd.ms-powerpoint':                                              { title: 'PowerPoint (ppt)',  color: 'orange', btn: 'btn-warning', icon: 'fa-file-powerpoint-o' },\n+        'application/zip':                                                            { title: 'Zip',               color: '',       btn: 'btn-default', icon: 'fa-file-archive-o' },\n+        'default':                                                                    { title: '',                  color: 'orange', btn: 'btn-default', icon: 'fa-file-o' }\n+    }\n+\n+    //route params\n+    _ctrl.conferenceCode     = $route.current.params.conference\n+    _ctrl.step               = $route.current.params.step || 'request'\n+    _ctrl.type               = $route.current.params.type\n+\n+    //functions\n+    _ctrl.changeStep         = changeStep\n+    _ctrl.conferenceSelected = conferenceSelected\n+    _ctrl.saveCheckList      = saveCheckList\n+    _ctrl.editOrg            = editOrg\n+    _ctrl.saveOrganization   = saveOrganization\n+    _ctrl.saveConference     = saveConference\n+    _ctrl.hasHead            = hasHead\n+    _ctrl.hasFocalPoint      = hasFocalPoint\n+    _ctrl.loadParticipantForm= loadParticipantForm\n+    _ctrl.mediumHas          = mediumHas\n+    _ctrl.designationHas     = designationHas\n+    _ctrl.isStepComplete     = isStepComplete\n+    _ctrl.saveContacts =saveContacts\n+\n+    // options\n+    _ctrl.orgTypes           = orgTypes[_ctrl.type]\n+    _ctrl.orgMediums         = mediums\n+    _ctrl.locale             = locale\n+    _ctrl.partialMap         = {\n+      'request'         : '/app/views/kronos/participation-form-conference.html',\n+      'checklist'       : '/app/views/kronos/participation-form-checklist.html',\n+      'organization'    : '/app/views/kronos/participation-form-organization.html',\n+      'contacts'        : '/app/views/kronos/participation-form-contacts.html',\n+      'participants'    : '/app/views/kronos/participation-form-participants.html',\n+      'finished'        : '/app/views/kronos/participation-form-finished.html'\n+    }\n+\n+    //flags\n+    _ctrl.addContact              = false\n+    _ctrl.showChecklist           = false\n+\n+    //model inits\n+    _ctrl.doc                     = {}\n+    _ctrl.organization            = {}\n+    _ctrl.organization.medium     = []\n+    _ctrl.organization.language   = ''\n+    _ctrl.organization.attachment = []\n+    _ctrl.activeParticipant       = {}\n+    _ctrl.head                    = {}\n+    _ctrl.focalPoint              = {}\n+    _ctrl.participants            = []\n+\n+    //init\n+    initStepRequest().then(loadParticipationRequest).then(initSteps)\n+\n+    _ctrl.genMeta=genMeta\n+    function genMeta(){\n+      return {requestid:_ctrl.doc._id,conferencecode:_ctrl.conferenceCode}\n+    }\n+    _ctrl.viewAttachment=viewAttachment\n+    function viewAttachment(url){\n+      if(!url)return''\n+      if(~url.indexOf('cbd.documents.temporary')||~url.indexOf('temporary-files'))\n+        return url\n+      return '/api/v2018/kronos/participation/requests/attachement/'+encodeURIComponent(url)\n+\n+    }\n+\n+\n+\n+    function loadPresigned(url){\n+      var atts = _ctrl.organization.attachment\n+\n+      for (var i = 0; i < atts.length; i++) {\n+\n+          if(!isTemp(atts[i].url))\n+            getPresigned(i,atts[i].url)\n+      }\n+    }\n+\n+    function getPresigned(i,url){\n+      return $http.get('/api/v2018/kronos/participation/requests/attachement/presign/'+encodeURIComponent(url)).then(function(u){\n+      _ctrl.organization.attachment[i].url = u.data.signedUrl\n+      })\n+    }\n+\n+    function isTemp(url){\n+      if(~url.indexOf('cbd.documents.temporary')||~url.indexOf('temporary-files'))\n+        return true\n+      return false\n+    }\n+\n+    function initSteps(){\n+\n+      if(_ctrl.doc.requested && !~user.roles.indexOf('SCBDMedia'))\n+       return changeStep('finished',_ctrl.type)\n+\n+      if(_ctrl.step==='checklist')\n+        initStepsChecklist()\n+      if(_ctrl.step==='organization')\n+        initStepsOrganization()\n+      if(_ctrl.step==='contacts')\n+        initStepsContacts()\n+      if(_ctrl.step==='participants')\n+        initStepsParticipants()\n+    }\n+\n+    function initStepRequest(){\n+      return conferenceService.getFuture()\n+          .then(function(confrences){\n+            _ctrl.conferences=confrences\n+          }).then(function(){\n+            initConference()\n+          })\n+    }\n+    function initConference(){\n+      for(var i=0; i<_ctrl.conferences.length;i++)\n+        if(_ctrl.conferences[i].code===_ctrl.conferenceCode)\n+          _ctrl.conferenceId=_ctrl.conferences[i]._id\n+    }\n+    function getConference(id){\n+      for(var i=0; i<_ctrl.conferences.length;i++)\n+        if(_ctrl.conferences[i]._id===id)\n+          return _ctrl.conferences[i]\n+    }\n+    function getConferenceCode(id){\n+      return getConference(id).code\n+\n+    }\n+    function initStepsChecklist(){\n+        if(_ctrl.doc  && _ctrl.doc.checklist){\n+          $scope.letterOfAssignment = true\n+          $scope.pressPass = true\n+          $scope.passport = true\n+          $scope.accomidations = true\n+          $scope.head = true\n+          $scope.focalpoint = true\n+          $scope.freelance = true\n+          $scope.onlineJournal = true\n+          $scope.blog = true\n+          $scope.otherOnlineMedia = true\n+          $scope.webPub = true\n+          $scope.online = true\n+          $scope.photographer = true\n+          $scope.radio = true\n+          $scope.television = true\n+          $scope.print = true\n+          $scope.broadcastFilmLetter = true\n+          $scope.accomidations = true\n+\n+          return true\n+        }\n+        return false\n+    }\n+\n+    function initStepsOrganization(){\n+     $http.get('/api/v2013/thesaurus/domains/ISO639-2/terms',{ cache: true })\n+      .then(function(res){\n+        _ctrl.languages = res.data\n+        getOrg()\n+      })\n+    }\n+\n+    function initStepsContacts(){\n+      return getOrg().then(function(){\n+        var headP  = getHead()\n+        var focalP = getFocalPoint()\n+        return Promise.all([headP,focalP]).then(function(){\n+          $timeout(function(){\n+                $scope.$watch('participationCtrl.head',function(newValue, oldValue){\n+                  if(newValue._id != oldValue._id){\n+                    _ctrl.doc.head = newValue._id\n+                    save()\n+                  }\n+                },true)\n+                $scope.$watch('participationCtrl.focalPoint',function(newValue, oldValue){\n+                  if(newValue._id != oldValue._id){\n+                    _ctrl.doc.focalPoint = newValue._id\n+                    save()\n+                  }\n+                },true)\n+          })\n+        })\n+      })\n+    }\n+\n+    function initStepsParticipants (){\n+      return initStepsContacts().then(function(){\n+        return getParticipants().then(function(){\n+          $scope.$watch('participationCtrl.activeParticipant._id',function(newValue, oldValue){\n+            if(newValue!= oldValue && newValue)\n+              getParticipants()\n+\n+          })\n+        })\n+      })\n+    }\n+\n+    function isStepComplete(step){\n+      if(!_ctrl.doc)return false\n+\n+      if(stepToNum(_ctrl.doc.currentStep)>=stepToNum(step)) return true\n+\n+      if(_ctrl.doc.currentStep==='finished') return true\n+      return false\n+    }\n+\n+    function stepToNum(step){\n+      var stepMap ={\n+        'checklist':0,\n+        'organization':1,\n+        'contacts':2,\n+        'participants':3,\n+        'finished':4\n+      }\n+      return stepMap[step]\n+    }\n+\n+    function mediumHas(medium){\n+      if(!_ctrl.doc || !_ctrl.doc.medium)return false\n+      for(var i=0; i<_ctrl.doc.medium.length;i++ )\n+        if(_ctrl.doc.medium[i]===medium)return true\n+    }\n+\n+    function designationHas(title){\n+\n+      if(!_ctrl.doc || !_ctrl.doc.designation)return false\n+\n+      for(var i=0; i<_ctrl.doc.designation.length;i++ )\n+        if(_ctrl.doc.designation[i]===title)return true\n+\n+    }\n+\n+    function loadParticipantForm (p) {\n+\n+      _ctrl.addContact=true;\n+\n+        _ctrl.activeParticipant = p;\n+\n+    }\n+\n+    function getParticipants(){\n+      if(!_ctrl.doc._id) return new Promise(function(r){r(true)})\n+      var params = {\n+                      q : {\n+                        'meta.createdBy':user.userID,\n+                        'requestId':_ctrl.doc._id,\n+                        'meeting':{'$exists':true}\n+                      },\n+                      f:{meta:0}\n+                    }\n+      return $http.get('/api/v2018/kronos/participation/request/participants',{ params : params })\n+               .then(function(res){\n+                 if(res.data.length)\n+                   _ctrl.participants = res.data\n+\n+                  return _ctrl.participants\n+               }).catch(function(e){\n+                 _ctrl.error=e\n+                 console.error(e)\n+               })\n+    }\n+    function hasHead(){\n+      return !!_ctrl.head._id\n+    }\n+\n+    function hasFocalPoint(){\n+      return !!_ctrl.focalPoint._id\n+    }\n+\n+    function conferenceSelected (conference){\n+        _ctrl.conferenceId=conference._id\n+        _ctrl.conferenceCode=conference.code\n+    }\n+\n+    function getHead(){\n+      if(!_ctrl.doc.head) return new Promise(function(r){r(true)})\n+      return $http.get('/api/v2018/kronos/participation/request/participants/'+encodeURIComponent(_ctrl.doc.head),{ cache: true })\n+          .then(function(res){\n+            _ctrl.head = res.data\n+            delete(_ctrl.head.meta)\n+          }).catch(function(err){\n+            _ctrl.error = err\n+            console.error(err)\n+          })\n+    }\n+\n+    function getFocalPoint(){\n+      if(!_ctrl.doc.focalPoint) return new Promise(function(r){r(true)})\n+      return $http.get('/api/v2018/kronos/participation/request/participants/'+encodeURIComponent(_ctrl.doc.focalPoint),{ cache: true })\n+          .then(function(res){\n+            _ctrl.focalPoint = res.data\n+            delete(_ctrl.focalPoint.meta)\n+          }).catch(function(err){\n+            _ctrl.error = err\n+            console.error(err)\n+          })\n+    }\n+\n+    function getOrg(){\n+      if(_ctrl.doc.nominatingOrganization)\n+        return $http.get('/api/v2018/kronos/participation/request/organizations/'+encodeURIComponent(_ctrl.doc.nominatingOrganization),{ cache: true })\n+            .then(function(res){\n+              _ctrl.organization = res.data\n+              if(!_ctrl.organization.attachment)_ctrl.organization.attachment=[]\n+              else {\n+                loadPresigned()\n+              }\n+              delete(_ctrl.organization.meta)\n+            }).catch(function(err){\n+              _ctrl.error = err\n+              console.error(err)\n+            })\n+    }\n+\n+    function changeStep(step,type){\n+      if(type==='request')$location.url('/'+step)\n+      if(type)\n+        $location.url('/'+_ctrl.conferenceCode+'/'+type+'/'+step)\n+      else\n+        $location.url('/'+_ctrl.conferenceCode+'/'+_ctrl.type+'/'+step)\n+    }\n+\n+    function saveCheckList(){\n+        if(!_ctrl.doc.checklist){\n+          _ctrl.doc.checklist=true\n+          _ctrl.doc.currentStep = 'organization'\n+        }\n+        save().then(function(){\n+          changeStep('organization')\n+        })\n+\n+    }\n+    function saveContacts(){\n+\n+        _ctrl.doc.currentStep = 'participants'\n+\n+        save().then(function(){\n+          changeStep('participants')\n+        })\n+\n+    }\n+    function saveConference(type){\n+\n+      if(!_ctrl.doc) throw new Error('no doc found')\n+        if(!_ctrl.doc.conference){\n+          _ctrl.doc.conference = _ctrl.conferenceId\n+          _ctrl.doc.currentStep = 'checklist'\n+          _ctrl.doc.requestType = type\n+          save()\n+        }\n+        changeStep('checklist',type)\n+    }\n+\n+    function saveOrganization(){\n+      _ctrl.doc.currentStep = 'contacts'\n+      if(!_ctrl.organization._id)\n+        return $http.post('/api/v2018/kronos/request/organizations',_ctrl.organization,{headers:{requestId:_ctrl.requestId,conferenceCode:_ctrl.conferenceCode}})\n+            .then(function(res){\n+              _ctrl.organization._id = res.data.id\n+              _ctrl.doc.nominatingOrganization = res.data.id\n+              save()\n+                .then(function(){\n+                  changeStep('contacts')\n+                })\n+                .catch(function(err){\n+                  _ctrl.error = err\n+                  console.error(err)\n+                })\n+            }).catch(function(err){\n+              _ctrl.error = err\n+              console.error(err)\n+            })\n+      else\n+        return $http.put('/api/v2018/kronos/participation/request/organizations/'+encodeURIComponent(_ctrl.organization._id),_ctrl.organization,{headers:{requestId:_ctrl.doc._id,conferenceCode:_ctrl.conferenceCode}})\n+            .then(function(res){\n+              _ctrl.doc.nominatingOrganization = _ctrl.organization._id\n+              save()\n+                .then(function(){\n+                  changeStep('contacts')\n+                })\n+                .catch(function(err){\n+                  _ctrl.error = err\n+                  console.error(err)\n+                })\n+            }).catch(function(err){\n+              _ctrl.error = err\n+              console.error(err)\n+            })\n+    }\n+\n+    function save(){\n+\n+      if(!_ctrl.doc._id)\n+        return $http.post('/api/v2018/kronos/participation/requests',_ctrl.doc)\n+            .then(function(res){\n+              _ctrl.doc._id = res.data.id\n+            }).catch(function(err){\n+    \t\t\t\t\tconsole.error(err)\n+    \t\t\t\t})\n+      else\n+        return $http.put('/api/v2018/kronos/participation/requests/'+encodeURIComponent(_ctrl.doc._id),_ctrl.doc)\n+            .catch(function(err){\n+              console.error(err)\n+            })\n+\n+    }\n+\n+    function editOrg(){\n+        $location.url('/'+_ctrl.conferenceCode+'/'+_ctrl.type+'/'+'organization')\n+    }\n+\n+    function loadParticipationRequest(){\n+        var params = {\n+                        q : {\n+                          'meta.createdBy':user.userID,\n+                          'conference':_ctrl.conferenceId\n+                        }\n+                      }\n+        return $http.get('/api/v2018/kronos/participation/requests',{ params : params })\n+                 .then(function(res){\n+\n+                   if(res.data[0].conference)\n+                     _ctrl.conferenceCode=getConferenceCode(res.data[0].conference)\n+\n+                   if(res.data[0].requestType)\n+                     _ctrl.type=res.data[0].requestType\n+\n+                   if(res.data.length){\n+                      delete(res.data[0].meta)\n+                      return _ctrl.doc = res.data[0]\n+                    }\n+                    return null\n+                 }).catch(function(e){\n+                   _ctrl.error=e\n+                 })\n+    }\n+\n+    $scope.$applyAsync(function(){","path":"app/views/kronos/participation-form.js","position":478,"original_position":478,"commit_id":"ad3f0ae635743197402cfe06362d6ae22a86f0c8","original_commit_id":"ad3f0ae635743197402cfe06362d6ae22a86f0c8","user":{"login":"blaisefonseca","id":7049230,"node_id":"MDQ6VXNlcjcwNDkyMzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7049230?v=4","gravatar_id":"","url":"https://api.github.com/users/blaisefonseca","html_url":"https://github.com/blaisefonseca","followers_url":"https://api.github.com/users/blaisefonseca/followers","following_url":"https://api.github.com/users/blaisefonseca/following{/other_user}","gists_url":"https://api.github.com/users/blaisefonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/blaisefonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaisefonseca/subscriptions","organizations_url":"https://api.github.com/users/blaisefonseca/orgs","repos_url":"https://api.github.com/users/blaisefonseca/repos","events_url":"https://api.github.com/users/blaisefonseca/events{/privacy}","received_events_url":"https://api.github.com/users/blaisefonseca/received_events","type":"User","site_admin":false},"body":"i will use timeout over applyasync","created_at":"2018-07-06T21:09:54Z","updated_at":"2018-07-06T21:12:03Z","html_url":"https://github.com/scbd/www.cbd.int/pull/233#discussion_r200770255","pull_request_url":"https://api.github.com/repos/scbd/www.cbd.int/pulls/233","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/scbd/www.cbd.int/pulls/comments/200770255"},"html":{"href":"https://github.com/scbd/www.cbd.int/pull/233#discussion_r200770255"},"pull_request":{"href":"https://api.github.com/repos/scbd/www.cbd.int/pulls/233"}}},"pull_request":{"url":"https://api.github.com/repos/scbd/www.cbd.int/pulls/233","id":199564584,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NTY0NTg0","html_url":"https://github.com/scbd/www.cbd.int/pull/233","diff_url":"https://github.com/scbd/www.cbd.int/pull/233.diff","patch_url":"https://github.com/scbd/www.cbd.int/pull/233.patch","issue_url":"https://api.github.com/repos/scbd/www.cbd.int/issues/233","number":233,"state":"open","locked":false,"title":"Houlahan/feature/media","user":{"login":"randyhoulahan","id":13351610,"node_id":"MDQ6VXNlcjEzMzUxNjEw","avatar_url":"https://avatars3.githubusercontent.com/u/13351610?v=4","gravatar_id":"","url":"https://api.github.com/users/randyhoulahan","html_url":"https://github.com/randyhoulahan","followers_url":"https://api.github.com/users/randyhoulahan/followers","following_url":"https://api.github.com/users/randyhoulahan/following{/other_user}","gists_url":"https://api.github.com/users/randyhoulahan/gists{/gist_id}","starred_url":"https://api.github.com/users/randyhoulahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randyhoulahan/subscriptions","organizations_url":"https://api.github.com/users/randyhoulahan/orgs","repos_url":"https://api.github.com/users/randyhoulahan/repos","events_url":"https://api.github.com/users/randyhoulahan/events{/privacy}","received_events_url":"https://api.github.com/users/randyhoulahan/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-05T19:23:32Z","updated_at":"2018-07-06T21:12:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"733bb9bed6e2c3f3160d0f486b7c38b44ff81844","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/scbd/www.cbd.int/pulls/233/commits","review_comments_url":"https://api.github.com/repos/scbd/www.cbd.int/pulls/233/comments","review_comment_url":"https://api.github.com/repos/scbd/www.cbd.int/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scbd/www.cbd.int/issues/233/comments","statuses_url":"https://api.github.com/repos/scbd/www.cbd.int/statuses/ad3f0ae635743197402cfe06362d6ae22a86f0c8","head":{"label":"scbd:houlahan/feature/media","ref":"houlahan/feature/media","sha":"ad3f0ae635743197402cfe06362d6ae22a86f0c8","user":{"login":"scbd","id":4614187,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2MTQxODc=","avatar_url":"https://avatars2.githubusercontent.com/u/4614187?v=4","gravatar_id":"","url":"https://api.github.com/users/scbd","html_url":"https://github.com/scbd","followers_url":"https://api.github.com/users/scbd/followers","following_url":"https://api.github.com/users/scbd/following{/other_user}","gists_url":"https://api.github.com/users/scbd/gists{/gist_id}","starred_url":"https://api.github.com/users/scbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scbd/subscriptions","organizations_url":"https://api.github.com/users/scbd/orgs","repos_url":"https://api.github.com/users/scbd/repos","events_url":"https://api.github.com/users/scbd/events{/privacy}","received_events_url":"https://api.github.com/users/scbd/received_events","type":"Organization","site_admin":false},"repo":{"id":18224951,"node_id":"MDEwOlJlcG9zaXRvcnkxODIyNDk1MQ==","name":"www.cbd.int","full_name":"scbd/www.cbd.int","owner":{"login":"scbd","id":4614187,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2MTQxODc=","avatar_url":"https://avatars2.githubusercontent.com/u/4614187?v=4","gravatar_id":"","url":"https://api.github.com/users/scbd","html_url":"https://github.com/scbd","followers_url":"https://api.github.com/users/scbd/followers","following_url":"https://api.github.com/users/scbd/following{/other_user}","gists_url":"https://api.github.com/users/scbd/gists{/gist_id}","starred_url":"https://api.github.com/users/scbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scbd/subscriptions","organizations_url":"https://api.github.com/users/scbd/orgs","repos_url":"https://api.github.com/users/scbd/repos","events_url":"https://api.github.com/users/scbd/events{/privacy}","received_events_url":"https://api.github.com/users/scbd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scbd/www.cbd.int","description":"Convention on Biological Diversity Website (AngularJS portions)","fork":false,"url":"https://api.github.com/repos/scbd/www.cbd.int","forks_url":"https://api.github.com/repos/scbd/www.cbd.int/forks","keys_url":"https://api.github.com/repos/scbd/www.cbd.int/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scbd/www.cbd.int/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scbd/www.cbd.int/teams","hooks_url":"https://api.github.com/repos/scbd/www.cbd.int/hooks","issue_events_url":"https://api.github.com/repos/scbd/www.cbd.int/issues/events{/number}","events_url":"https://api.github.com/repos/scbd/www.cbd.int/events","assignees_url":"https://api.github.com/repos/scbd/www.cbd.int/assignees{/user}","branches_url":"https://api.github.com/repos/scbd/www.cbd.int/branches{/branch}","tags_url":"https://api.github.com/repos/scbd/www.cbd.int/tags","blobs_url":"https://api.github.com/repos/scbd/www.cbd.int/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scbd/www.cbd.int/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scbd/www.cbd.int/git/refs{/sha}","trees_url":"https://api.github.com/repos/scbd/www.cbd.int/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scbd/www.cbd.int/statuses/{sha}","languages_url":"https://api.github.com/repos/scbd/www.cbd.int/languages","stargazers_url":"https://api.github.com/repos/scbd/www.cbd.int/stargazers","contributors_url":"https://api.github.com/repos/scbd/www.cbd.int/contributors","subscribers_url":"https://api.github.com/repos/scbd/www.cbd.int/subscribers","subscription_url":"https://api.github.com/repos/scbd/www.cbd.int/subscription","commits_url":"https://api.github.com/repos/scbd/www.cbd.int/commits{/sha}","git_commits_url":"https://api.github.com/repos/scbd/www.cbd.int/git/commits{/sha}","comments_url":"https://api.github.com/repos/scbd/www.cbd.int/comments{/number}","issue_comment_url":"https://api.github.com/repos/scbd/www.cbd.int/issues/comments{/number}","contents_url":"https://api.github.com/repos/scbd/www.cbd.int/contents/{+path}","compare_url":"https://api.github.com/repos/scbd/www.cbd.int/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scbd/www.cbd.int/merges","archive_url":"https://api.github.com/repos/scbd/www.cbd.int/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scbd/www.cbd.int/downloads","issues_url":"https://api.github.com/repos/scbd/www.cbd.int/issues{/number}","pulls_url":"https://api.github.com/repos/scbd/www.cbd.int/pulls{/number}","milestones_url":"https://api.github.com/repos/scbd/www.cbd.int/milestones{/number}","notifications_url":"https://api.github.com/repos/scbd/www.cbd.int/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scbd/www.cbd.int/labels{/name}","releases_url":"https://api.github.com/repos/scbd/www.cbd.int/releases{/id}","deployments_url":"https://api.github.com/repos/scbd/www.cbd.int/deployments","created_at":"2014-03-28T20:06:04Z","updated_at":"2018-07-05T01:56:30Z","pushed_at":"2018-07-06T21:05:31Z","git_url":"git://github.com/scbd/www.cbd.int.git","ssh_url":"git@github.com:scbd/www.cbd.int.git","clone_url":"https://github.com/scbd/www.cbd.int.git","svn_url":"https://github.com/scbd/www.cbd.int","homepage":"https://www.cbd.int/","size":22255,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"scbd:master","ref":"master","sha":"656a70b3ad49bbd0f37d107d922e31bed8e908ba","user":{"login":"scbd","id":4614187,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2MTQxODc=","avatar_url":"https://avatars2.githubusercontent.com/u/4614187?v=4","gravatar_id":"","url":"https://api.github.com/users/scbd","html_url":"https://github.com/scbd","followers_url":"https://api.github.com/users/scbd/followers","following_url":"https://api.github.com/users/scbd/following{/other_user}","gists_url":"https://api.github.com/users/scbd/gists{/gist_id}","starred_url":"https://api.github.com/users/scbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scbd/subscriptions","organizations_url":"https://api.github.com/users/scbd/orgs","repos_url":"https://api.github.com/users/scbd/repos","events_url":"https://api.github.com/users/scbd/events{/privacy}","received_events_url":"https://api.github.com/users/scbd/received_events","type":"Organization","site_admin":false},"repo":{"id":18224951,"node_id":"MDEwOlJlcG9zaXRvcnkxODIyNDk1MQ==","name":"www.cbd.int","full_name":"scbd/www.cbd.int","owner":{"login":"scbd","id":4614187,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2MTQxODc=","avatar_url":"https://avatars2.githubusercontent.com/u/4614187?v=4","gravatar_id":"","url":"https://api.github.com/users/scbd","html_url":"https://github.com/scbd","followers_url":"https://api.github.com/users/scbd/followers","following_url":"https://api.github.com/users/scbd/following{/other_user}","gists_url":"https://api.github.com/users/scbd/gists{/gist_id}","starred_url":"https://api.github.com/users/scbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scbd/subscriptions","organizations_url":"https://api.github.com/users/scbd/orgs","repos_url":"https://api.github.com/users/scbd/repos","events_url":"https://api.github.com/users/scbd/events{/privacy}","received_events_url":"https://api.github.com/users/scbd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scbd/www.cbd.int","description":"Convention on Biological Diversity Website (AngularJS portions)","fork":false,"url":"https://api.github.com/repos/scbd/www.cbd.int","forks_url":"https://api.github.com/repos/scbd/www.cbd.int/forks","keys_url":"https://api.github.com/repos/scbd/www.cbd.int/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scbd/www.cbd.int/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scbd/www.cbd.int/teams","hooks_url":"https://api.github.com/repos/scbd/www.cbd.int/hooks","issue_events_url":"https://api.github.com/repos/scbd/www.cbd.int/issues/events{/number}","events_url":"https://api.github.com/repos/scbd/www.cbd.int/events","assignees_url":"https://api.github.com/repos/scbd/www.cbd.int/assignees{/user}","branches_url":"https://api.github.com/repos/scbd/www.cbd.int/branches{/branch}","tags_url":"https://api.github.com/repos/scbd/www.cbd.int/tags","blobs_url":"https://api.github.com/repos/scbd/www.cbd.int/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scbd/www.cbd.int/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scbd/www.cbd.int/git/refs{/sha}","trees_url":"https://api.github.com/repos/scbd/www.cbd.int/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scbd/www.cbd.int/statuses/{sha}","languages_url":"https://api.github.com/repos/scbd/www.cbd.int/languages","stargazers_url":"https://api.github.com/repos/scbd/www.cbd.int/stargazers","contributors_url":"https://api.github.com/repos/scbd/www.cbd.int/contributors","subscribers_url":"https://api.github.com/repos/scbd/www.cbd.int/subscribers","subscription_url":"https://api.github.com/repos/scbd/www.cbd.int/subscription","commits_url":"https://api.github.com/repos/scbd/www.cbd.int/commits{/sha}","git_commits_url":"https://api.github.com/repos/scbd/www.cbd.int/git/commits{/sha}","comments_url":"https://api.github.com/repos/scbd/www.cbd.int/comments{/number}","issue_comment_url":"https://api.github.com/repos/scbd/www.cbd.int/issues/comments{/number}","contents_url":"https://api.github.com/repos/scbd/www.cbd.int/contents/{+path}","compare_url":"https://api.github.com/repos/scbd/www.cbd.int/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scbd/www.cbd.int/merges","archive_url":"https://api.github.com/repos/scbd/www.cbd.int/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scbd/www.cbd.int/downloads","issues_url":"https://api.github.com/repos/scbd/www.cbd.int/issues{/number}","pulls_url":"https://api.github.com/repos/scbd/www.cbd.int/pulls{/number}","milestones_url":"https://api.github.com/repos/scbd/www.cbd.int/milestones{/number}","notifications_url":"https://api.github.com/repos/scbd/www.cbd.int/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scbd/www.cbd.int/labels{/name}","releases_url":"https://api.github.com/repos/scbd/www.cbd.int/releases{/id}","deployments_url":"https://api.github.com/repos/scbd/www.cbd.int/deployments","created_at":"2014-03-28T20:06:04Z","updated_at":"2018-07-05T01:56:30Z","pushed_at":"2018-07-06T21:05:31Z","git_url":"git://github.com/scbd/www.cbd.int.git","ssh_url":"git@github.com:scbd/www.cbd.int.git","clone_url":"https://github.com/scbd/www.cbd.int.git","svn_url":"https://github.com/scbd/www.cbd.int","homepage":"https://www.cbd.int/","size":22255,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scbd/www.cbd.int/pulls/233"},"html":{"href":"https://github.com/scbd/www.cbd.int/pull/233"},"issue":{"href":"https://api.github.com/repos/scbd/www.cbd.int/issues/233"},"comments":{"href":"https://api.github.com/repos/scbd/www.cbd.int/issues/233/comments"},"review_comments":{"href":"https://api.github.com/repos/scbd/www.cbd.int/pulls/233/comments"},"review_comment":{"href":"https://api.github.com/repos/scbd/www.cbd.int/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scbd/www.cbd.int/pulls/233/commits"},"statuses":{"href":"https://api.github.com/repos/scbd/www.cbd.int/statuses/ad3f0ae635743197402cfe06362d6ae22a86f0c8"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"blaisefonseca"}}