code: public function getTags()
      {
          if ($this->gitDriver) {
              return $this->gitDriver->getTags();
          }
          if (null === $this->tags) {
              $this->tags = array();
              $resource = $this->getApiUrl() . '/repos/'.$this->owner.'/'.$this->repository.'/tags?per_page=100';
  
              do {
                  $tagsData = JsonFile::parseJson($this->getContents($resource), $resource);
                  foreach ($tagsData as $tag) {
                      $this->tags[$tag['name']] = $tag['commit']['sha'];
                  }
  
                  $resource = $this->getNextPage();
              } while ($resource);
          }
  
          return $this->tags;
      }
docs: {@inheritDoc}