@@ -530,29 +530,6 @@ interface BitBucketServerChangesValueMove {
530
530
// prettier-ignore
531
531
type BitBucketServerChangesValue = BitBucketServerChangesValueAddCopyModifyDelete | BitBucketServerChangesValueMove
532
532
533
- /**
534
- * Describes the possible arguments that
535
- * could be used when calling the CLI
536
- */
537
- interface CliArgs {
538
- /** The base reference used by danger PR (e.g. not master) */
539
- base : string
540
- /** For debugging */
541
- verbose : string
542
- /** Used by danger-js o allow having a custom CI */
543
- externalCiProvider : string
544
- /** Use SDTOUT instead of posting to the code review side */
545
- textOnly : string
546
- /** A custom path for the dangerfile (can also be a remote reference) */
547
- dangerfile : string
548
- /** So you can have many danger runs in one code review */
549
- id : string
550
- /** Use staged changes */
551
- staging ?: boolean
552
- }
553
-
554
- // NOTE: if add something new here, you need to change dslGenerator.ts
555
-
556
533
/** A platform agnostic reference to a Git commit */
557
534
interface GitCommit {
558
535
/** The SHA for the commit */
@@ -1484,8 +1461,13 @@ interface GitHubAPIPR {
1484
1461
owner : string
1485
1462
/** The repo name */
1486
1463
repo : string
1487
- /** The PR number */
1464
+ /**
1465
+ * The PR number
1466
+ * @deprecated use `pull_number` instead
1467
+ */
1488
1468
number : number
1469
+ /** The PR number */
1470
+ pull_number : number
1489
1471
}
1490
1472
1491
1473
interface GitHubReviewers {
@@ -1541,6 +1523,28 @@ interface Violation {
1541
1523
/** Optional icon for table (Only valid for messages) */
1542
1524
icon ?: string
1543
1525
}
1526
+ /**
1527
+ * Describes the possible arguments that
1528
+ * could be used when calling the CLI
1529
+ */
1530
+ interface CliArgs {
1531
+ /** The base reference used by danger PR (e.g. not master) */
1532
+ base : string
1533
+ /** For debugging */
1534
+ verbose : string
1535
+ /** Used by danger-js o allow having a custom CI */
1536
+ externalCiProvider : string
1537
+ /** Use SDTOUT instead of posting to the code review side */
1538
+ textOnly : string
1539
+ /** A custom path for the dangerfile (can also be a remote reference) */
1540
+ dangerfile : string
1541
+ /** So you can have many danger runs in one code review */
1542
+ id : string
1543
+ /** Use staged changes */
1544
+ staging ?: boolean
1545
+ }
1546
+
1547
+ // NOTE: if add something new here, you need to change dslGenerator.ts
1544
1548
/** A function with a callback function, which Danger wraps in a Promise */
1545
1549
type CallbackableFn = ( callback : ( done : any ) => void ) => void
1546
1550
@@ -1562,7 +1566,7 @@ type Scheduleable = Promise<any> | Promise<void> | CallbackableFn
1562
1566
declare function schedule ( asyncFunction : Scheduleable ) : void
1563
1567
1564
1568
/**
1565
- * Fails a build, outputting a specific reason for failing into a HTML table.
1569
+ * Highlights critical issues. Message is shown inside a HTML table.
1566
1570
*
1567
1571
* @param {MarkdownString } message the String to output
1568
1572
* @param {string | undefined } file a file which this message should be attached to
@@ -1571,8 +1575,7 @@ declare function schedule(asyncFunction: Scheduleable): void
1571
1575
declare function fail ( message : MarkdownString , file ?: string , line ?: number ) : void
1572
1576
1573
1577
/**
1574
- * Highlights low-priority issues, but does not fail the build. Message
1575
- * is shown inside a HTML table.
1578
+ * Highlights low-priority issues. Message is shown inside a HTML table.
1576
1579
*
1577
1580
* @param {MarkdownString } message the String to output
1578
1581
* @param {string | undefined } file a file which this message should be attached to
0 commit comments