Skip to content

Commit

Permalink
Update DTS files
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Mar 21, 2020
1 parent b615ca4 commit bea785a
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion source/danger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,36 @@ interface GitLabMRCommit {
committer_email: string
committed_date: string
}

interface GitLabRepositoryFile {
file_name: string
file_path: string
size: number
encoding: "base64"
content: string
content_sha256: string
ref: string
blob_id: string
commit_id: string
last_commit_id: string
}

interface GitLabCommit {
id: string
short_id: string
title: string
author_name: string
author_email: string
created_at: string
}

interface GitLabRepositoryCompare {
commit: GitLabCommit
commits: GitLabCommit[]
diffs: GitLabMRChange[]
compare_timeout: boolean
compare_same_ref: boolean
}
/**
* The result of user doing warn, message or fail, built this way for
* expansion later.
Expand Down Expand Up @@ -1681,6 +1711,8 @@ interface CliArgs {
dangerfile: string
/** So you can have many danger runs in one code review */
id: string
/** Use staged changes */
staging?: boolean
}

// NOTE: if add something new here, you need to change dslGenerator.ts
Expand Down Expand Up @@ -1735,7 +1767,7 @@ declare function message(message: MarkdownString, file?: string, line?: number):
/**
* Adds a message to the Danger table, the only difference between this
* and warn is the default emoji which shows in the table.
* You can also specify a custom emoji to show in the table for each message
* You can also specifiy a custom emoji to show in the table for each message
*
* @param {MarkdownString} message the String to output
* @param {{file?: string, line?: string, icon?: MarkdownString}} [opts]
Expand Down

0 comments on commit bea785a

Please sign in to comment.