danger 10.6.3 → 10.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.md +1 -1
- package/CHANGELOG.md +21 -0
- package/README.md +2 -2
- package/distribution/api/fetch.js +22 -8
- package/distribution/api/fetch.js.map +1 -1
- package/distribution/ci_source/ci_source_helpers.js +3 -1
- package/distribution/ci_source/ci_source_helpers.js.map +1 -1
- package/distribution/ci_source/get_ci_source.js +30 -9
- package/distribution/ci_source/get_ci_source.js.map +1 -1
- package/distribution/ci_source/providers/AppCenter.d.ts +6 -6
- package/distribution/ci_source/providers/AppCenter.js +28 -14
- package/distribution/ci_source/providers/AppCenter.js.map +1 -1
- package/distribution/ci_source/providers/Bamboo.d.ts +5 -5
- package/distribution/ci_source/providers/Bamboo.js +6 -5
- package/distribution/ci_source/providers/Bamboo.js.map +1 -1
- package/distribution/ci_source/providers/BitbucketPipelines.d.ts +6 -6
- package/distribution/ci_source/providers/BitbucketPipelines.js +7 -6
- package/distribution/ci_source/providers/BitbucketPipelines.js.map +1 -1
- package/distribution/ci_source/providers/Bitrise.d.ts +7 -7
- package/distribution/ci_source/providers/Bitrise.js +8 -7
- package/distribution/ci_source/providers/Bitrise.js.map +1 -1
- package/distribution/ci_source/providers/BuddyBuild.d.ts +5 -5
- package/distribution/ci_source/providers/BuddyBuild.js +6 -5
- package/distribution/ci_source/providers/BuddyBuild.js.map +1 -1
- package/distribution/ci_source/providers/BuddyWorks.d.ts +6 -6
- package/distribution/ci_source/providers/BuddyWorks.js +7 -6
- package/distribution/ci_source/providers/BuddyWorks.js.map +1 -1
- package/distribution/ci_source/providers/Buildkite.d.ts +6 -6
- package/distribution/ci_source/providers/Buildkite.js +7 -6
- package/distribution/ci_source/providers/Buildkite.js.map +1 -1
- package/distribution/ci_source/providers/Circle.d.ts +8 -8
- package/distribution/ci_source/providers/Circle.js +9 -8
- package/distribution/ci_source/providers/Circle.js.map +1 -1
- package/distribution/ci_source/providers/Cirrus.d.ts +6 -6
- package/distribution/ci_source/providers/Cirrus.js +7 -6
- package/distribution/ci_source/providers/Cirrus.js.map +1 -1
- package/distribution/ci_source/providers/CodeBuild.d.ts +6 -6
- package/distribution/ci_source/providers/CodeBuild.js +9 -7
- package/distribution/ci_source/providers/CodeBuild.js.map +1 -1
- package/distribution/ci_source/providers/Codefresh.d.ts +6 -6
- package/distribution/ci_source/providers/Codefresh.js +7 -6
- package/distribution/ci_source/providers/Codefresh.js.map +1 -1
- package/distribution/ci_source/providers/Codemagic.d.ts +6 -6
- package/distribution/ci_source/providers/Codemagic.js +7 -6
- package/distribution/ci_source/providers/Codemagic.js.map +1 -1
- package/distribution/ci_source/providers/Codeship.d.ts +6 -6
- package/distribution/ci_source/providers/Codeship.js +9 -7
- package/distribution/ci_source/providers/Codeship.js.map +1 -1
- package/distribution/ci_source/providers/Concourse.d.ts +6 -6
- package/distribution/ci_source/providers/Concourse.js +7 -6
- package/distribution/ci_source/providers/Concourse.js.map +1 -1
- package/distribution/ci_source/providers/DockerCloud.d.ts +6 -6
- package/distribution/ci_source/providers/DockerCloud.js +7 -6
- package/distribution/ci_source/providers/DockerCloud.js.map +1 -1
- package/distribution/ci_source/providers/Drone.d.ts +5 -5
- package/distribution/ci_source/providers/Drone.js +6 -5
- package/distribution/ci_source/providers/Drone.js.map +1 -1
- package/distribution/ci_source/providers/Fake.d.ts +5 -5
- package/distribution/ci_source/providers/Fake.js +7 -6
- package/distribution/ci_source/providers/Fake.js.map +1 -1
- package/distribution/ci_source/providers/GitHubActions.d.ts +6 -6
- package/distribution/ci_source/providers/GitHubActions.js +7 -6
- package/distribution/ci_source/providers/GitHubActions.js.map +1 -1
- package/distribution/ci_source/providers/GitLabCI.d.ts +6 -6
- package/distribution/ci_source/providers/GitLabCI.js +7 -6
- package/distribution/ci_source/providers/GitLabCI.js.map +1 -1
- package/distribution/ci_source/providers/Jenkins.d.ts +7 -7
- package/distribution/ci_source/providers/Jenkins.js +8 -7
- package/distribution/ci_source/providers/Jenkins.js.map +1 -1
- package/distribution/ci_source/providers/Netlify.d.ts +5 -5
- package/distribution/ci_source/providers/Netlify.js +6 -5
- package/distribution/ci_source/providers/Netlify.js.map +1 -1
- package/distribution/ci_source/providers/Nevercode.d.ts +6 -6
- package/distribution/ci_source/providers/Nevercode.js +7 -6
- package/distribution/ci_source/providers/Nevercode.js.map +1 -1
- package/distribution/ci_source/providers/Screwdriver.d.ts +6 -6
- package/distribution/ci_source/providers/Screwdriver.js +7 -6
- package/distribution/ci_source/providers/Screwdriver.js.map +1 -1
- package/distribution/ci_source/providers/Semaphore.d.ts +5 -5
- package/distribution/ci_source/providers/Semaphore.js +6 -5
- package/distribution/ci_source/providers/Semaphore.js.map +1 -1
- package/distribution/ci_source/providers/Surf.d.ts +5 -5
- package/distribution/ci_source/providers/Surf.js +6 -5
- package/distribution/ci_source/providers/Surf.js.map +1 -1
- package/distribution/ci_source/providers/TeamCity.d.ts +5 -5
- package/distribution/ci_source/providers/TeamCity.js +6 -5
- package/distribution/ci_source/providers/TeamCity.js.map +1 -1
- package/distribution/ci_source/providers/Travis.d.ts +6 -6
- package/distribution/ci_source/providers/Travis.js +7 -6
- package/distribution/ci_source/providers/Travis.js.map +1 -1
- package/distribution/ci_source/providers/VSTS.d.ts +5 -5
- package/distribution/ci_source/providers/VSTS.js +6 -5
- package/distribution/ci_source/providers/VSTS.js.map +1 -1
- package/distribution/ci_source/providers/XcodeCloud.d.ts +22 -0
- package/distribution/ci_source/providers/XcodeCloud.js +68 -0
- package/distribution/ci_source/providers/XcodeCloud.js.map +1 -0
- package/distribution/ci_source/providers/index.d.ts +3 -2
- package/distribution/ci_source/providers/index.js +4 -0
- package/distribution/ci_source/providers/index.js.map +1 -1
- package/distribution/ci_source/providers/local-repo.d.ts +5 -5
- package/distribution/ci_source/providers/local-repo.js +7 -6
- package/distribution/ci_source/providers/local-repo.js.map +1 -1
- package/distribution/commands/ci/resetStatus.js +4 -3
- package/distribution/commands/ci/resetStatus.js.map +1 -1
- package/distribution/commands/ci/runner.js +4 -3
- package/distribution/commands/ci/runner.js.map +1 -1
- package/distribution/commands/danger-init.js +29 -17
- package/distribution/commands/danger-init.js.map +1 -1
- package/distribution/commands/danger-pr.js +6 -4
- package/distribution/commands/danger-pr.js.map +1 -1
- package/distribution/commands/danger-process.js +17 -5
- package/distribution/commands/danger-process.js.map +1 -1
- package/distribution/commands/danger-runner.js +3 -3
- package/distribution/commands/danger-runner.js.map +1 -1
- package/distribution/commands/init/add-to-ci.js +6 -5
- package/distribution/commands/init/add-to-ci.js.map +1 -1
- package/distribution/commands/init/default-dangerfile.js +16 -3
- package/distribution/commands/init/default-dangerfile.js.map +1 -1
- package/distribution/commands/init/get-repo-slug.js +1 -0
- package/distribution/commands/init/get-repo-slug.js.map +1 -1
- package/distribution/commands/init/interfaces.js +1 -0
- package/distribution/commands/init/interfaces.js.map +1 -1
- package/distribution/commands/init/state-setup.js +23 -10
- package/distribution/commands/init/state-setup.js.map +1 -1
- package/distribution/commands/utils/chainsmoker.js +1 -1
- package/distribution/commands/utils/chainsmoker.js.map +1 -1
- package/distribution/commands/utils/fileUtils.js +1 -0
- package/distribution/commands/utils/fileUtils.js.map +1 -1
- package/distribution/commands/utils/getRuntimeCISource.js +3 -3
- package/distribution/commands/utils/getRuntimeCISource.js.map +1 -1
- package/distribution/commands/utils/reporting.js +12 -4
- package/distribution/commands/utils/reporting.js.map +1 -1
- package/distribution/commands/utils/runDangerSubprocess.js +7 -5
- package/distribution/commands/utils/runDangerSubprocess.js.map +1 -1
- package/distribution/commands/utils/validateDangerfileExists.js +14 -2
- package/distribution/commands/utils/validateDangerfileExists.js.map +1 -1
- package/distribution/danger.d.ts +9 -4
- package/distribution/danger.js.flow +11 -4
- package/distribution/debug.js +1 -0
- package/distribution/debug.js.map +1 -1
- package/distribution/dsl/BitBucketCloudDSL.d.ts +4 -4
- package/distribution/dsl/DangerDSL.js +1 -0
- package/distribution/dsl/DangerDSL.js.map +1 -1
- package/distribution/dsl/DangerResults.js +10 -2
- package/distribution/dsl/DangerResults.js.map +1 -1
- package/distribution/dsl/GitLabDSL.d.ts +5 -0
- package/distribution/dsl/Violation.js +1 -0
- package/distribution/dsl/Violation.js.map +1 -1
- package/distribution/platforms/BitBucketCloud.js +3 -1
- package/distribution/platforms/BitBucketCloud.js.map +1 -1
- package/distribution/platforms/BitBucketServer.js +4 -2
- package/distribution/platforms/BitBucketServer.js.map +1 -1
- package/distribution/platforms/FakePlatform.js +3 -1
- package/distribution/platforms/FakePlatform.js.map +1 -1
- package/distribution/platforms/GitHub.js +7 -6
- package/distribution/platforms/GitHub.js.map +1 -1
- package/distribution/platforms/GitLab.js +5 -4
- package/distribution/platforms/GitLab.js.map +1 -1
- package/distribution/platforms/LocalGit.js +3 -1
- package/distribution/platforms/LocalGit.js.map +1 -1
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudAPI.js +4 -2
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudAPI.js.map +1 -1
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudGit.js +3 -1
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudGit.js.map +1 -1
- package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.js +23 -23
- package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.js.map +1 -1
- package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.js +17 -17
- package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.js.map +1 -1
- package/distribution/platforms/bitbucket_server/BitBucketServerAPI.js +3 -1
- package/distribution/platforms/bitbucket_server/BitBucketServerAPI.js.map +1 -1
- package/distribution/platforms/bitbucket_server/BitBucketServerGit.js +15 -7
- package/distribution/platforms/bitbucket_server/BitBucketServerGit.js.map +1 -1
- package/distribution/platforms/git/diffToGitJSONDSL.js +1 -0
- package/distribution/platforms/git/diffToGitJSONDSL.js.map +1 -1
- package/distribution/platforms/git/gitJSONToGitDSL.js +27 -14
- package/distribution/platforms/git/gitJSONToGitDSL.js.map +1 -1
- package/distribution/platforms/git/localGetCommits.d.ts +1 -2
- package/distribution/platforms/git/localGetCommits.js +35 -95
- package/distribution/platforms/git/localGetCommits.js.map +1 -1
- package/distribution/platforms/git/localGetDiff.js +1 -0
- package/distribution/platforms/git/localGetDiff.js.map +1 -1
- package/distribution/platforms/git/localGetFileAtSHA.js +1 -0
- package/distribution/platforms/git/localGetFileAtSHA.js.map +1 -1
- package/distribution/platforms/git/localLogGitCommits.d.ts +31 -0
- package/distribution/platforms/git/localLogGitCommits.js +64 -0
- package/distribution/platforms/git/localLogGitCommits.js.map +1 -0
- package/distribution/platforms/github/GitHubAPI.js +5 -3
- package/distribution/platforms/github/GitHubAPI.js.map +1 -1
- package/distribution/platforms/github/GitHubGit.js +3 -1
- package/distribution/platforms/github/GitHubGit.js.map +1 -1
- package/distribution/platforms/github/GitHubUtils.js +7 -6
- package/distribution/platforms/github/GitHubUtils.js.map +1 -1
- package/distribution/platforms/github/comms/checks/githubAppSupport.js +23 -10
- package/distribution/platforms/github/comms/checks/githubAppSupport.js.map +1 -1
- package/distribution/platforms/github/comms/checks/resultsToCheck.js +10 -10
- package/distribution/platforms/github/comms/checks/resultsToCheck.js.map +1 -1
- package/distribution/platforms/github/comms/checksCommenter.js +4 -3
- package/distribution/platforms/github/comms/checksCommenter.js.map +1 -1
- package/distribution/platforms/github/comms/issueCommenter.js +8 -7
- package/distribution/platforms/github/comms/issueCommenter.js.map +1 -1
- package/distribution/platforms/github/customGitHubRequire.js +12 -4
- package/distribution/platforms/github/customGitHubRequire.js.map +1 -1
- package/distribution/platforms/gitlab/GitLabAPI.d.ts +9 -3
- package/distribution/platforms/gitlab/GitLabAPI.js +70 -3
- package/distribution/platforms/gitlab/GitLabAPI.js.map +1 -1
- package/distribution/platforms/gitlab/GitLabGit.js +4 -3
- package/distribution/platforms/gitlab/GitLabGit.js.map +1 -1
- package/distribution/platforms/platform.js +18 -3
- package/distribution/platforms/platform.js.map +1 -1
- package/distribution/platforms/pullRequestParser.js +16 -3
- package/distribution/platforms/pullRequestParser.js.map +1 -1
- package/distribution/runner/DangerUtils.js +1 -0
- package/distribution/runner/DangerUtils.js.map +1 -1
- package/distribution/runner/Dangerfile.js +1 -0
- package/distribution/runner/Dangerfile.js.map +1 -1
- package/distribution/runner/Executor.d.ts +1 -1
- package/distribution/runner/Executor.js +13 -4
- package/distribution/runner/Executor.js.map +1 -1
- package/distribution/runner/dangerDSLJSON.js +1 -0
- package/distribution/runner/dangerDSLJSON.js.map +1 -1
- package/distribution/runner/dslGenerator.js +13 -11
- package/distribution/runner/dslGenerator.js.map +1 -1
- package/distribution/runner/jsonToContext.js +3 -1
- package/distribution/runner/jsonToContext.js.map +1 -1
- package/distribution/runner/jsonToDSL.js +26 -12
- package/distribution/runner/jsonToDSL.js.map +1 -1
- package/distribution/runner/runners/inline.js +24 -11
- package/distribution/runner/runners/inline.js.map +1 -1
- package/distribution/runner/runners/utils/resultsForCaughtError.js.map +1 -1
- package/distribution/runner/runners/utils/transpiler.js +23 -3
- package/distribution/runner/runners/utils/transpiler.js.map +1 -1
- package/distribution/runner/templates/bitbucketCloudTemplate.js +1 -0
- package/distribution/runner/templates/bitbucketCloudTemplate.js.map +1 -1
- package/distribution/runner/templates/bitbucketServerTemplate.js +1 -0
- package/distribution/runner/templates/bitbucketServerTemplate.js.map +1 -1
- package/distribution/runner/templates/githubIssueTemplate.js +1 -0
- package/distribution/runner/templates/githubIssueTemplate.js.map +1 -1
- package/distribution/runner/templates/markdownTableTemplate.js +1 -0
- package/distribution/runner/templates/markdownTableTemplate.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuddyBuild = void 0;
|
|
3
4
|
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
4
5
|
/**
|
|
5
6
|
* ### CI Setup
|
|
@@ -24,14 +25,14 @@ var BuddyBuild = /** @class */ (function () {
|
|
|
24
25
|
get: function () {
|
|
25
26
|
return "buddybuild";
|
|
26
27
|
},
|
|
27
|
-
enumerable:
|
|
28
|
+
enumerable: false,
|
|
28
29
|
configurable: true
|
|
29
30
|
});
|
|
30
31
|
Object.defineProperty(BuddyBuild.prototype, "isCI", {
|
|
31
32
|
get: function () {
|
|
32
33
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BUDDYBUILD_BUILD_ID"]);
|
|
33
34
|
},
|
|
34
|
-
enumerable:
|
|
35
|
+
enumerable: false,
|
|
35
36
|
configurable: true
|
|
36
37
|
});
|
|
37
38
|
Object.defineProperty(BuddyBuild.prototype, "isPR", {
|
|
@@ -40,21 +41,21 @@ var BuddyBuild = /** @class */ (function () {
|
|
|
40
41
|
var mustBeInts = ["BUDDYBUILD_PULL_REQUEST"];
|
|
41
42
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
42
43
|
},
|
|
43
|
-
enumerable:
|
|
44
|
+
enumerable: false,
|
|
44
45
|
configurable: true
|
|
45
46
|
});
|
|
46
47
|
Object.defineProperty(BuddyBuild.prototype, "pullRequestID", {
|
|
47
48
|
get: function () {
|
|
48
49
|
return this.env.BUDDYBUILD_PULL_REQUEST;
|
|
49
50
|
},
|
|
50
|
-
enumerable:
|
|
51
|
+
enumerable: false,
|
|
51
52
|
configurable: true
|
|
52
53
|
});
|
|
53
54
|
Object.defineProperty(BuddyBuild.prototype, "repoSlug", {
|
|
54
55
|
get: function () {
|
|
55
56
|
return this.env.BUDDYBUILD_REPO_SLUG;
|
|
56
57
|
},
|
|
57
|
-
enumerable:
|
|
58
|
+
enumerable: false,
|
|
58
59
|
configurable: true
|
|
59
60
|
});
|
|
60
61
|
return BuddyBuild;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuddyBuild.js","sourceRoot":"","sources":["../../../source/ci_source/providers/BuddyBuild.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BuddyBuild.js","sourceRoot":"","sources":["../../../source/ci_source/providers/BuddyBuild.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;GAcG;AACH;IACE,oBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,4BAAI;aAAR;YACE,OAAO,YAAY,CAAA;QACrB,CAAC;;;OAAA;IAED,sBAAI,4BAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAA;QAC9D,CAAC;;;OAAA;IAED,sBAAI,4BAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,yBAAyB,EAAE,sBAAsB,CAAC,CAAA;YACpE,IAAM,UAAU,GAAG,CAAC,yBAAyB,CAAC,CAAA;YAC9C,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAED,sBAAI,qCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAA;QACzC,CAAC;;;OAAA;IAED,sBAAI,gCAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAA;QACtC,CAAC;;;OAAA;IACH,iBAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,gCAAU"}
|
|
@@ -16,10 +16,10 @@ import { Env, CISource } from "../ci_source";
|
|
|
16
16
|
export declare class BuddyWorks implements CISource {
|
|
17
17
|
private readonly env;
|
|
18
18
|
constructor(env: Env);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
get name(): string;
|
|
20
|
+
get isCI(): boolean;
|
|
21
|
+
get isPR(): boolean;
|
|
22
|
+
get pullRequestID(): string;
|
|
23
|
+
get repoSlug(): string;
|
|
24
|
+
get ciRunURL(): any;
|
|
25
25
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuddyWorks = void 0;
|
|
3
4
|
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
4
5
|
/**
|
|
5
6
|
* ### CI Setup
|
|
@@ -23,14 +24,14 @@ var BuddyWorks = /** @class */ (function () {
|
|
|
23
24
|
get: function () {
|
|
24
25
|
return "Buddy.works";
|
|
25
26
|
},
|
|
26
|
-
enumerable:
|
|
27
|
+
enumerable: false,
|
|
27
28
|
configurable: true
|
|
28
29
|
});
|
|
29
30
|
Object.defineProperty(BuddyWorks.prototype, "isCI", {
|
|
30
31
|
get: function () {
|
|
31
32
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BUDDY_PIPELINE_ID"]);
|
|
32
33
|
},
|
|
33
|
-
enumerable:
|
|
34
|
+
enumerable: false,
|
|
34
35
|
configurable: true
|
|
35
36
|
});
|
|
36
37
|
Object.defineProperty(BuddyWorks.prototype, "isPR", {
|
|
@@ -39,28 +40,28 @@ var BuddyWorks = /** @class */ (function () {
|
|
|
39
40
|
var mustBeInts = ["BUDDY_EXECUTION_PULL_REQUEST_NO"];
|
|
40
41
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
41
42
|
},
|
|
42
|
-
enumerable:
|
|
43
|
+
enumerable: false,
|
|
43
44
|
configurable: true
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(BuddyWorks.prototype, "pullRequestID", {
|
|
46
47
|
get: function () {
|
|
47
48
|
return this.env.BUDDY_EXECUTION_PULL_REQUEST_NO;
|
|
48
49
|
},
|
|
49
|
-
enumerable:
|
|
50
|
+
enumerable: false,
|
|
50
51
|
configurable: true
|
|
51
52
|
});
|
|
52
53
|
Object.defineProperty(BuddyWorks.prototype, "repoSlug", {
|
|
53
54
|
get: function () {
|
|
54
55
|
return this.env.BUDDY_REPO_SLUG;
|
|
55
56
|
},
|
|
56
|
-
enumerable:
|
|
57
|
+
enumerable: false,
|
|
57
58
|
configurable: true
|
|
58
59
|
});
|
|
59
60
|
Object.defineProperty(BuddyWorks.prototype, "ciRunURL", {
|
|
60
61
|
get: function () {
|
|
61
62
|
return this.env.BUDDY_EXECUTION_URL;
|
|
62
63
|
},
|
|
63
|
-
enumerable:
|
|
64
|
+
enumerable: false,
|
|
64
65
|
configurable: true
|
|
65
66
|
});
|
|
66
67
|
return BuddyWorks;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuddyWorks.js","sourceRoot":"","sources":["../../../source/ci_source/providers/BuddyWorks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BuddyWorks.js","sourceRoot":"","sources":["../../../source/ci_source/providers/BuddyWorks.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAC9E;;;;;;;;;;;;;GAaG;AACH;IACE,oBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,4BAAI;aAAR;YACE,OAAO,aAAa,CAAA;QACtB,CAAC;;;OAAA;IAED,sBAAI,4BAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAA;QAC5D,CAAC;;;OAAA;IAED,sBAAI,4BAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,mBAAmB,EAAE,iCAAiC,EAAE,iBAAiB,CAAC,CAAA;YAC5F,IAAM,UAAU,GAAG,CAAC,iCAAiC,CAAC,CAAA;YAEtD,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAED,sBAAI,qCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,+BAA+B,CAAA;QACjD,CAAC;;;OAAA;IAED,sBAAI,gCAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,eAAe,CAAA;QACjC,CAAC;;;OAAA;IAED,sBAAI,gCAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACrC,CAAC;;;OAAA;IACH,iBAAC;AAAD,CAAC,AA7BD,IA6BC;AA7BY,gCAAU;AA+BvB,2CAA2C;AAC3C,yFAAyF"}
|
|
@@ -20,11 +20,11 @@ import { Env, CISource } from "../ci_source";
|
|
|
20
20
|
export declare class Buildkite implements CISource {
|
|
21
21
|
private readonly env;
|
|
22
22
|
constructor(env: Env);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
get name(): string;
|
|
24
|
+
get isCI(): boolean;
|
|
25
|
+
get isPR(): boolean;
|
|
26
26
|
private _parseRepoURL;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
get pullRequestID(): string;
|
|
28
|
+
get repoSlug(): string;
|
|
29
|
+
get ciRunURL(): string | undefined;
|
|
30
30
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Buildkite = void 0;
|
|
3
4
|
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
4
5
|
/**
|
|
5
6
|
* ### CI Setup
|
|
@@ -27,14 +28,14 @@ var Buildkite = /** @class */ (function () {
|
|
|
27
28
|
get: function () {
|
|
28
29
|
return "Buildkite";
|
|
29
30
|
},
|
|
30
|
-
enumerable:
|
|
31
|
+
enumerable: false,
|
|
31
32
|
configurable: true
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(Buildkite.prototype, "isCI", {
|
|
34
35
|
get: function () {
|
|
35
36
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BUILDKITE"]);
|
|
36
37
|
},
|
|
37
|
-
enumerable:
|
|
38
|
+
enumerable: false,
|
|
38
39
|
configurable: true
|
|
39
40
|
});
|
|
40
41
|
Object.defineProperty(Buildkite.prototype, "isPR", {
|
|
@@ -43,7 +44,7 @@ var Buildkite = /** @class */ (function () {
|
|
|
43
44
|
var mustBeInts = ["BUILDKITE_PULL_REQUEST"];
|
|
44
45
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
45
46
|
},
|
|
46
|
-
enumerable:
|
|
47
|
+
enumerable: false,
|
|
47
48
|
configurable: true
|
|
48
49
|
});
|
|
49
50
|
Buildkite.prototype._parseRepoURL = function () {
|
|
@@ -56,21 +57,21 @@ var Buildkite = /** @class */ (function () {
|
|
|
56
57
|
get: function () {
|
|
57
58
|
return this.env.BUILDKITE_PULL_REQUEST;
|
|
58
59
|
},
|
|
59
|
-
enumerable:
|
|
60
|
+
enumerable: false,
|
|
60
61
|
configurable: true
|
|
61
62
|
});
|
|
62
63
|
Object.defineProperty(Buildkite.prototype, "repoSlug", {
|
|
63
64
|
get: function () {
|
|
64
65
|
return this._parseRepoURL();
|
|
65
66
|
},
|
|
66
|
-
enumerable:
|
|
67
|
+
enumerable: false,
|
|
67
68
|
configurable: true
|
|
68
69
|
});
|
|
69
70
|
Object.defineProperty(Buildkite.prototype, "ciRunURL", {
|
|
70
71
|
get: function () {
|
|
71
72
|
return process.env.BUILDKITE_BUILD_URL;
|
|
72
73
|
},
|
|
73
|
-
enumerable:
|
|
74
|
+
enumerable: false,
|
|
74
75
|
configurable: true
|
|
75
76
|
});
|
|
76
77
|
return Buildkite;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Buildkite.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Buildkite.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Buildkite.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Buildkite.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;GAiBG;AACH;IACE,mBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,2BAAI;aAAR;YACE,OAAO,WAAW,CAAA;QACpB,CAAC;;;OAAA;IAED,sBAAI,2BAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;QACpD,CAAC;;;OAAA;IAED,sBAAI,2BAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,gBAAgB,CAAC,CAAA;YACnC,IAAM,UAAU,GAAG,CAAC,wBAAwB,CAAC,CAAA;YAC7C,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAEO,iCAAa,GAArB;QACE,IAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAA;QACvC,IAAM,MAAM,GAAG,IAAI,MAAM,CAAC,gCAAgC,CAAC,CAAA;QAC3D,IAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QACrC,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAClC,CAAC;IAED,sBAAI,oCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAA;QACxC,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,aAAa,EAAE,CAAA;QAC7B,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACxC,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AAnCD,IAmCC;AAnCY,8BAAS"}
|
|
@@ -44,13 +44,13 @@ import { Env, CISource } from "../ci_source";
|
|
|
44
44
|
export declare class Circle implements CISource {
|
|
45
45
|
private readonly env;
|
|
46
46
|
constructor(env: Env);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
get name(): string;
|
|
48
|
+
get isCI(): boolean;
|
|
49
|
+
get isPR(): boolean;
|
|
50
50
|
private _prParseURL;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
get pullRequestID(): string;
|
|
52
|
+
get repoSlug(): string;
|
|
53
|
+
get repoURL(): string;
|
|
54
|
+
get ciRunURL(): any;
|
|
55
|
+
get commitHash(): string;
|
|
56
56
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Circle = void 0;
|
|
3
4
|
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
4
5
|
/**
|
|
5
6
|
* ### CI Setup
|
|
@@ -51,14 +52,14 @@ var Circle = /** @class */ (function () {
|
|
|
51
52
|
get: function () {
|
|
52
53
|
return "Circle CI";
|
|
53
54
|
},
|
|
54
|
-
enumerable:
|
|
55
|
+
enumerable: false,
|
|
55
56
|
configurable: true
|
|
56
57
|
});
|
|
57
58
|
Object.defineProperty(Circle.prototype, "isCI", {
|
|
58
59
|
get: function () {
|
|
59
60
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CIRCLE_BUILD_NUM"]);
|
|
60
61
|
},
|
|
61
|
-
enumerable:
|
|
62
|
+
enumerable: false,
|
|
62
63
|
configurable: true
|
|
63
64
|
});
|
|
64
65
|
Object.defineProperty(Circle.prototype, "isPR", {
|
|
@@ -69,7 +70,7 @@ var Circle = /** @class */ (function () {
|
|
|
69
70
|
var mustHave = ["CIRCLE_CI_API_TOKEN", "CIRCLE_PROJECT_USERNAME", "CIRCLE_PROJECT_REPONAME", "CIRCLE_BUILD_NUM"];
|
|
70
71
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, ["CIRCLE_PR_NUMBER"]);
|
|
71
72
|
},
|
|
72
|
-
enumerable:
|
|
73
|
+
enumerable: false,
|
|
73
74
|
configurable: true
|
|
74
75
|
});
|
|
75
76
|
Circle.prototype._prParseURL = function () {
|
|
@@ -93,7 +94,7 @@ var Circle = /** @class */ (function () {
|
|
|
93
94
|
return id || "";
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
|
-
enumerable:
|
|
97
|
+
enumerable: false,
|
|
97
98
|
configurable: true
|
|
98
99
|
});
|
|
99
100
|
Object.defineProperty(Circle.prototype, "repoSlug", {
|
|
@@ -101,28 +102,28 @@ var Circle = /** @class */ (function () {
|
|
|
101
102
|
var _a = this._prParseURL(), owner = _a.owner, reponame = _a.reponame;
|
|
102
103
|
return owner && reponame ? owner + "/" + reponame : "";
|
|
103
104
|
},
|
|
104
|
-
enumerable:
|
|
105
|
+
enumerable: false,
|
|
105
106
|
configurable: true
|
|
106
107
|
});
|
|
107
108
|
Object.defineProperty(Circle.prototype, "repoURL", {
|
|
108
109
|
get: function () {
|
|
109
110
|
return this.env.CIRCLE_REPOSITORY_URL;
|
|
110
111
|
},
|
|
111
|
-
enumerable:
|
|
112
|
+
enumerable: false,
|
|
112
113
|
configurable: true
|
|
113
114
|
});
|
|
114
115
|
Object.defineProperty(Circle.prototype, "ciRunURL", {
|
|
115
116
|
get: function () {
|
|
116
117
|
return this.env["CIRCLE_BUILD_URL"];
|
|
117
118
|
},
|
|
118
|
-
enumerable:
|
|
119
|
+
enumerable: false,
|
|
119
120
|
configurable: true
|
|
120
121
|
});
|
|
121
122
|
Object.defineProperty(Circle.prototype, "commitHash", {
|
|
122
123
|
get: function () {
|
|
123
124
|
return this.env.CIRCLE_SHA1;
|
|
124
125
|
},
|
|
125
|
-
enumerable:
|
|
126
|
+
enumerable: false,
|
|
126
127
|
configurable: true
|
|
127
128
|
});
|
|
128
129
|
return Circle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Circle.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Circle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Circle.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Circle.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH;IACE,gBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,wBAAI;aAAR;YACE,OAAO,WAAW,CAAA;QACpB,CAAC;;;OAAA;IAED,sBAAI,wBAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAA;QAC3D,CAAC;;;OAAA;IAED,sBAAI,wBAAI;aAAR;YACE,IAAI,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,IAAI,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE;gBAC9G,OAAO,IAAI,CAAA;aACZ;YAED,IAAM,QAAQ,GAAG,CAAC,qBAAqB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,kBAAkB,CAAC,CAAA;YAClH,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAA;QACtG,CAAC;;;OAAA;IAEO,4BAAW,GAAnB;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,eAAe,IAAI,IAAI,CAAC,GAAG,CAAC,mBAAmB,IAAI,EAAE,CAAA;QAC5E,IAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAClC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;YAC1B,IAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;YAC1B,IAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;YAC7B,IAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;YACvB,OAAO,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAAE,EAAE,IAAA,EAAE,CAAA;SAC/B;QACD,OAAO,EAAE,CAAA;IACX,CAAC;IAED,sBAAI,iCAAa;aAAjB;YACE,IAAI,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE;gBAC7B,OAAO,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAA;aACjC;iBAAM;gBACG,IAAA,EAAE,GAAK,IAAI,CAAC,WAAW,EAAE,GAAvB,CAAuB;gBACjC,OAAO,EAAE,IAAI,EAAE,CAAA;aAChB;QACH,CAAC;;;OAAA;IAED,sBAAI,4BAAQ;aAAZ;YACQ,IAAA,KAAsB,IAAI,CAAC,WAAW,EAAE,EAAtC,KAAK,WAAA,EAAE,QAAQ,cAAuB,CAAA;YAC9C,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAI,KAAK,SAAI,QAAU,CAAC,CAAC,CAAC,EAAE,CAAA;QACxD,CAAC;;;OAAA;IAED,sBAAI,2BAAO;aAAX;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAA;QACvC,CAAC;;;OAAA;IAED,sBAAI,4BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;QACrC,CAAC;;;OAAA;IAED,sBAAI,8BAAU;aAAd;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,CAAA;QAC7B,CAAC;;;OAAA;IACH,aAAC;AAAD,CAAC,AAzDD,IAyDC;AAzDY,wBAAM"}
|
|
@@ -20,10 +20,10 @@ import { Env, CISource } from "../ci_source";
|
|
|
20
20
|
export declare class Cirrus implements CISource {
|
|
21
21
|
private readonly env;
|
|
22
22
|
constructor(env: Env);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
get name(): string;
|
|
24
|
+
get isCI(): boolean;
|
|
25
|
+
get isPR(): boolean;
|
|
26
|
+
get pullRequestID(): string;
|
|
27
|
+
get repoSlug(): string;
|
|
28
|
+
get ciRunURL(): string;
|
|
29
29
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Cirrus = void 0;
|
|
3
4
|
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
4
5
|
/**
|
|
5
6
|
* ### CI Setup
|
|
@@ -27,14 +28,14 @@ var Cirrus = /** @class */ (function () {
|
|
|
27
28
|
get: function () {
|
|
28
29
|
return "Cirrus CI";
|
|
29
30
|
},
|
|
30
|
-
enumerable:
|
|
31
|
+
enumerable: false,
|
|
31
32
|
configurable: true
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(Cirrus.prototype, "isCI", {
|
|
34
35
|
get: function () {
|
|
35
36
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CIRRUS_CI"]);
|
|
36
37
|
},
|
|
37
|
-
enumerable:
|
|
38
|
+
enumerable: false,
|
|
38
39
|
configurable: true
|
|
39
40
|
});
|
|
40
41
|
Object.defineProperty(Cirrus.prototype, "isPR", {
|
|
@@ -43,28 +44,28 @@ var Cirrus = /** @class */ (function () {
|
|
|
43
44
|
var mustBeInts = ["CIRRUS_PR"];
|
|
44
45
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
45
46
|
},
|
|
46
|
-
enumerable:
|
|
47
|
+
enumerable: false,
|
|
47
48
|
configurable: true
|
|
48
49
|
});
|
|
49
50
|
Object.defineProperty(Cirrus.prototype, "pullRequestID", {
|
|
50
51
|
get: function () {
|
|
51
52
|
return this.env.CIRRUS_PR;
|
|
52
53
|
},
|
|
53
|
-
enumerable:
|
|
54
|
+
enumerable: false,
|
|
54
55
|
configurable: true
|
|
55
56
|
});
|
|
56
57
|
Object.defineProperty(Cirrus.prototype, "repoSlug", {
|
|
57
58
|
get: function () {
|
|
58
59
|
return this.env.CIRRUS_REPO_FULL_NAME;
|
|
59
60
|
},
|
|
60
|
-
enumerable:
|
|
61
|
+
enumerable: false,
|
|
61
62
|
configurable: true
|
|
62
63
|
});
|
|
63
64
|
Object.defineProperty(Cirrus.prototype, "ciRunURL", {
|
|
64
65
|
get: function () {
|
|
65
66
|
return "https://cirrus-ci.com/task/" + this.env.CIRRUS_TASK_ID;
|
|
66
67
|
},
|
|
67
|
-
enumerable:
|
|
68
|
+
enumerable: false,
|
|
68
69
|
configurable: true
|
|
69
70
|
});
|
|
70
71
|
return Cirrus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cirrus.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Cirrus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Cirrus.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Cirrus.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;GAiBG;AACH;IACE,gBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,wBAAI;aAAR;YACE,OAAO,WAAW,CAAA;QACpB,CAAC;;;OAAA;IAED,sBAAI,wBAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;QACpD,CAAC;;;OAAA;IAED,sBAAI,wBAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,uBAAuB,CAAC,CAAA;YACpE,IAAM,UAAU,GAAG,CAAC,WAAW,CAAC,CAAA;YAChC,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAED,sBAAI,iCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAA;QAC3B,CAAC;;;OAAA;IAED,sBAAI,4BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAA;QACvC,CAAC;;;OAAA;IAED,sBAAI,4BAAQ;aAAZ;YACE,OAAO,gCAA8B,IAAI,CAAC,GAAG,CAAC,cAAgB,CAAA;QAChE,CAAC;;;OAAA;IACH,aAAC;AAAD,CAAC,AA5BD,IA4BC;AA5BY,wBAAM"}
|
|
@@ -22,12 +22,12 @@ export declare class CodeBuild implements CISource {
|
|
|
22
22
|
private default;
|
|
23
23
|
constructor(env: Env);
|
|
24
24
|
setup(): Promise<any>;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
get name(): string;
|
|
26
|
+
get isCI(): boolean;
|
|
27
|
+
get isPR(): boolean;
|
|
28
|
+
get pullRequestID(): string;
|
|
29
|
+
get repoSlug(): string;
|
|
30
|
+
get repoURL(): string;
|
|
31
31
|
private _isPRRequest;
|
|
32
32
|
private _prParseUrl;
|
|
33
33
|
private _getPrId;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
5
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
6
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) :
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
9
|
});
|
|
9
10
|
};
|
|
@@ -35,6 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CodeBuild = void 0;
|
|
38
40
|
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
39
41
|
/**
|
|
40
42
|
* CI Setup
|
|
@@ -77,14 +79,14 @@ var CodeBuild = /** @class */ (function () {
|
|
|
77
79
|
get: function () {
|
|
78
80
|
return "CodeBuild";
|
|
79
81
|
},
|
|
80
|
-
enumerable:
|
|
82
|
+
enumerable: false,
|
|
81
83
|
configurable: true
|
|
82
84
|
});
|
|
83
85
|
Object.defineProperty(CodeBuild.prototype, "isCI", {
|
|
84
86
|
get: function () {
|
|
85
87
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CODEBUILD_BUILD_ID"]);
|
|
86
88
|
},
|
|
87
|
-
enumerable:
|
|
89
|
+
enumerable: false,
|
|
88
90
|
configurable: true
|
|
89
91
|
});
|
|
90
92
|
Object.defineProperty(CodeBuild.prototype, "isPR", {
|
|
@@ -92,28 +94,28 @@ var CodeBuild = /** @class */ (function () {
|
|
|
92
94
|
var mustHave = ["CODEBUILD_BUILD_ID", "CODEBUILD_SOURCE_REPO_URL"];
|
|
93
95
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && this._isPRRequest();
|
|
94
96
|
},
|
|
95
|
-
enumerable:
|
|
97
|
+
enumerable: false,
|
|
96
98
|
configurable: true
|
|
97
99
|
});
|
|
98
100
|
Object.defineProperty(CodeBuild.prototype, "pullRequestID", {
|
|
99
101
|
get: function () {
|
|
100
102
|
return this.default.prID;
|
|
101
103
|
},
|
|
102
|
-
enumerable:
|
|
104
|
+
enumerable: false,
|
|
103
105
|
configurable: true
|
|
104
106
|
});
|
|
105
107
|
Object.defineProperty(CodeBuild.prototype, "repoSlug", {
|
|
106
108
|
get: function () {
|
|
107
109
|
return this._prParseUrl();
|
|
108
110
|
},
|
|
109
|
-
enumerable:
|
|
111
|
+
enumerable: false,
|
|
110
112
|
configurable: true
|
|
111
113
|
});
|
|
112
114
|
Object.defineProperty(CodeBuild.prototype, "repoURL", {
|
|
113
115
|
get: function () {
|
|
114
116
|
return this.env.CODEBUILD_SOURCE_REPO_URL;
|
|
115
117
|
},
|
|
116
|
-
enumerable:
|
|
118
|
+
enumerable: false,
|
|
117
119
|
configurable: true
|
|
118
120
|
});
|
|
119
121
|
CodeBuild.prototype._isPRRequest = function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBuild.js","sourceRoot":"","sources":["../../../source/ci_source/providers/CodeBuild.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeBuild.js","sourceRoot":"","sources":["../../../source/ci_source/providers/CodeBuild.ts"],"names":[],"mappings":"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"}
|
|
@@ -31,10 +31,10 @@ import { Env, CISource } from "../ci_source";
|
|
|
31
31
|
export declare class Codefresh implements CISource {
|
|
32
32
|
private readonly env;
|
|
33
33
|
constructor(env: Env);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
get name(): string;
|
|
35
|
+
get isCI(): boolean;
|
|
36
|
+
get isPR(): boolean;
|
|
37
|
+
get pullRequestID(): string;
|
|
38
|
+
get repoSlug(): string;
|
|
39
|
+
get ciRunURL(): any;
|
|
40
40
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Codefresh = void 0;
|
|
3
4
|
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
4
5
|
/**
|
|
5
6
|
* ### CI Setup
|
|
@@ -38,14 +39,14 @@ var Codefresh = /** @class */ (function () {
|
|
|
38
39
|
get: function () {
|
|
39
40
|
return "Codefresh";
|
|
40
41
|
},
|
|
41
|
-
enumerable:
|
|
42
|
+
enumerable: false,
|
|
42
43
|
configurable: true
|
|
43
44
|
});
|
|
44
45
|
Object.defineProperty(Codefresh.prototype, "isCI", {
|
|
45
46
|
get: function () {
|
|
46
47
|
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CF_BUILD_ID", "CF_BUILD_URL"]);
|
|
47
48
|
},
|
|
48
|
-
enumerable:
|
|
49
|
+
enumerable: false,
|
|
49
50
|
configurable: true
|
|
50
51
|
});
|
|
51
52
|
Object.defineProperty(Codefresh.prototype, "isPR", {
|
|
@@ -53,7 +54,7 @@ var Codefresh = /** @class */ (function () {
|
|
|
53
54
|
return (ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CF_PULL_REQUEST_NUMBER"]) &&
|
|
54
55
|
ci_source_helpers_1.ensureEnvKeysAreInt(this.env, ["CF_PULL_REQUEST_NUMBER"]));
|
|
55
56
|
},
|
|
56
|
-
enumerable:
|
|
57
|
+
enumerable: false,
|
|
57
58
|
configurable: true
|
|
58
59
|
});
|
|
59
60
|
Object.defineProperty(Codefresh.prototype, "pullRequestID", {
|
|
@@ -65,7 +66,7 @@ var Codefresh = /** @class */ (function () {
|
|
|
65
66
|
return "";
|
|
66
67
|
}
|
|
67
68
|
},
|
|
68
|
-
enumerable:
|
|
69
|
+
enumerable: false,
|
|
69
70
|
configurable: true
|
|
70
71
|
});
|
|
71
72
|
Object.defineProperty(Codefresh.prototype, "repoSlug", {
|
|
@@ -78,14 +79,14 @@ var Codefresh = /** @class */ (function () {
|
|
|
78
79
|
}
|
|
79
80
|
return "";
|
|
80
81
|
},
|
|
81
|
-
enumerable:
|
|
82
|
+
enumerable: false,
|
|
82
83
|
configurable: true
|
|
83
84
|
});
|
|
84
85
|
Object.defineProperty(Codefresh.prototype, "ciRunURL", {
|
|
85
86
|
get: function () {
|
|
86
87
|
return this.env.CF_BUILD_URL;
|
|
87
88
|
},
|
|
88
|
-
enumerable:
|
|
89
|
+
enumerable: false,
|
|
89
90
|
configurable: true
|
|
90
91
|
});
|
|
91
92
|
return Codefresh;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Codefresh.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Codefresh.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Codefresh.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Codefresh.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;IACE,mBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,2BAAI;aAAR;YACE,OAAO,WAAW,CAAA;QACpB,CAAC;;;OAAA;IAED,sBAAI,2BAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAA;QACtE,CAAC;;;OAAA;IAED,sBAAI,2BAAI;aAAR;YACE,OAAO,CACL,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC;gBACxD,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC,CAC1D,CAAA;QACH,CAAC;;;OAAA;IAED,sBAAI,oCAAa;aAAjB;YACE,IAAI,IAAI,CAAC,GAAG,CAAC,sBAAsB,EAAE;gBACnC,OAAO,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAA;aACvC;iBAAM;gBACL,OAAO,EAAE,CAAA;aACV;QACH,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,IAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YACnD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC1B,IAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;gBAC1B,IAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;gBAC7B,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAI,KAAK,SAAI,QAAU,CAAC,CAAC,CAAC,EAAE,CAAA;aACvD;YACD,OAAO,EAAE,CAAA;QACX,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,CAAA;QAC9B,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AAvCD,IAuCC;AAvCY,8BAAS"}
|
|
@@ -10,10 +10,10 @@ import { Env, CISource } from "../ci_source";
|
|
|
10
10
|
export declare class Codemagic implements CISource {
|
|
11
11
|
private readonly env;
|
|
12
12
|
constructor(env: Env);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
get name(): string;
|
|
14
|
+
get isCI(): boolean;
|
|
15
|
+
get isPR(): boolean;
|
|
16
|
+
get pullRequestID(): string;
|
|
17
|
+
get repoSlug(): string;
|
|
18
|
+
get ciRunURL(): string;
|
|
19
19
|
}
|