Skip to content

Commit

Permalink
Merge pull request #1041 from danger/remove-extra-logging-added-by-mi…
Browse files Browse the repository at this point in the history
…stake

Remove extra logging that made it to master accidentally
  • Loading branch information
orta committed May 17, 2020
2 parents 450dd0c + c48317b commit bb1e135
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions source/platforms/github/GitHubAPI.ts
Expand Up @@ -200,7 +200,6 @@ export class GitHubAPI {
}
const repo = this.repoMetadata.repoSlug
const prID = this.repoMetadata.pullRequestID
console.log("~~~ into getPullRequestInfo")
const res = await this.get(`repos/${repo}/pulls/${prID}`)
const prDSL = (await res.json()) as GitHubPRDSL
this.pr = prDSL
Expand All @@ -215,7 +214,6 @@ 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`)
}

Expand Down Expand Up @@ -316,7 +314,6 @@ 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() : []
Expand Down Expand Up @@ -421,9 +418,6 @@ export class GitHubAPI {

const containsBase = path.startsWith("http")
const baseUrl = process.env["DANGER_GITHUB_API_BASE_URL"] || process.env["GITHUB_URL"] || "https://api.github.com"
this.d("~~~ DANGER_GITHUB_API_BASE_URL ", process.env["DANGER_GITHUB_API_BASE_URL"])
this.d("~~~ GITHUB_URL ", process.env["GITHUB_URL"])
this.d("~~~ baseUrl ", baseUrl)
const url = containsBase ? path : `${baseUrl}/${path}`

let customAccept = {}
Expand Down

0 comments on commit bb1e135

Please sign in to comment.