@@ -1647,6 +1647,36 @@ interface GitLabMRCommit {
1647
1647
committer_email : string
1648
1648
committed_date : string
1649
1649
}
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
+ }
1650
1680
/**
1651
1681
* The result of user doing warn, message or fail, built this way for
1652
1682
* expansion later.
@@ -1681,6 +1711,8 @@ interface CliArgs {
1681
1711
dangerfile : string
1682
1712
/** So you can have many danger runs in one code review */
1683
1713
id : string
1714
+ /** Use staged changes */
1715
+ staging ?: boolean
1684
1716
}
1685
1717
1686
1718
// 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):
1735
1767
/**
1736
1768
* Adds a message to the Danger table, the only difference between this
1737
1769
* 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
1739
1771
*
1740
1772
* @param {MarkdownString } message the String to output
1741
1773
* @param {{file?: string, line?: string, icon?: MarkdownString} } [opts]
0 commit comments