From 5edb114d07d57292c707bba1dd72b129edd2f44f Mon Sep 17 00:00:00 2001 From: orta Date: Thu, 7 Dec 2023 17:13:07 +0000 Subject: [PATCH] Release 11.3.1 --- package.json | 2 +- source/danger-incoming-process-schema.json | 4 ++ source/danger.d.ts | 57 ++++++++++++---------- 3 files changed, 35 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index b07d1cdcd..002fd7aa9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "danger", - "version": "11.3.0", + "version": "11.3.1", "description": "Unit tests for Team Culture", "main": "distribution/danger.js", "typings": "distribution/danger.d.ts", diff --git a/source/danger-incoming-process-schema.json b/source/danger-incoming-process-schema.json index 7eb404f64..0bae959d3 100644 --- a/source/danger-incoming-process-schema.json +++ b/source/danger-incoming-process-schema.json @@ -119468,6 +119468,10 @@ "description": "The repo owner", "type": "string" }, + "pull_number": { + "description": "The PR number", + "type": "number" + }, "repo": { "description": "The repo name", "type": "string" diff --git a/source/danger.d.ts b/source/danger.d.ts index c9f4a8529..8bc5630d3 100644 --- a/source/danger.d.ts +++ b/source/danger.d.ts @@ -530,29 +530,6 @@ interface BitBucketServerChangesValueMove { // prettier-ignore type BitBucketServerChangesValue = BitBucketServerChangesValueAddCopyModifyDelete | BitBucketServerChangesValueMove -/** - * Describes the possible arguments that - * could be used when calling the CLI - */ -interface CliArgs { - /** The base reference used by danger PR (e.g. not master) */ - base: string - /** For debugging */ - verbose: string - /** Used by danger-js o allow having a custom CI */ - externalCiProvider: string - /** Use SDTOUT instead of posting to the code review side */ - textOnly: string - /** A custom path for the dangerfile (can also be a remote reference) */ - 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 - /** A platform agnostic reference to a Git commit */ interface GitCommit { /** The SHA for the commit */ @@ -1484,8 +1461,13 @@ interface GitHubAPIPR { owner: string /** The repo name */ repo: string - /** The PR number */ + /** + * The PR number + * @deprecated use `pull_number` instead + */ number: number + /** The PR number */ + pull_number: number } interface GitHubReviewers { @@ -1541,6 +1523,28 @@ interface Violation { /** Optional icon for table (Only valid for messages) */ icon?: string } +/** + * Describes the possible arguments that + * could be used when calling the CLI + */ +interface CliArgs { + /** The base reference used by danger PR (e.g. not master) */ + base: string + /** For debugging */ + verbose: string + /** Used by danger-js o allow having a custom CI */ + externalCiProvider: string + /** Use SDTOUT instead of posting to the code review side */ + textOnly: string + /** A custom path for the dangerfile (can also be a remote reference) */ + 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 /** A function with a callback function, which Danger wraps in a Promise */ type CallbackableFn = (callback: (done: any) => void) => void @@ -1562,7 +1566,7 @@ type Scheduleable = Promise | Promise | CallbackableFn declare function schedule(asyncFunction: Scheduleable): void /** - * Fails a build, outputting a specific reason for failing into a HTML table. + * Highlights critical issues. Message is shown inside a HTML table. * * @param {MarkdownString} message the String to output * @param {string | undefined} file a file which this message should be attached to @@ -1571,8 +1575,7 @@ declare function schedule(asyncFunction: Scheduleable): void declare function fail(message: MarkdownString, file?: string, line?: number): void /** - * Highlights low-priority issues, but does not fail the build. Message - * is shown inside a HTML table. + * Highlights low-priority issues. Message is shown inside a HTML table. * * @param {MarkdownString} message the String to output * @param {string | undefined} file a file which this message should be attached to