docs: def get_branch(self):
          """
          :return:
          """
          if self.repo.head.is_detached:
              if os.getenv('GIT_BRANCH'):
                  branch = os.getenv('GIT_BRANCH')
              elif os.getenv('BRANCH_NAME'):
                  branch = os.getenv('BRANCH_NAME')
              elif os.getenv('TRAVIS_BRANCH'):
                  branch = os.getenv('TRAVIS_BRANCH')
              else:
                  branch = "HEAD"
          else:
              branch = str(self.repo.active_branch)
  
          return branch.replace("/", "_")