async getRepoDataWrap(currentRepo, token) {
    if (!githubDetect.shouldEnable()) {
      return;
    }

    return new Promise((resolve, reject) => {
      this.getRepoData(currentRepo, token, (error, result) => {
        if (!error) {
          resolve(result);
        }
        if (typeof error === 'string') {
          resolve('');
        }
        resolve('');
      });
    });
  }
Github renders the branch name in one of below structure depending on the length
of branch name. We're using this for default code page or tree/blob.

Option 1: when the length is short enough
<summary title="Switch branches or tags">
  <span class="css-truncate-target">feature/1/2/3</span>
</summary>

Option 2: when the length is too long
<summary title="feature/1/2/3/4/5/6/7/8">
  <span class="css-truncate-target">feature/1/2/3...</span>
</summary>