Skip to content

Commit

Permalink
Make commit not optional, use debug for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jan 15, 2017
1 parent 7e797b6 commit 7a620c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion source/api/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import * as fetch from "node-fetch"
import * as debug from "debug"

const d = debug("danger:networking")
declare const global: any

/**
Expand Down Expand Up @@ -42,7 +44,7 @@ export function api(url: string | any, init: any): Promise<any> {
output.push(url)
}

console.log(output.join(" "))
d(output.join(" "))
}

return fetch(url, init)
Expand Down
2 changes: 1 addition & 1 deletion source/dsl/Commit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** A platform agnostic refernce to a Git commit */
export interface GitCommit {
/** The SHA for the commit */
sha?: string,
sha: string,
/** Who wrote the commit */
author: GitCommitAuthor,
/** Who deployed the commit */
Expand Down

0 comments on commit 7a620c8

Please sign in to comment.