Skip to content

Commit aec77d4

Browse files
committed
Add some logs to GitHubAPI
1 parent ec63cac commit aec77d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/platforms/github/GitHubAPI.ts

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export class GitHubAPI {
200200
}
201201
const repo = this.repoMetadata.repoSlug
202202
const prID = this.repoMetadata.pullRequestID
203+
console.log("~~~ into getPullRequestInfo")
203204
const res = await this.get(`repos/${repo}/pulls/${prID}`)
204205
const prDSL = (await res.json()) as GitHubPRDSL
205206
this.pr = prDSL
@@ -214,6 +215,7 @@ export class GitHubAPI {
214215
getPullRequestCommits = async (): Promise<any[]> => {
215216
const repo = this.repoMetadata.repoSlug
216217
const prID = this.repoMetadata.pullRequestID
218+
console.log("~~~ into getPullRequestCommits")
217219
return await this.getAllOfResource(`repos/${repo}/pulls/${prID}/commits`)
218220
}
219221

@@ -314,6 +316,7 @@ export class GitHubAPI {
314316

315317
getPullRequests = async (): Promise<any> => {
316318
const repo = this.repoMetadata.repoSlug
319+
console.log('~~~ into getPullRequests')
317320
const res = await this.get(`repos/${repo}/pulls`)
318321

319322
return res.ok ? res.json() : []

0 commit comments

Comments
 (0)