Skip to content

Commit bea785a

Browse files
committed
Update DTS files
1 parent b615ca4 commit bea785a

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

source/danger.d.ts

+33-1
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,36 @@ interface GitLabMRCommit {
16471647
committer_email: string
16481648
committed_date: string
16491649
}
1650+
1651+
interface GitLabRepositoryFile {
1652+
file_name: string
1653+
file_path: string
1654+
size: number
1655+
encoding: "base64"
1656+
content: string
1657+
content_sha256: string
1658+
ref: string
1659+
blob_id: string
1660+
commit_id: string
1661+
last_commit_id: string
1662+
}
1663+
1664+
interface GitLabCommit {
1665+
id: string
1666+
short_id: string
1667+
title: string
1668+
author_name: string
1669+
author_email: string
1670+
created_at: string
1671+
}
1672+
1673+
interface GitLabRepositoryCompare {
1674+
commit: GitLabCommit
1675+
commits: GitLabCommit[]
1676+
diffs: GitLabMRChange[]
1677+
compare_timeout: boolean
1678+
compare_same_ref: boolean
1679+
}
16501680
/**
16511681
* The result of user doing warn, message or fail, built this way for
16521682
* expansion later.
@@ -1681,6 +1711,8 @@ interface CliArgs {
16811711
dangerfile: string
16821712
/** So you can have many danger runs in one code review */
16831713
id: string
1714+
/** Use staged changes */
1715+
staging?: boolean
16841716
}
16851717

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

0 commit comments

Comments
 (0)