diff --git a/package.json b/package.json index 9a1850884..6f8b9f9b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "danger", - "version": "11.2.3", + "version": "11.2.4", "description": "Unit tests for Team Culture", "main": "distribution/danger.js", "typings": "distribution/danger.d.ts", diff --git a/source/danger.d.ts b/source/danger.d.ts index 3ddd8bedd..dd1b4cfc0 100644 --- a/source/danger.d.ts +++ b/source/danger.d.ts @@ -7,8 +7,6 @@ import { Gitlab } from "@gitbeaker/node" import { File } from "parse-diff" type MarkdownString = string -// TODO: extract out from BitBucket specifically, or create our own type - interface BitBucketCloudJSONDSL { /** The pull request and repository metadata */ metadata: RepoMetaData @@ -197,14 +195,6 @@ interface BitBucketCloudPRActivity { title: string } } -/** Key details about a repo */ -interface RepoMetaData { - /** A path like "artsy/eigen" */ - repoSlug: string - /** The ID for the pull/merge request "11" */ - pullRequestID: string -} - // This is `danger.bitbucket_server` inside the JSON interface BitBucketServerJSONDSL { @@ -1480,9 +1470,6 @@ interface GitHubReviewers { /** Teams that have been requested */ teams: any[] } - -// TODO: extract out from BitBucket specifically, or create our own type - // getPlatformReviewDSLRepresentation interface GitLabJSONDSL { /** Info about the repo */ @@ -1500,6 +1487,8 @@ interface GitLabJSONDSL { interface GitLabDSL extends GitLabJSONDSL { utils: { fileContents(path: string, repoSlug?: string, ref?: string): Promise + addLabels(...labels: string[]): Promise + removeLabels(...labels: string[]): Promise } api: InstanceType } @@ -1771,6 +1760,14 @@ interface GitLabApproval { }[] | GitLabUser[] } + +/** Key details about a repo */ +interface RepoMetaData { + /** A path like "artsy/eigen" */ + repoSlug: string + /** The ID for the pull/merge request "11" */ + pullRequestID: string +} /** * The result of user doing warn, message or fail, built this way for * expansion later.