Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jan 21, 2018
1 parent f8317f3 commit 2083255
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/platforms/github/GitHubAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ export class GitHubAPI {
return await this.getAllOfResource(`repos/${repo}/issues/${prID}/comments`)
}

async getPullRequestDiff(): Promise<string> {
getPullRequestDiff = async () => {
console.log("Hello")
console.log(this)
console.log(this.repoMetadata)
const repo = this.repoMetadata.repoSlug
const prID = this.repoMetadata.pullRequestID
const res = await this.get(`repos/${repo}/pulls/${prID}`, {
Expand Down
4 changes: 4 additions & 0 deletions source/platforms/github/GitHubGit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export const gitHubGitDSL = (github: GitHubDSL, json: GitJSONDSL, githubAPI?: Gi
process.env["DANGER_GITHUB_API_TOKEN"]
)

if (!githubAPI) {
d("Got no GH API, had to make it")
}

const config: GitJSONToGitDSLConfig = {
repo: github.pr.head.repo.full_name,
baseSHA: github.pr.base.sha,
Expand Down

0 comments on commit 2083255

Please sign in to comment.