Skip to content

Commit

Permalink
Adds a changelog and diff
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Apr 12, 2017
1 parent 53ad560 commit f818b4c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### Master

* Adds a `diffTypes` option to `diffForFile` - alex3165

### 0.15.0

* When a Dangerfile fails to eval, send a message to the PR - orta
Expand Down
7 changes: 6 additions & 1 deletion source/danger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,12 @@ export interface GitDSL {
*/
readonly deleted_files: Array<string>

/** Offers the diff for a specific file */
/** Offers the diff for a specific file
*
* @param {string} filename the path to the json file
* @param {string[]} diffTypes An array containing: "add", "del" or "normal" - then you can only get these changes
*/

diffForFile(filename: string, diffTypes?: string[]): string | null,

/**
Expand Down
7 changes: 6 additions & 1 deletion source/dsl/GitDSL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ export interface GitDSL {
*/
readonly deleted_files: Array<string>

/** Offers the diff for a specific file */
/** Offers the diff for a specific file
*
* @param {string} filename the path to the json file
* @param {string[]} diffTypes An array containing: "add", "del" or "normal" - then you can only get these changes
*/

diffForFile(filename: string, diffTypes?: string[]): string | null,

/**
Expand Down

0 comments on commit f818b4c

Please sign in to comment.