-
-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,6 +200,7 @@ export class GitHubAPI { | |
} | ||
const repo = this.repoMetadata.repoSlug | ||
const prID = this.repoMetadata.pullRequestID | ||
console.log("~~~ into getPullRequestInfo") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mokagio
Author
Contributor
|
||
const res = await this.get(`repos/${repo}/pulls/${prID}`) | ||
const prDSL = (await res.json()) as GitHubPRDSL | ||
this.pr = prDSL | ||
|
@@ -214,6 +215,7 @@ export class GitHubAPI { | |
getPullRequestCommits = async (): Promise<any[]> => { | ||
const repo = this.repoMetadata.repoSlug | ||
const prID = this.repoMetadata.pullRequestID | ||
console.log("~~~ into getPullRequestCommits") | ||
return await this.getAllOfResource(`repos/${repo}/pulls/${prID}/commits`) | ||
} | ||
|
||
|
@@ -314,6 +316,7 @@ export class GitHubAPI { | |
|
||
getPullRequests = async (): Promise<any> => { | ||
const repo = this.repoMetadata.repoSlug | ||
console.log('~~~ into getPullRequests') | ||
const res = await this.get(`repos/${repo}/pulls`) | ||
|
||
return res.ok ? res.json() : [] | ||
|
I don't think we should be pushing changes like this directly to master, and should always come from a PR.
Why those logs? Why are not using d? Is this useful for everyone, also not on debug mode?
If I use Danger not in debug
Is not something I need to know