Skip to content

Commit

Permalink
Merge pull request #217 from danger/changelog_docs_fordifftype
Browse files Browse the repository at this point in the history
Adds a changelog and diff
  • Loading branch information
orta committed Apr 12, 2017
2 parents 53ad560 + f818b4c commit 8fba6e7
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 8fba6e7

Please sign in to comment.