diff --git a/src/services/bitbucket/BitbucketService.ts b/src/services/bitbucket/BitbucketService.ts index 56618d0fd..a432d0e00 100644 --- a/src/services/bitbucket/BitbucketService.ts +++ b/src/services/bitbucket/BitbucketService.ts @@ -282,7 +282,7 @@ export class BitbucketService implements ICVSService { throw new Error('Method not implemented yet.'); } - async getRepoCommits(owner: string, repo: string) { + async getRepoCommits(owner: string, repo: string): Promise> { throw new Error('Method not implemented yet.'); } diff --git a/src/services/git/GitHubService.ts b/src/services/git/GitHubService.ts index 56914e0fe..cb0981d32 100644 --- a/src/services/git/GitHubService.ts +++ b/src/services/git/GitHubService.ts @@ -177,7 +177,7 @@ export class GitHubService implements ICVSService { * * Sha can be SHA or branch name. */ - async getRepoCommits(owner: string, repo: string, sha?: string) { + async getRepoCommits(owner: string, repo: string, sha?: string): Promise> { let url = 'GET /repos/:owner/:repo/commits'; if (sha !== undefined) { url = `${url}?state=${sha}`; diff --git a/src/services/git/ICVSService.ts b/src/services/git/ICVSService.ts index 0b427b83c..0dd754814 100644 --- a/src/services/git/ICVSService.ts +++ b/src/services/git/ICVSService.ts @@ -12,6 +12,7 @@ export interface ICVSService { getPullRequestReviews(owner: string, repo: string, prNumber: number): Promise>; getPullRequestFiles(owner: string, repo: string, prNumber: number): Promise>; getPullRequest(owner: string, repo: string, prNumber: number): Promise; + getRepoCommits(owner: string, repo: string, sha?: string): Promise>; getCommit(owner: string, repo: string, commitSha: string): Promise; getContributors(owner: string, repo: string): Promise>; getContributorsStats(owner: string, repo: string): Promise>;