Skip to content

Commit 5edb114

Browse files
committed
Release 11.3.1
1 parent 7c4c3bb commit 5edb114

File tree

3 files changed

+35
-28
lines changed

3 files changed

+35
-28
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "danger",
3-
"version": "11.3.0",
3+
"version": "11.3.1",
44
"description": "Unit tests for Team Culture",
55
"main": "distribution/danger.js",
66
"typings": "distribution/danger.d.ts",

source/danger-incoming-process-schema.json

+4
Original file line numberDiff line numberDiff line change
@@ -119468,6 +119468,10 @@
119468119468
"description": "The repo owner",
119469119469
"type": "string"
119470119470
},
119471+
"pull_number": {
119472+
"description": "The PR number",
119473+
"type": "number"
119474+
},
119471119475
"repo": {
119472119476
"description": "The repo name",
119473119477
"type": "string"

source/danger.d.ts

+30-27
Original file line numberDiff line numberDiff line change
@@ -530,29 +530,6 @@ interface BitBucketServerChangesValueMove {
530530
// prettier-ignore
531531
type BitBucketServerChangesValue = BitBucketServerChangesValueAddCopyModifyDelete | BitBucketServerChangesValueMove
532532

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-
556533
/** A platform agnostic reference to a Git commit */
557534
interface GitCommit {
558535
/** The SHA for the commit */
@@ -1484,8 +1461,13 @@ interface GitHubAPIPR {
14841461
owner: string
14851462
/** The repo name */
14861463
repo: string
1487-
/** The PR number */
1464+
/**
1465+
* The PR number
1466+
* @deprecated use `pull_number` instead
1467+
*/
14881468
number: number
1469+
/** The PR number */
1470+
pull_number: number
14891471
}
14901472

14911473
interface GitHubReviewers {
@@ -1541,6 +1523,28 @@ interface Violation {
15411523
/** Optional icon for table (Only valid for messages) */
15421524
icon?: string
15431525
}
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
15441548
/** A function with a callback function, which Danger wraps in a Promise */
15451549
type CallbackableFn = (callback: (done: any) => void) => void
15461550

@@ -1562,7 +1566,7 @@ type Scheduleable = Promise<any> | Promise<void> | CallbackableFn
15621566
declare function schedule(asyncFunction: Scheduleable): void
15631567

15641568
/**
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.
15661570
*
15671571
* @param {MarkdownString} message the String to output
15681572
* @param {string | undefined} file a file which this message should be attached to
@@ -1571,8 +1575,7 @@ declare function schedule(asyncFunction: Scheduleable): void
15711575
declare function fail(message: MarkdownString, file?: string, line?: number): void
15721576

15731577
/**
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.
15761579
*
15771580
* @param {MarkdownString} message the String to output
15781581
* @param {string | undefined} file a file which this message should be attached to

0 commit comments

Comments
 (0)