danger 13.0.4 → 13.0.7
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/CHANGELOG.md +12 -0
- package/README.md +3 -3
- package/SECURITY.md +1 -1
- package/distribution/api/fetch.js +3 -3
- package/distribution/api/fetch.js.map +1 -1
- package/distribution/ci_source/ci_source_helpers.js +1 -5
- package/distribution/ci_source/ci_source_helpers.js.map +1 -1
- package/distribution/ci_source/providers/index.d.ts +2 -5
- package/distribution/ci_source/providers/index.js +0 -9
- package/distribution/ci_source/providers/index.js.map +1 -1
- package/distribution/commands/danger-runner.js +2 -2
- package/distribution/commands/danger-runner.js.map +1 -1
- package/distribution/commands/utils/runDangerSubprocess.js +4 -3
- package/distribution/commands/utils/runDangerSubprocess.js.map +1 -1
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudAPI.js +2 -5
- package/distribution/platforms/bitbucket_cloud/BitBucketCloudAPI.js.map +1 -1
- package/distribution/platforms/bitbucket_server/BitBucketServerAPI.js +2 -5
- package/distribution/platforms/bitbucket_server/BitBucketServerAPI.js.map +1 -1
- package/distribution/platforms/git/gitJSONToGitDSL.js +2 -3
- package/distribution/platforms/git/gitJSONToGitDSL.js.map +1 -1
- package/distribution/platforms/git/localGetDiff.js +2 -1
- package/distribution/platforms/git/localGetDiff.js.map +1 -1
- package/distribution/platforms/github/GitHubAPI.js +37 -2
- package/distribution/platforms/github/GitHubAPI.js.map +1 -1
- package/package.json +5 -11
- package/.eslintignore +0 -2
- package/.gitattributes +0 -4
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -36
- package/.pre-commit-config.yaml +0 -13
- package/.prettierignore +0 -5
- package/.release-it.json +0 -20
- package/CONTRIBUTING.md +0 -61
- package/Dockerfile +0 -27
- package/VISION.md +0 -54
- package/distribution/ci_source/providers/BuddyBuild.d.ts +0 -25
- package/distribution/ci_source/providers/BuddyBuild.js +0 -64
- package/distribution/ci_source/providers/BuddyBuild.js.map +0 -1
- package/distribution/ci_source/providers/DockerCloud.d.ts +0 -39
- package/distribution/ci_source/providers/DockerCloud.js +0 -98
- package/distribution/ci_source/providers/DockerCloud.js.map +0 -1
- package/distribution/ci_source/providers/Nevercode.d.ts +0 -23
- package/distribution/ci_source/providers/Nevercode.js +0 -70
- package/distribution/ci_source/providers/Nevercode.js.map +0 -1
- package/tsconfig.spec.json +0 -4
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Nevercode = void 0;
|
|
4
|
-
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
5
|
-
/**
|
|
6
|
-
* Nevercode.io CI Integration
|
|
7
|
-
*
|
|
8
|
-
* Environment Variables Documented: https://developer.nevercode.io/v1.0/docs/environment-variables-files
|
|
9
|
-
*
|
|
10
|
-
* Note: The company that runs Nevercode is migrating all customers
|
|
11
|
-
* to their new service Codemagic.io in Spring of 2021
|
|
12
|
-
* - billing is migrated through Customer Support
|
|
13
|
-
* - the CI Configuration is managed in your repo instead of in a web-dashboard.
|
|
14
|
-
*
|
|
15
|
-
* TODO @fbartho delete this integration when it's fully offline.
|
|
16
|
-
*/
|
|
17
|
-
var Nevercode = /** @class */ (function () {
|
|
18
|
-
function Nevercode(env) {
|
|
19
|
-
this.env = env;
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(Nevercode.prototype, "name", {
|
|
22
|
-
get: function () {
|
|
23
|
-
return "Nevercode";
|
|
24
|
-
},
|
|
25
|
-
enumerable: false,
|
|
26
|
-
configurable: true
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(Nevercode.prototype, "isCI", {
|
|
29
|
-
get: function () {
|
|
30
|
-
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["NEVERCODE"]);
|
|
31
|
-
},
|
|
32
|
-
enumerable: false,
|
|
33
|
-
configurable: true
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(Nevercode.prototype, "isPR", {
|
|
36
|
-
get: function () {
|
|
37
|
-
var mustHave = ["NEVERCODE_PULL_REQUEST", "NEVERCODE_REPO_SLUG"];
|
|
38
|
-
var mustBeInts = ["NEVERCODE_GIT_PROVIDER_PULL_REQUEST", "NEVERCODE_PULL_REQUEST_NUMBER"];
|
|
39
|
-
return ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) &&
|
|
40
|
-
(0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts) &&
|
|
41
|
-
this.env.NEVERCODE_PULL_REQUEST == "true");
|
|
42
|
-
},
|
|
43
|
-
enumerable: false,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(Nevercode.prototype, "pullRequestID", {
|
|
47
|
-
get: function () {
|
|
48
|
-
return this.env.NEVERCODE_PULL_REQUEST_NUMBER;
|
|
49
|
-
},
|
|
50
|
-
enumerable: false,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(Nevercode.prototype, "repoSlug", {
|
|
54
|
-
get: function () {
|
|
55
|
-
return this.env.NEVERCODE_REPO_SLUG;
|
|
56
|
-
},
|
|
57
|
-
enumerable: false,
|
|
58
|
-
configurable: true
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(Nevercode.prototype, "ciRunURL", {
|
|
61
|
-
get: function () {
|
|
62
|
-
return process.env.NEVERCODE_BUILD_URL;
|
|
63
|
-
},
|
|
64
|
-
enumerable: false,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
return Nevercode;
|
|
68
|
-
}());
|
|
69
|
-
exports.Nevercode = Nevercode;
|
|
70
|
-
//# sourceMappingURL=Nevercode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Nevercode.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Nevercode.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;GAWG;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,wBAAwB,EAAE,qBAAqB,CAAC,CAAA;YAClE,IAAM,UAAU,GAAG,CAAC,qCAAqC,EAAE,+BAA+B,CAAC,CAAA;YAC3F,OAAO,CACL,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC;gBACtC,IAAA,uCAAmB,EAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC;gBACzC,IAAI,CAAC,GAAG,CAAC,sBAAsB,IAAI,MAAM,CAC1C,CAAA;QACH,CAAC;;;OAAA;IAED,sBAAI,oCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,6BAA6B,CAAA;QAC/C,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACrC,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACxC,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AAhCD,IAgCC;AAhCY,8BAAS"}
|
package/tsconfig.spec.json
DELETED