danger 10.8.0 → 11.0.4
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/.eslintignore +2 -0
- package/.eslintrc.js +66 -0
- package/.prettierignore +1 -0
- package/.release-it.json +1 -0
- package/CHANGELOG.md +104 -30
- package/README.md +1 -1
- package/SECURITY.md +9 -0
- package/distribution/api/fetch.d.ts +1 -1
- package/distribution/api/fetch.js +18 -18
- package/distribution/api/fetch.js.map +1 -1
- package/distribution/ci_source/ci_source_helpers.js +3 -3
- package/distribution/ci_source/ci_source_helpers.js.map +1 -1
- package/distribution/ci_source/get_ci_source.js +14 -11
- package/distribution/ci_source/get_ci_source.js.map +1 -1
- package/distribution/ci_source/providers/AppCenter.js +6 -6
- package/distribution/ci_source/providers/AppCenter.js.map +1 -1
- package/distribution/ci_source/providers/Bamboo.js +4 -4
- package/distribution/ci_source/providers/Bamboo.js.map +1 -1
- package/distribution/ci_source/providers/BitbucketPipelines.js +3 -3
- package/distribution/ci_source/providers/BitbucketPipelines.js.map +1 -1
- package/distribution/ci_source/providers/Bitrise.js +3 -3
- package/distribution/ci_source/providers/Bitrise.js.map +1 -1
- package/distribution/ci_source/providers/BuddyBuild.js +2 -2
- package/distribution/ci_source/providers/BuddyBuild.js.map +1 -1
- package/distribution/ci_source/providers/BuddyWorks.js +2 -2
- package/distribution/ci_source/providers/BuddyWorks.js.map +1 -1
- package/distribution/ci_source/providers/Buildkite.js +2 -2
- package/distribution/ci_source/providers/Buildkite.js.map +1 -1
- package/distribution/ci_source/providers/Circle.js +4 -4
- package/distribution/ci_source/providers/Circle.js.map +1 -1
- package/distribution/ci_source/providers/Cirrus.js +3 -3
- package/distribution/ci_source/providers/Cirrus.js.map +1 -1
- package/distribution/ci_source/providers/CodeBuild.js +3 -3
- package/distribution/ci_source/providers/CodeBuild.js.map +1 -1
- package/distribution/ci_source/providers/Codefresh.js +4 -4
- package/distribution/ci_source/providers/Codefresh.js.map +1 -1
- package/distribution/ci_source/providers/Codemagic.js +4 -4
- package/distribution/ci_source/providers/Codemagic.js.map +1 -1
- package/distribution/ci_source/providers/Codeship.js +3 -3
- package/distribution/ci_source/providers/Codeship.js.map +1 -1
- package/distribution/ci_source/providers/Concourse.js +2 -2
- package/distribution/ci_source/providers/Concourse.js.map +1 -1
- package/distribution/ci_source/providers/DockerCloud.js +4 -4
- package/distribution/ci_source/providers/DockerCloud.js.map +1 -1
- package/distribution/ci_source/providers/Drone.js +2 -2
- package/distribution/ci_source/providers/Drone.js.map +1 -1
- package/distribution/ci_source/providers/Fake.js +4 -4
- package/distribution/ci_source/providers/Fake.js.map +1 -1
- package/distribution/ci_source/providers/GitHubActions.js +3 -3
- package/distribution/ci_source/providers/GitHubActions.js.map +1 -1
- package/distribution/ci_source/providers/GitLabCI.js +2 -2
- package/distribution/ci_source/providers/GitLabCI.js.map +1 -1
- package/distribution/ci_source/providers/Jenkins.js +6 -6
- package/distribution/ci_source/providers/Jenkins.js.map +1 -1
- package/distribution/ci_source/providers/Netlify.js +2 -2
- package/distribution/ci_source/providers/Netlify.js.map +1 -1
- package/distribution/ci_source/providers/Nevercode.js +3 -3
- package/distribution/ci_source/providers/Nevercode.js.map +1 -1
- package/distribution/ci_source/providers/Screwdriver.js +2 -2
- package/distribution/ci_source/providers/Screwdriver.js.map +1 -1
- package/distribution/ci_source/providers/Semaphore.js +2 -2
- package/distribution/ci_source/providers/Semaphore.js.map +1 -1
- package/distribution/ci_source/providers/Surf.js +2 -2
- package/distribution/ci_source/providers/Surf.js.map +1 -1
- package/distribution/ci_source/providers/TeamCity.js +5 -5
- package/distribution/ci_source/providers/TeamCity.js.map +1 -1
- package/distribution/ci_source/providers/Travis.js +3 -3
- package/distribution/ci_source/providers/Travis.js.map +1 -1
- package/distribution/ci_source/providers/VSTS.js +2 -2
- package/distribution/ci_source/providers/VSTS.js.map +1 -1
- package/distribution/ci_source/providers/XcodeCloud.js +2 -2
- package/distribution/ci_source/providers/XcodeCloud.js.map +1 -1
- package/distribution/commands/ci/resetStatus.js +7 -6
- package/distribution/commands/ci/resetStatus.js.map +1 -1
- package/distribution/commands/ci/runner.js +13 -12
- package/distribution/commands/ci/runner.js.map +1 -1
- package/distribution/commands/danger-ci.js +2 -2
- package/distribution/commands/danger-ci.js.map +1 -1
- package/distribution/commands/danger-init.js +19 -19
- package/distribution/commands/danger-init.js.map +1 -1
- package/distribution/commands/danger-local.js +5 -5
- package/distribution/commands/danger-local.js.map +1 -1
- package/distribution/commands/danger-pr.js +12 -12
- package/distribution/commands/danger-pr.js.map +1 -1
- package/distribution/commands/danger-process.js +10 -10
- package/distribution/commands/danger-process.js.map +1 -1
- package/distribution/commands/danger-reset-status.js +2 -2
- package/distribution/commands/danger-reset-status.js.map +1 -1
- package/distribution/commands/danger-runner.js +15 -17
- package/distribution/commands/danger-runner.js.map +1 -1
- package/distribution/commands/init/add-to-ci.js +16 -13
- package/distribution/commands/init/add-to-ci.js.map +1 -1
- package/distribution/commands/init/default-dangerfile.js +13 -9
- package/distribution/commands/init/default-dangerfile.js.map +1 -1
- package/distribution/commands/init/get-repo-slug.js +3 -2
- package/distribution/commands/init/get-repo-slug.js.map +1 -1
- package/distribution/commands/init/interfaces.d.ts +3 -3
- package/distribution/commands/init/state-setup.js +9 -7
- package/distribution/commands/init/state-setup.js.map +1 -1
- package/distribution/commands/utils/chainsmoker.js +2 -2
- package/distribution/commands/utils/chainsmoker.js.map +1 -1
- package/distribution/commands/utils/dangerRunToRunnerCLI.js +1 -1
- package/distribution/commands/utils/dangerRunToRunnerCLI.js.map +1 -1
- package/distribution/commands/utils/fileUtils.js +5 -5
- package/distribution/commands/utils/fileUtils.js.map +1 -1
- package/distribution/commands/utils/getRuntimeCISource.js +2 -2
- package/distribution/commands/utils/getRuntimeCISource.js.map +1 -1
- package/distribution/commands/utils/reporting.js +18 -13
- package/distribution/commands/utils/reporting.js.map +1 -1
- package/distribution/commands/utils/runDangerSubprocess.d.ts +1 -0
- package/distribution/commands/utils/runDangerSubprocess.js +26 -20
- package/distribution/commands/utils/runDangerSubprocess.js.map +1 -1
- package/distribution/commands/utils/validateDangerfileExists.js +3 -3
- package/distribution/commands/utils/validateDangerfileExists.js.map +1 -1
- package/distribution/danger.d.ts +11 -4
- package/distribution/danger.js.flow +2 -2
- package/distribution/debug.js +3 -2
- package/distribution/debug.js.map +1 -1
- package/distribution/dsl/DangerResults.js +27 -22
- package/distribution/dsl/DangerResults.js.map +1 -1
- package/distribution/dsl/GitDSL.d.ts +2 -1
- package/distribution/dsl/Violation.js +2 -1
- package/distribution/dsl/Violation.js.map +1 -1
- package/distribution/platforms/BitBucketCloud.js +2 -2
- package/distribution/platforms/BitBucketCloud.js.map +1 -1
- package/distribution/platforms/BitBucketServer.js +6 -5
- package/distribution/platforms/BitBucketServer.js.map +1 -1
- package/distribution/platforms/FakePlatform.d.ts +5 -0
- package/distribution/platforms/FakePlatform.js +3 -2
- package/distribution/platforms/FakePlatform.js.map +1 -1
- package/distribution/platforms/GitHub.js +17 -16
- package/distribution/platforms/GitHub.js.map +1 -1
- package/distribution/platforms/GitLab.js +7 -6
- package/distribution/platforms/GitLab.js.map +1 -1
- package/distribution/platforms/LocalGit.js +5 -5
- package/distribution/platforms/LocalGit.js.map +1 -1
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudAPI.js +26 -26
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudAPI.js.map +1 -1
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudGit.js +5 -4
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudGit.js.map +1 -1
- package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.js +6 -6
- 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 +37 -28
- package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.js.map +1 -1
- package/distribution/platforms/bitbucket_server/BitBucketServerAPI.js +22 -22
- package/distribution/platforms/bitbucket_server/BitBucketServerAPI.js.map +1 -1
- package/distribution/platforms/bitbucket_server/BitBucketServerGit.js +58 -22
- package/distribution/platforms/bitbucket_server/BitBucketServerGit.js.map +1 -1
- package/distribution/platforms/git/diffToGitJSONDSL.js +4 -3
- package/distribution/platforms/git/diffToGitJSONDSL.js.map +1 -1
- package/distribution/platforms/git/gitJSONToGitDSL.d.ts +3 -12
- package/distribution/platforms/git/gitJSONToGitDSL.js +27 -20
- package/distribution/platforms/git/gitJSONToGitDSL.js.map +1 -1
- package/distribution/platforms/git/localGetCommits.js +4 -3
- package/distribution/platforms/git/localGetCommits.js.map +1 -1
- package/distribution/platforms/git/localGetDiff.js +6 -5
- package/distribution/platforms/git/localGetDiff.js.map +1 -1
- package/distribution/platforms/git/localGetFileAtSHA.js +6 -5
- package/distribution/platforms/git/localGetFileAtSHA.js.map +1 -1
- package/distribution/platforms/git/localLogGitCommits.d.ts +1 -1
- package/distribution/platforms/git/localLogGitCommits.js +4 -3
- package/distribution/platforms/git/localLogGitCommits.js.map +1 -1
- package/distribution/platforms/github/GitHubAPI.d.ts +5 -0
- package/distribution/platforms/github/GitHubAPI.js +67 -38
- package/distribution/platforms/github/GitHubAPI.js.map +1 -1
- package/distribution/platforms/github/GitHubGit.js +7 -5
- package/distribution/platforms/github/GitHubGit.js.map +1 -1
- package/distribution/platforms/github/GitHubUtils.d.ts +1108 -1
- package/distribution/platforms/github/GitHubUtils.js +47 -28
- package/distribution/platforms/github/GitHubUtils.js.map +1 -1
- package/distribution/platforms/github/comms/checks/githubAppSupport.js +8 -7
- package/distribution/platforms/github/comms/checks/githubAppSupport.js.map +1 -1
- package/distribution/platforms/github/comms/checks/resultsToCheck.js +20 -18
- package/distribution/platforms/github/comms/checks/resultsToCheck.js.map +1 -1
- package/distribution/platforms/github/comms/checksCommenter.js +20 -16
- package/distribution/platforms/github/comms/checksCommenter.js.map +1 -1
- package/distribution/platforms/github/comms/issueCommenter.d.ts +5 -0
- package/distribution/platforms/github/comms/issueCommenter.js +21 -8
- package/distribution/platforms/github/comms/issueCommenter.js.map +1 -1
- package/distribution/platforms/github/customGitHubRequire.js +33 -28
- package/distribution/platforms/github/customGitHubRequire.js.map +1 -1
- package/distribution/platforms/gitlab/GitLabAPI.d.ts +1 -1
- package/distribution/platforms/gitlab/GitLabAPI.js +10 -10
- package/distribution/platforms/gitlab/GitLabAPI.js.map +1 -1
- package/distribution/platforms/gitlab/GitLabGit.js +9 -7
- package/distribution/platforms/gitlab/GitLabGit.js.map +1 -1
- package/distribution/platforms/platform.d.ts +6 -0
- package/distribution/platforms/platform.js +6 -6
- package/distribution/platforms/platform.js.map +1 -1
- package/distribution/platforms/pullRequestParser.js +4 -4
- package/distribution/platforms/pullRequestParser.js.map +1 -1
- package/distribution/runner/DangerUtils.js +3 -2
- package/distribution/runner/DangerUtils.js.map +1 -1
- package/distribution/runner/Executor.d.ts +1 -0
- package/distribution/runner/Executor.js +79 -42
- package/distribution/runner/Executor.js.map +1 -1
- package/distribution/runner/dangerDSLJSON.js.map +1 -1
- package/distribution/runner/dslGenerator.js +3 -2
- package/distribution/runner/dslGenerator.js.map +1 -1
- package/distribution/runner/jsonToContext.js +2 -2
- package/distribution/runner/jsonToContext.js.map +1 -1
- package/distribution/runner/jsonToDSL.js +16 -15
- package/distribution/runner/jsonToDSL.js.map +1 -1
- package/distribution/runner/runners/inline.js +10 -9
- package/distribution/runner/runners/inline.js.map +1 -1
- package/distribution/runner/runners/utils/resultsForCaughtError.js +3 -3
- package/distribution/runner/runners/utils/resultsForCaughtError.js.map +1 -1
- package/distribution/runner/runners/utils/transpiler.js +36 -29
- package/distribution/runner/runners/utils/transpiler.js.map +1 -1
- package/distribution/runner/templates/bitbucketCloudTemplate.js +18 -14
- package/distribution/runner/templates/bitbucketCloudTemplate.js.map +1 -1
- package/distribution/runner/templates/bitbucketServerTemplate.js +17 -13
- package/distribution/runner/templates/bitbucketServerTemplate.js.map +1 -1
- package/distribution/runner/templates/exceptionRaisedTemplate.js +1 -1
- package/distribution/runner/templates/exceptionRaisedTemplate.js.map +1 -1
- package/distribution/runner/templates/githubIssueTemplate.js +23 -19
- package/distribution/runner/templates/githubIssueTemplate.js.map +1 -1
- package/distribution/runner/templates/markdownTableTemplate.js +3 -3
- package/distribution/runner/templates/markdownTableTemplate.js.map +1 -1
- package/package.json +38 -30
- package/tsconfig.spec.json +4 -0
|
@@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
14
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
15
|
if (mod && mod.__esModule) return mod;
|
|
16
16
|
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
18
|
__setModuleDefault(result, mod);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
@@ -89,7 +89,7 @@ var AppCenter = /** @class */ (function () {
|
|
|
89
89
|
var prID;
|
|
90
90
|
return __generator(this, function (_a) {
|
|
91
91
|
switch (_a.label) {
|
|
92
|
-
case 0: return [4 /*yield*/, ci_source_helpers_1.getPullRequestIDForBranch(this, this.env, this.branchName)];
|
|
92
|
+
case 0: return [4 /*yield*/, (0, ci_source_helpers_1.getPullRequestIDForBranch)(this, this.env, this.branchName)];
|
|
93
93
|
case 1:
|
|
94
94
|
prID = _a.sent();
|
|
95
95
|
this.default.prID = prID.toString();
|
|
@@ -107,7 +107,7 @@ var AppCenter = /** @class */ (function () {
|
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(AppCenter.prototype, "isCI", {
|
|
109
109
|
get: function () {
|
|
110
|
-
if (ci_source_helpers_1.ensureEnvKeysExist(this.env, ["APPCENTER_BUILD_ID"])) {
|
|
110
|
+
if ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["APPCENTER_BUILD_ID"])) {
|
|
111
111
|
return true;
|
|
112
112
|
}
|
|
113
113
|
else {
|
|
@@ -133,13 +133,13 @@ var AppCenter = /** @class */ (function () {
|
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(AppCenter.prototype, "repoSlug", {
|
|
135
135
|
get: function () {
|
|
136
|
-
if (ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BUILD_REPOSITORY_NAME"]) &&
|
|
137
|
-
ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BUILD_REPOSITORY_URI"])) {
|
|
136
|
+
if ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["BUILD_REPOSITORY_NAME"]) &&
|
|
137
|
+
(0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["BUILD_REPOSITORY_URI"])) {
|
|
138
138
|
var repositoryName = this.env["BUILD_REPOSITORY_NAME"];
|
|
139
139
|
var components = url.parse(this.env["BUILD_REPOSITORY_URI"], false);
|
|
140
140
|
if (components && components.path) {
|
|
141
141
|
var owner = components.path.split("/")[1];
|
|
142
|
-
return owner
|
|
142
|
+
return "".concat(owner, "/").concat(repositoryName);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
return "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppCenter.js","sourceRoot":"","sources":["../../../source/ci_source/providers/AppCenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0DAAoF;AACpF,uCAA0B;AAE1B,4FAA4F;AAC5F,sGAAsG;AAEtG;;;;;;;;;;;;;;;;;;GAkBG;AAEH;IAEE,mBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;QAD7B,YAAO,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAA;IACS,CAAC;IAEnC,yBAAK,GAAX;;;;;4BACe,qBAAM,6CAAyB,
|
|
1
|
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AG,EAAE,CAAC,sBAAsB,CAAC,CAAC,EACtD;gBACA,IAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;gBACxD,IAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE,KAAK,CAAC,CAAA;gBACrE,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,EAAE;oBACjC,IAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;oBAC3C,OAAO,UAAG,KAAK,cAAI,cAAc,CAAE,CAAA;iBACpC;aACF;YACD,OAAO,EAAE,CAAA;QACX,CAAC;;;OAAA;IAED,sBAAY,iCAAU;aAAtB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;QAC3C,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AA/CD,IA+CC;AA/CY,8BAAS"}
|
|
@@ -44,7 +44,7 @@ var Bamboo = /** @class */ (function () {
|
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(Bamboo.prototype, "isCI", {
|
|
46
46
|
get: function () {
|
|
47
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["bamboo_buildPlanName", "bamboo_planRepository_repositoryUrl"]);
|
|
47
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["bamboo_buildPlanName", "bamboo_planRepository_repositoryUrl"]);
|
|
48
48
|
},
|
|
49
49
|
enumerable: false,
|
|
50
50
|
configurable: true
|
|
@@ -53,14 +53,14 @@ var Bamboo = /** @class */ (function () {
|
|
|
53
53
|
get: function () {
|
|
54
54
|
var mustHave = ["bamboo_repository_pr_key", "bamboo_planRepository_repositoryUrl", "bamboo_buildPlanName"];
|
|
55
55
|
var mustBeInts = ["bamboo_repository_pr_key"];
|
|
56
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
56
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
57
57
|
},
|
|
58
58
|
enumerable: false,
|
|
59
59
|
configurable: true
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(Bamboo.prototype, "pullRequestID", {
|
|
62
62
|
get: function () {
|
|
63
|
-
return ""
|
|
63
|
+
return "".concat(this.env.bamboo_repository_pr_key);
|
|
64
64
|
},
|
|
65
65
|
enumerable: false,
|
|
66
66
|
configurable: true
|
|
@@ -70,7 +70,7 @@ var Bamboo = /** @class */ (function () {
|
|
|
70
70
|
//ssh://git@bt01.cliplister.com:7999/clfr30/bc3_complete.git
|
|
71
71
|
// bamboo_inject_slug="projects/CLFR30/repos/bc3_complete" \
|
|
72
72
|
var _a = this.env.bamboo_planRepository_repositoryUrl.match(/\/(\w+)\/([a-zA-Z0-9_\.-]+(?:.git)?)$/), project = _a[1], slug = _a[2];
|
|
73
|
-
return "projects/"
|
|
73
|
+
return "projects/".concat(project, "/repos/").concat(slug.replace(/\.[^.]+$/, ""));
|
|
74
74
|
},
|
|
75
75
|
enumerable: false,
|
|
76
76
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bamboo.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Bamboo.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;IACE,gBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,wBAAI;aAAR;YACE,OAAO,QAAQ,CAAA;QACjB,CAAC;;;OAAA;IAED,sBAAI,wBAAI;aAAR;YACE,OAAO,sCAAkB,
|
|
1
|
+
{"version":3,"file":"Bamboo.js","sourceRoot":"","sources":["../../../source/ci_source/providers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
45
|
Object.defineProperty(BitbucketPipelines.prototype, "isCI", {
|
|
46
46
|
get: function () {
|
|
47
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BITBUCKET_BUILD_NUMBER"]);
|
|
47
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["BITBUCKET_BUILD_NUMBER"]);
|
|
48
48
|
},
|
|
49
49
|
enumerable: false,
|
|
50
50
|
configurable: true
|
|
@@ -53,7 +53,7 @@ var BitbucketPipelines = /** @class */ (function () {
|
|
|
53
53
|
get: function () {
|
|
54
54
|
var mustHave = ["BITBUCKET_GIT_HTTP_ORIGIN", "BITBUCKET_REPO_OWNER", "BITBUCKET_REPO_SLUG"];
|
|
55
55
|
var mustBeInts = ["BITBUCKET_PR_ID"];
|
|
56
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
56
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
57
57
|
},
|
|
58
58
|
enumerable: false,
|
|
59
59
|
configurable: true
|
|
@@ -67,7 +67,7 @@ var BitbucketPipelines = /** @class */ (function () {
|
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(BitbucketPipelines.prototype, "repoSlug", {
|
|
69
69
|
get: function () {
|
|
70
|
-
return ""
|
|
70
|
+
return "".concat(this.env.BITBUCKET_REPO_FULL_NAME);
|
|
71
71
|
},
|
|
72
72
|
enumerable: false,
|
|
73
73
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitbucketPipelines.js","sourceRoot":"","sources":["../../../source/ci_source/providers/BitbucketPipelines.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;IACE,4BAA6B,GAAQ;QAAR,QAAG,GAAH,GA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4BC;AA5BY,gDAAkB"}
|
|
@@ -54,7 +54,7 @@ var Bitrise = /** @class */ (function () {
|
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(Bitrise.prototype, "isCI", {
|
|
56
56
|
get: function () {
|
|
57
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BITRISE_IO"]);
|
|
57
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["BITRISE_IO"]);
|
|
58
58
|
},
|
|
59
59
|
enumerable: false,
|
|
60
60
|
configurable: true
|
|
@@ -63,7 +63,7 @@ var Bitrise = /** @class */ (function () {
|
|
|
63
63
|
get: function () {
|
|
64
64
|
var mustHave = ["BITRISEIO_GIT_REPOSITORY_OWNER", "BITRISEIO_GIT_REPOSITORY_SLUG"];
|
|
65
65
|
var mustBeInts = ["BITRISE_PULL_REQUEST"];
|
|
66
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
66
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
67
67
|
},
|
|
68
68
|
enumerable: false,
|
|
69
69
|
configurable: true
|
|
@@ -77,7 +77,7 @@ var Bitrise = /** @class */ (function () {
|
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(Bitrise.prototype, "repoSlug", {
|
|
79
79
|
get: function () {
|
|
80
|
-
return this.env.BITRISEIO_GIT_REPOSITORY_OWNER
|
|
80
|
+
return "".concat(this.env.BITRISEIO_GIT_REPOSITORY_OWNER, "/").concat(this.env.BITRISEIO_GIT_REPOSITORY_SLUG);
|
|
81
81
|
},
|
|
82
82
|
enumerable: false,
|
|
83
83
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bitrise.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Bitrise.ts"],"names":[],"mappings":";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;;OAAA;IAED,sBAAI,6BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAA;QACnC,CAAC;;;OAAA;IAED,sBAAI,+BAAU;aAAd;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAA;QACpC,CAAC;;;OAAA;IACH,cAAC;AAAD,CAAC,AAhCD,IAgCC;AAhCY,0BAAO;AAkCpB,2EAA2E"}
|
|
@@ -30,7 +30,7 @@ var BuddyBuild = /** @class */ (function () {
|
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(BuddyBuild.prototype, "isCI", {
|
|
32
32
|
get: function () {
|
|
33
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BUDDYBUILD_BUILD_ID"]);
|
|
33
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["BUDDYBUILD_BUILD_ID"]);
|
|
34
34
|
},
|
|
35
35
|
enumerable: false,
|
|
36
36
|
configurable: true
|
|
@@ -39,7 +39,7 @@ var BuddyBuild = /** @class */ (function () {
|
|
|
39
39
|
get: function () {
|
|
40
40
|
var mustHave = ["BUDDYBUILD_PULL_REQUEST", "BUDDYBUILD_REPO_SLUG"];
|
|
41
41
|
var mustBeInts = ["BUDDYBUILD_PULL_REQUEST"];
|
|
42
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
42
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
43
43
|
},
|
|
44
44
|
enumerable: false,
|
|
45
45
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,IAAA,sCAAkB,EAAC,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,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,IAAA,uCAAmB,EAAC,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"}
|
|
@@ -29,7 +29,7 @@ var BuddyWorks = /** @class */ (function () {
|
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(BuddyWorks.prototype, "isCI", {
|
|
31
31
|
get: function () {
|
|
32
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BUDDY_PIPELINE_ID"]);
|
|
32
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["BUDDY_PIPELINE_ID"]);
|
|
33
33
|
},
|
|
34
34
|
enumerable: false,
|
|
35
35
|
configurable: true
|
|
@@ -38,7 +38,7 @@ var BuddyWorks = /** @class */ (function () {
|
|
|
38
38
|
get: function () {
|
|
39
39
|
var mustHave = ["BUDDY_PIPELINE_ID", "BUDDY_EXECUTION_PULL_REQUEST_NO", "BUDDY_REPO_SLUG"];
|
|
40
40
|
var mustBeInts = ["BUDDY_EXECUTION_PULL_REQUEST_NO"];
|
|
41
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
41
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
42
42
|
},
|
|
43
43
|
enumerable: false,
|
|
44
44
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,IAAA,sCAAkB,EAAC,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,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,IAAA,uCAAmB,EAAC,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"}
|
|
@@ -33,7 +33,7 @@ var Buildkite = /** @class */ (function () {
|
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(Buildkite.prototype, "isCI", {
|
|
35
35
|
get: function () {
|
|
36
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["BUILDKITE"]);
|
|
36
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["BUILDKITE"]);
|
|
37
37
|
},
|
|
38
38
|
enumerable: false,
|
|
39
39
|
configurable: true
|
|
@@ -42,7 +42,7 @@ var Buildkite = /** @class */ (function () {
|
|
|
42
42
|
get: function () {
|
|
43
43
|
var mustHave = ["BUILDKITE_REPO"];
|
|
44
44
|
var mustBeInts = ["BUILDKITE_PULL_REQUEST"];
|
|
45
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
45
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
46
46
|
},
|
|
47
47
|
enumerable: false,
|
|
48
48
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,IAAA,sCAAkB,EAAC,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,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,IAAA,uCAAmB,EAAC,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"}
|
|
@@ -57,18 +57,18 @@ var Circle = /** @class */ (function () {
|
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(Circle.prototype, "isCI", {
|
|
59
59
|
get: function () {
|
|
60
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CIRCLE_BUILD_NUM"]);
|
|
60
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CIRCLE_BUILD_NUM"]);
|
|
61
61
|
},
|
|
62
62
|
enumerable: false,
|
|
63
63
|
configurable: true
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(Circle.prototype, "isPR", {
|
|
66
66
|
get: function () {
|
|
67
|
-
if (ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CI_PULL_REQUEST"]) || ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CIRCLE_PULL_REQUEST"])) {
|
|
67
|
+
if ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CI_PULL_REQUEST"]) || (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CIRCLE_PULL_REQUEST"])) {
|
|
68
68
|
return true;
|
|
69
69
|
}
|
|
70
70
|
var mustHave = ["CIRCLE_CI_API_TOKEN", "CIRCLE_PROJECT_USERNAME", "CIRCLE_PROJECT_REPONAME", "CIRCLE_BUILD_NUM"];
|
|
71
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, ["CIRCLE_PR_NUMBER"]);
|
|
71
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, ["CIRCLE_PR_NUMBER"]);
|
|
72
72
|
},
|
|
73
73
|
enumerable: false,
|
|
74
74
|
configurable: true
|
|
@@ -100,7 +100,7 @@ var Circle = /** @class */ (function () {
|
|
|
100
100
|
Object.defineProperty(Circle.prototype, "repoSlug", {
|
|
101
101
|
get: function () {
|
|
102
102
|
var _a = this._prParseURL(), owner = _a.owner, reponame = _a.reponame;
|
|
103
|
-
return owner && reponame ? owner
|
|
103
|
+
return owner && reponame ? "".concat(owner, "/").concat(reponame) : "";
|
|
104
104
|
},
|
|
105
105
|
enumerable: false,
|
|
106
106
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Circle.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Circle.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyC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;AAAD,CAAC,AAzDD,IAyDC;AAzDY,wBAAM"}
|
|
@@ -33,7 +33,7 @@ var Cirrus = /** @class */ (function () {
|
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(Cirrus.prototype, "isCI", {
|
|
35
35
|
get: function () {
|
|
36
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CIRRUS_CI"]);
|
|
36
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CIRRUS_CI"]);
|
|
37
37
|
},
|
|
38
38
|
enumerable: false,
|
|
39
39
|
configurable: true
|
|
@@ -42,7 +42,7 @@ var Cirrus = /** @class */ (function () {
|
|
|
42
42
|
get: function () {
|
|
43
43
|
var mustHave = ["CIRRUS_CI", "CIRRUS_PR", "CIRRUS_REPO_FULL_NAME"];
|
|
44
44
|
var mustBeInts = ["CIRRUS_PR"];
|
|
45
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
45
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
46
46
|
},
|
|
47
47
|
enumerable: false,
|
|
48
48
|
configurable: true
|
|
@@ -63,7 +63,7 @@ var Cirrus = /** @class */ (function () {
|
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(Cirrus.prototype, "ciRunURL", {
|
|
65
65
|
get: function () {
|
|
66
|
-
return "https://cirrus-ci.com/task/"
|
|
66
|
+
return "https://cirrus-ci.com/task/".concat(this.env.CIRRUS_TASK_ID);
|
|
67
67
|
},
|
|
68
68
|
enumerable: false,
|
|
69
69
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cirrus.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Cirrus.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;GAiB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BD,IA4BC;AA5BY,wBAAM"}
|
|
@@ -84,7 +84,7 @@ var CodeBuild = /** @class */ (function () {
|
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(CodeBuild.prototype, "isCI", {
|
|
86
86
|
get: function () {
|
|
87
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CODEBUILD_BUILD_ID"]);
|
|
87
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CODEBUILD_BUILD_ID"]);
|
|
88
88
|
},
|
|
89
89
|
enumerable: false,
|
|
90
90
|
configurable: true
|
|
@@ -92,7 +92,7 @@ var CodeBuild = /** @class */ (function () {
|
|
|
92
92
|
Object.defineProperty(CodeBuild.prototype, "isPR", {
|
|
93
93
|
get: function () {
|
|
94
94
|
var mustHave = ["CODEBUILD_BUILD_ID", "CODEBUILD_SOURCE_REPO_URL"];
|
|
95
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && this._isPRRequest();
|
|
95
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && this._isPRRequest();
|
|
96
96
|
},
|
|
97
97
|
enumerable: false,
|
|
98
98
|
configurable: true
|
|
@@ -141,7 +141,7 @@ var CodeBuild = /** @class */ (function () {
|
|
|
141
141
|
prId = triggerParts[0] === "pr" ? triggerParts[1] : null;
|
|
142
142
|
}
|
|
143
143
|
if (!(!prId && branchName)) return [3 /*break*/, 2];
|
|
144
|
-
return [4 /*yield*/, ci_source_helpers_1.getPullRequestIDForBranch(this, this.env, branchName)];
|
|
144
|
+
return [4 /*yield*/, (0, ci_source_helpers_1.getPullRequestIDForBranch)(this, this.env, branchName)];
|
|
145
145
|
case 1:
|
|
146
146
|
prId = _a.sent();
|
|
147
147
|
_a.label = 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBuild.js","sourceRoot":"","sources":["../../../source/ci_source/providers/CodeBuild.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;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AAC,IAAI,CAAA;wBACpE,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;wBAE1D,IAAI,CAAC,IAAI,EAAE;4BACT,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;yBACzD;6BAEG,CAAA,CAAC,IAAI,IAAI,UAAU,CAAA,EAAnB,wBAAmB;wBACd,qBAAM,IAAA,6CAAyB,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,EAAA;;wBAAlE,IAAI,GAAG,SAA2D,CAAA;;;wBAGpE,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE;4BACzB,sBAAO,GAAG,EAAA;yBACX;wBAED,sBAAO,IAAI,EAAA;;;;KACZ;IACH,gBAAC;AAAD,CAAC,AAlED,IAkEC;AAlEY,8BAAS"}
|
|
@@ -44,15 +44,15 @@ var Codefresh = /** @class */ (function () {
|
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(Codefresh.prototype, "isCI", {
|
|
46
46
|
get: function () {
|
|
47
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CF_BUILD_ID", "CF_BUILD_URL"]);
|
|
47
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CF_BUILD_ID", "CF_BUILD_URL"]);
|
|
48
48
|
},
|
|
49
49
|
enumerable: false,
|
|
50
50
|
configurable: true
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(Codefresh.prototype, "isPR", {
|
|
53
53
|
get: function () {
|
|
54
|
-
return (ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CF_PULL_REQUEST_NUMBER"]) &&
|
|
55
|
-
ci_source_helpers_1.ensureEnvKeysAreInt(this.env, ["CF_PULL_REQUEST_NUMBER"]));
|
|
54
|
+
return ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CF_PULL_REQUEST_NUMBER"]) &&
|
|
55
|
+
(0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, ["CF_PULL_REQUEST_NUMBER"]));
|
|
56
56
|
},
|
|
57
57
|
enumerable: false,
|
|
58
58
|
configurable: true
|
|
@@ -75,7 +75,7 @@ var Codefresh = /** @class */ (function () {
|
|
|
75
75
|
if (splitSlug.length === 7) {
|
|
76
76
|
var owner = splitSlug[3];
|
|
77
77
|
var reponame = splitSlug[4];
|
|
78
|
-
return owner && reponame ? owner
|
|
78
|
+
return owner && reponame ? "".concat(owner, "/").concat(reponame) : "";
|
|
79
79
|
}
|
|
80
80
|
return "";
|
|
81
81
|
},
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAA;QACtE,CAAC;;;OAAA;IAED,sBAAI,2BAAI;aAAR;YACE,OAAO,CACL,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC;gBACxD,IAAA,uCAAmB,EAAC,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,CAAC,UAAG,KAAK,cAAI,QAAQ,CAAE,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"}
|
|
@@ -24,7 +24,7 @@ var Codemagic = /** @class */ (function () {
|
|
|
24
24
|
Object.defineProperty(Codemagic.prototype, "isCI", {
|
|
25
25
|
get: function () {
|
|
26
26
|
// Codemagic developer relations confirmed this is fine to use for this purpose
|
|
27
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["FCI_BUILD_ID"]);
|
|
27
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["FCI_BUILD_ID"]);
|
|
28
28
|
},
|
|
29
29
|
enumerable: false,
|
|
30
30
|
configurable: true
|
|
@@ -33,8 +33,8 @@ var Codemagic = /** @class */ (function () {
|
|
|
33
33
|
get: function () {
|
|
34
34
|
var mustHave = ["FCI_PULL_REQUEST", "FCI_REPO_SLUG", "FCI_PROJECT_ID", "FCI_BUILD_ID"];
|
|
35
35
|
var mustBeInts = ["BUILD_NUMBER", "FCI_PULL_REQUEST_NUMBER"];
|
|
36
|
-
return (ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) &&
|
|
37
|
-
ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts) &&
|
|
36
|
+
return ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) &&
|
|
37
|
+
(0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts) &&
|
|
38
38
|
this.env.FCI_PULL_REQUEST === "true");
|
|
39
39
|
},
|
|
40
40
|
enumerable: false,
|
|
@@ -57,7 +57,7 @@ var Codemagic = /** @class */ (function () {
|
|
|
57
57
|
Object.defineProperty(Codemagic.prototype, "ciRunURL", {
|
|
58
58
|
get: function () {
|
|
59
59
|
var _a = process.env, FCI_BUILD_ID = _a.FCI_BUILD_ID, FCI_PROJECT_ID = _a.FCI_PROJECT_ID;
|
|
60
|
-
return "https://codemagic.io/app/"
|
|
60
|
+
return "https://codemagic.io/app/".concat(FCI_PROJECT_ID, "/build/").concat(FCI_BUILD_ID);
|
|
61
61
|
},
|
|
62
62
|
enumerable: false,
|
|
63
63
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Codemagic.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Codemagic.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;GAOG;AACH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,IAAA,KAAmC,OAAO,CAAC,GAAG,EAA5C,YAAY,kBAAA,EAAE,cAAc,oBAAgB,CAAA;YACpD,OAAO,mCAA4B,cAAc,oBAAU,YAAY,CAAE,CAAA;QAC3E,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AAlCD,IAkCC;AAlCY,8BAAS"}
|
|
@@ -80,7 +80,7 @@ var Codeship = /** @class */ (function () {
|
|
|
80
80
|
var prID;
|
|
81
81
|
return __generator(this, function (_a) {
|
|
82
82
|
switch (_a.label) {
|
|
83
|
-
case 0: return [4 /*yield*/, ci_source_helpers_1.getPullRequestIDForBranch(this, this.env, this.branchName)];
|
|
83
|
+
case 0: return [4 /*yield*/, (0, ci_source_helpers_1.getPullRequestIDForBranch)(this, this.env, this.branchName)];
|
|
84
84
|
case 1:
|
|
85
85
|
prID = _a.sent();
|
|
86
86
|
this.default.prID = prID.toString();
|
|
@@ -98,7 +98,7 @@ var Codeship = /** @class */ (function () {
|
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(Codeship.prototype, "isCI", {
|
|
100
100
|
get: function () {
|
|
101
|
-
if (ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CI_NAME"]) && this.env.CI_NAME === "codeship") {
|
|
101
|
+
if ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CI_NAME"]) && this.env.CI_NAME === "codeship") {
|
|
102
102
|
return true;
|
|
103
103
|
}
|
|
104
104
|
return false;
|
|
@@ -122,7 +122,7 @@ var Codeship = /** @class */ (function () {
|
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(Codeship.prototype, "repoSlug", {
|
|
124
124
|
get: function () {
|
|
125
|
-
if (ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CI_REPO_NAME"])) {
|
|
125
|
+
if ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CI_REPO_NAME"])) {
|
|
126
126
|
return this.env.CI_REPO_NAME;
|
|
127
127
|
}
|
|
128
128
|
return "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Codeship.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Codeship.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0DAAoF;AAEpF,uGAAuG;AACvG,+GAA+G;AAE/G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;IAEE,kBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;QAD7B,YAAO,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAA;IACS,CAAC;IAEnC,wBAAK,GAAX;;;;;4BACe,qBAAM,6CAAyB,
|
|
1
|
+
{"version":3,"file":"Codeship.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Codeship.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0DAAoF;AAEpF,uGAAuG;AACvG,+GAA+G;AAE/G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;IAEE,kBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;QAD7B,YAAO,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAA;IACS,CAAC;IAEnC,wBAAK,GAAX;;;;;4BACe,qBAAM,IAAA,6CAAyB,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,EAAA;;wBAAvE,IAAI,GAAG,SAAgE;wBAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;;;;;KACpC;IAED,sBAAI,0BAAI;aAAR;YACE,OAAO,UAAU,CAAA;QACnB,CAAC;;;OAAA;IAED,sBAAI,0BAAI;aAAR;YACE,IAAI,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,KAAK,UAAU,EAAE;gBAChF,OAAO,IAAI,CAAA;aACZ;YACD,OAAO,KAAK,CAAA;QACd,CAAC;;;OAAA;IAED,sBAAI,0BAAI;aAAR;YACE,OAAO,IAAI,CAAC,aAAa,KAAK,GAAG,CAAA;QACnC,CAAC;;;OAAA;IAED,sBAAI,mCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAA;QAC1B,CAAC;;;OAAA;IAED,sBAAI,8BAAQ;aAAZ;YACE,IAAI,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE;gBAClD,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,CAAA;aAC7B;YACD,OAAO,EAAE,CAAA;QACX,CAAC;;;OAAA;IAED,sBAAY,gCAAU;aAAtB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAA;QAC3B,CAAC;;;OAAA;IACH,eAAC;AAAD,CAAC,AAtCD,IAsCC;AAtCY,4BAAQ"}
|
|
@@ -43,7 +43,7 @@ var Concourse = /** @class */ (function () {
|
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(Concourse.prototype, "isCI", {
|
|
45
45
|
get: function () {
|
|
46
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CONCOURSE"]);
|
|
46
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["CONCOURSE"]);
|
|
47
47
|
},
|
|
48
48
|
enumerable: false,
|
|
49
49
|
configurable: true
|
|
@@ -52,7 +52,7 @@ var Concourse = /** @class */ (function () {
|
|
|
52
52
|
get: function () {
|
|
53
53
|
var mustHave = ["PULL_REQUEST_ID", "REPO_SLUG"];
|
|
54
54
|
var mustBeInts = ["PULL_REQUEST_ID"];
|
|
55
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
55
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
56
56
|
},
|
|
57
57
|
enumerable: false,
|
|
58
58
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Concourse.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Concourse.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;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,
|
|
1
|
+
{"version":3,"file":"Concourse.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Concourse.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;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,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;QACpD,CAAC;;;OAAA;IAED,sBAAI,2BAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAA;YACjD,IAAM,UAAU,GAAG,CAAC,iBAAiB,CAAC,CAAA;YACtC,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,IAAA,uCAAmB,EAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAED,sBAAI,oCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,eAAe,CAAA;QACjC,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAA;QAC3B,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAA;QAC3B,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AA5BD,IA4BC;AA5BY,8BAAS"}
|
|
@@ -42,18 +42,18 @@ var DockerCloud = /** @class */ (function () {
|
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(DockerCloud.prototype, "isCI", {
|
|
44
44
|
get: function () {
|
|
45
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["DOCKER_REPO"]);
|
|
45
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["DOCKER_REPO"]);
|
|
46
46
|
},
|
|
47
47
|
enumerable: false,
|
|
48
48
|
configurable: true
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(DockerCloud.prototype, "isPR", {
|
|
51
51
|
get: function () {
|
|
52
|
-
if (ci_source_helpers_1.ensureEnvKeysExist(this.env, ["PULL_REQUEST_URL"])) {
|
|
52
|
+
if ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["PULL_REQUEST_URL"])) {
|
|
53
53
|
return true;
|
|
54
54
|
}
|
|
55
55
|
var mustHave = ["SOURCE_REPOSITORY_URL", "PULL_REQUEST_URL"];
|
|
56
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave);
|
|
56
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave);
|
|
57
57
|
},
|
|
58
58
|
enumerable: false,
|
|
59
59
|
configurable: true
|
|
@@ -80,7 +80,7 @@ var DockerCloud = /** @class */ (function () {
|
|
|
80
80
|
Object.defineProperty(DockerCloud.prototype, "repoSlug", {
|
|
81
81
|
get: function () {
|
|
82
82
|
var _a = this._prParseURL(), owner = _a.owner, reponame = _a.reponame;
|
|
83
|
-
return owner && reponame ? owner
|
|
83
|
+
return owner && reponame ? "".concat(owner, "/").concat(reponame) : "";
|
|
84
84
|
},
|
|
85
85
|
enumerable: false,
|
|
86
86
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DockerCloud.js","sourceRoot":"","sources":["../../../source/ci_source/providers/DockerCloud.ts"],"names":[],"mappings":";;;AACA,0DAAyD;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;IACE,qBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,6BAAI;aAAR;YACE,OAAO,cAAc,CAAA;QACvB,CAAC;;;OAAA;IAED,sBAAI,6BAAI;aAAR;YACE,OAAO,sCAAkB,
|
|
1
|
+
{"version":3,"file":"DockerCloud.js","sourceRoot":"","sources":["../../../source/ci_source/providers/DockerCloud.ts"],"names":[],"mappings":";;;AACA,0DAAyD;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;IACE,qBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,6BAAI;aAAR;YACE,OAAO,cAAc,CAAA;QACvB,CAAC;;;OAAA;IAED,sBAAI,6BAAI;aAAR;YACE,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;QACtD,CAAC;;;OAAA;IAED,sBAAI,6BAAI;aAAR;YACE,IAAI,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE;gBACtD,OAAO,IAAI,CAAA;aACZ;YAED,IAAM,QAAQ,GAAG,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAAA;YAC9D,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAC/C,CAAC;;;OAAA;IAEO,iCAAW,GAAnB;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAA;QAC7C,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,sCAAa;aAAjB;YACU,IAAA,EAAE,GAAK,IAAI,CAAC,WAAW,EAAE,GAAvB,CAAuB;YACjC,OAAO,EAAE,IAAI,EAAE,CAAA;QACjB,CAAC;;;OAAA;IAED,sBAAI,iCAAQ;aAAZ;YACQ,IAAA,KAAsB,IAAI,CAAC,WAAW,EAAE,EAAtC,KAAK,WAAA,EAAE,QAAQ,cAAuB,CAAA;YAC9C,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,UAAG,KAAK,cAAI,QAAQ,CAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QACxD,CAAC;;;OAAA;IAED,sBAAI,gCAAO;aAAX;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAA;QACvC,CAAC;;;OAAA;IACH,kBAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,kCAAW"}
|
|
@@ -35,7 +35,7 @@ var Drone = /** @class */ (function () {
|
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(Drone.prototype, "isCI", {
|
|
37
37
|
get: function () {
|
|
38
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["DRONE"]);
|
|
38
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["DRONE"]);
|
|
39
39
|
},
|
|
40
40
|
enumerable: false,
|
|
41
41
|
configurable: true
|
|
@@ -44,7 +44,7 @@ var Drone = /** @class */ (function () {
|
|
|
44
44
|
get: function () {
|
|
45
45
|
var mustHave = ["DRONE", "DRONE_PULL_REQUEST", "DRONE_REPO"];
|
|
46
46
|
var mustBeInts = ["DRONE_PULL_REQUEST"];
|
|
47
|
-
return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
|
|
47
|
+
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
48
48
|
},
|
|
49
49
|
enumerable: false,
|
|
50
50
|
configurable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drone.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Drone.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;IACE,eAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,uBAAI;aAAR;YACE,OAAO,OAAO,CAAA;QAChB,CAAC;;;OAAA;IAED,sBAAI,uBAAI;aAAR;YACE,OAAO,sCAAkB,
|
|
1
|
+
{"version":3,"file":"Drone.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Drone.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;IACE,eAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,uBAAI;aAAR;YACE,OAAO,OAAO,CAAA;QAChB,CAAC;;;OAAA;IAED,sBAAI,uBAAI;aAAR;YACE,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;QAChD,CAAC;;;OAAA;IAED,sBAAI,uBAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,YAAY,CAAC,CAAA;YAC9D,IAAM,UAAU,GAAG,CAAC,oBAAoB,CAAC,CAAA;YACzC,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,IAAA,uCAAmB,EAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAED,sBAAI,gCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAA;QACpC,CAAC;;;OAAA;IAED,sBAAI,2BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAA;QAC5B,CAAC;;;OAAA;IACH,YAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,sBAAK"}
|