diff --git a/src/services/git/GitHubService.ts b/src/services/git/GitHubService.ts index 8741fe2ed..bd86c7b3e 100644 --- a/src/services/git/GitHubService.ts +++ b/src/services/git/GitHubService.ts @@ -182,7 +182,8 @@ export class GitHubService implements IVCSService { async getRepoCommits(owner: string, repo: string, sha?: string): Promise> { let url = 'GET /repos/:owner/:repo/commits'; if (sha !== undefined) { - url = `${url}?state=${sha}`; + const stateForUri = qs.stringify({ state: sha }, { addQueryPrefix: true }); + url = `${url}${stateForUri}`; } const response = await this.paginate(url, owner, repo);