Skip to content

Commit

Permalink
More DTS faffing, and updates changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed May 7, 2017
1 parent 9718f29 commit 598db10
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Master

* Update to Jest 20 - macklinu
* Change the danger.d.ts to use module exports instead of globals - orta

### 0.18.0

Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 6.1
version: 7.0

dependencies:
override:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"verbose": true,
"testPathIgnorePatterns": [
"/node_modules/",
"/distribution/"
"/distribution/",
"/types/"
],
"coverageReporters": [
"json"
Expand Down
16 changes: 8 additions & 8 deletions source/danger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ declare module "danger" {
/** A platform agnostic reference to a Git commit */
interface GitCommit {
/** The SHA for the commit */
sha: string,
sha: string
/** Who wrote the commit */
author: GitCommitAuthor,
author: GitCommitAuthor
/** Who deployed the commit */
committer: GitCommitAuthor,
committer: GitCommitAuthor
/** The commit message */
message: string,
message: string
/** Potential parent commits, and other assorted metadata */
tree: any,
tree: any
/** SHAs for the commit's parents */
parents?: string[],
parents?: string[]
/** Link to the commit */
url: string
}

/** An author of a commit */
interface GitCommitAuthor {
/** The display name for the author */
name: string,
name: string
/** The authors email */
email: string,
email: string
/** ISO6801 date string */
date: string
}
Expand Down
16 changes: 8 additions & 8 deletions source/dsl/Commit.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
/** A platform agnostic reference to a Git commit */
export interface GitCommit {
/** The SHA for the commit */
sha: string,
sha: string
/** Who wrote the commit */
author: GitCommitAuthor,
author: GitCommitAuthor
/** Who deployed the commit */
committer: GitCommitAuthor,
committer: GitCommitAuthor
/** The commit message */
message: string,
message: string
/** Potential parent commits, and other assorted metadata */
tree: any,
tree: any
/** SHAs for the commit's parents */
parents?: string[],
parents?: string[]
/** Link to the commit */
url: string
}

/** An author of a commit */
export interface GitCommitAuthor {
/** The display name for the author */
name: string,
name: string
/** The authors email */
email: string,
email: string
/** ISO6801 date string */
date: string
}

0 comments on commit 598db10

Please sign in to comment.