code: def get_last_version(skip_tags=None) -> Optional[str]:
      
  
      debug('get_last_version skip_tags=', skip_tags)
      check_repo()
      skip_tags = skip_tags or []
  
      def version_finder(tag):
          if isinstance(tag.commit, TagObject):
              return tag.tag.tagged_date
          return tag.commit.committed_date
  
      for i in sorted(repo.tags, reverse=True, key=version_finder):
          if re.match(r'v\d+\.\d+\.\d+', i.name):
              if i.name in skip_tags:
                  continue
              return i.name[1:]
      return None
docs: Return last version from repo tags.
  
      :return: A string contains version number.