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.
Files changed (240) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +1 -1
  2. package/CHANGELOG.md +21 -0
  3. package/README.md +2 -2
  4. package/distribution/api/fetch.js +22 -8
  5. package/distribution/api/fetch.js.map +1 -1
  6. package/distribution/ci_source/ci_source_helpers.js +3 -1
  7. package/distribution/ci_source/ci_source_helpers.js.map +1 -1
  8. package/distribution/ci_source/get_ci_source.js +30 -9
  9. package/distribution/ci_source/get_ci_source.js.map +1 -1
  10. package/distribution/ci_source/providers/AppCenter.d.ts +6 -6
  11. package/distribution/ci_source/providers/AppCenter.js +28 -14
  12. package/distribution/ci_source/providers/AppCenter.js.map +1 -1
  13. package/distribution/ci_source/providers/Bamboo.d.ts +5 -5
  14. package/distribution/ci_source/providers/Bamboo.js +6 -5
  15. package/distribution/ci_source/providers/Bamboo.js.map +1 -1
  16. package/distribution/ci_source/providers/BitbucketPipelines.d.ts +6 -6
  17. package/distribution/ci_source/providers/BitbucketPipelines.js +7 -6
  18. package/distribution/ci_source/providers/BitbucketPipelines.js.map +1 -1
  19. package/distribution/ci_source/providers/Bitrise.d.ts +7 -7
  20. package/distribution/ci_source/providers/Bitrise.js +8 -7
  21. package/distribution/ci_source/providers/Bitrise.js.map +1 -1
  22. package/distribution/ci_source/providers/BuddyBuild.d.ts +5 -5
  23. package/distribution/ci_source/providers/BuddyBuild.js +6 -5
  24. package/distribution/ci_source/providers/BuddyBuild.js.map +1 -1
  25. package/distribution/ci_source/providers/BuddyWorks.d.ts +6 -6
  26. package/distribution/ci_source/providers/BuddyWorks.js +7 -6
  27. package/distribution/ci_source/providers/BuddyWorks.js.map +1 -1
  28. package/distribution/ci_source/providers/Buildkite.d.ts +6 -6
  29. package/distribution/ci_source/providers/Buildkite.js +7 -6
  30. package/distribution/ci_source/providers/Buildkite.js.map +1 -1
  31. package/distribution/ci_source/providers/Circle.d.ts +8 -8
  32. package/distribution/ci_source/providers/Circle.js +9 -8
  33. package/distribution/ci_source/providers/Circle.js.map +1 -1
  34. package/distribution/ci_source/providers/Cirrus.d.ts +6 -6
  35. package/distribution/ci_source/providers/Cirrus.js +7 -6
  36. package/distribution/ci_source/providers/Cirrus.js.map +1 -1
  37. package/distribution/ci_source/providers/CodeBuild.d.ts +6 -6
  38. package/distribution/ci_source/providers/CodeBuild.js +9 -7
  39. package/distribution/ci_source/providers/CodeBuild.js.map +1 -1
  40. package/distribution/ci_source/providers/Codefresh.d.ts +6 -6
  41. package/distribution/ci_source/providers/Codefresh.js +7 -6
  42. package/distribution/ci_source/providers/Codefresh.js.map +1 -1
  43. package/distribution/ci_source/providers/Codemagic.d.ts +6 -6
  44. package/distribution/ci_source/providers/Codemagic.js +7 -6
  45. package/distribution/ci_source/providers/Codemagic.js.map +1 -1
  46. package/distribution/ci_source/providers/Codeship.d.ts +6 -6
  47. package/distribution/ci_source/providers/Codeship.js +9 -7
  48. package/distribution/ci_source/providers/Codeship.js.map +1 -1
  49. package/distribution/ci_source/providers/Concourse.d.ts +6 -6
  50. package/distribution/ci_source/providers/Concourse.js +7 -6
  51. package/distribution/ci_source/providers/Concourse.js.map +1 -1
  52. package/distribution/ci_source/providers/DockerCloud.d.ts +6 -6
  53. package/distribution/ci_source/providers/DockerCloud.js +7 -6
  54. package/distribution/ci_source/providers/DockerCloud.js.map +1 -1
  55. package/distribution/ci_source/providers/Drone.d.ts +5 -5
  56. package/distribution/ci_source/providers/Drone.js +6 -5
  57. package/distribution/ci_source/providers/Drone.js.map +1 -1
  58. package/distribution/ci_source/providers/Fake.d.ts +5 -5
  59. package/distribution/ci_source/providers/Fake.js +7 -6
  60. package/distribution/ci_source/providers/Fake.js.map +1 -1
  61. package/distribution/ci_source/providers/GitHubActions.d.ts +6 -6
  62. package/distribution/ci_source/providers/GitHubActions.js +7 -6
  63. package/distribution/ci_source/providers/GitHubActions.js.map +1 -1
  64. package/distribution/ci_source/providers/GitLabCI.d.ts +6 -6
  65. package/distribution/ci_source/providers/GitLabCI.js +7 -6
  66. package/distribution/ci_source/providers/GitLabCI.js.map +1 -1
  67. package/distribution/ci_source/providers/Jenkins.d.ts +7 -7
  68. package/distribution/ci_source/providers/Jenkins.js +8 -7
  69. package/distribution/ci_source/providers/Jenkins.js.map +1 -1
  70. package/distribution/ci_source/providers/Netlify.d.ts +5 -5
  71. package/distribution/ci_source/providers/Netlify.js +6 -5
  72. package/distribution/ci_source/providers/Netlify.js.map +1 -1
  73. package/distribution/ci_source/providers/Nevercode.d.ts +6 -6
  74. package/distribution/ci_source/providers/Nevercode.js +7 -6
  75. package/distribution/ci_source/providers/Nevercode.js.map +1 -1
  76. package/distribution/ci_source/providers/Screwdriver.d.ts +6 -6
  77. package/distribution/ci_source/providers/Screwdriver.js +7 -6
  78. package/distribution/ci_source/providers/Screwdriver.js.map +1 -1
  79. package/distribution/ci_source/providers/Semaphore.d.ts +5 -5
  80. package/distribution/ci_source/providers/Semaphore.js +6 -5
  81. package/distribution/ci_source/providers/Semaphore.js.map +1 -1
  82. package/distribution/ci_source/providers/Surf.d.ts +5 -5
  83. package/distribution/ci_source/providers/Surf.js +6 -5
  84. package/distribution/ci_source/providers/Surf.js.map +1 -1
  85. package/distribution/ci_source/providers/TeamCity.d.ts +5 -5
  86. package/distribution/ci_source/providers/TeamCity.js +6 -5
  87. package/distribution/ci_source/providers/TeamCity.js.map +1 -1
  88. package/distribution/ci_source/providers/Travis.d.ts +6 -6
  89. package/distribution/ci_source/providers/Travis.js +7 -6
  90. package/distribution/ci_source/providers/Travis.js.map +1 -1
  91. package/distribution/ci_source/providers/VSTS.d.ts +5 -5
  92. package/distribution/ci_source/providers/VSTS.js +6 -5
  93. package/distribution/ci_source/providers/VSTS.js.map +1 -1
  94. package/distribution/ci_source/providers/XcodeCloud.d.ts +22 -0
  95. package/distribution/ci_source/providers/XcodeCloud.js +68 -0
  96. package/distribution/ci_source/providers/XcodeCloud.js.map +1 -0
  97. package/distribution/ci_source/providers/index.d.ts +3 -2
  98. package/distribution/ci_source/providers/index.js +4 -0
  99. package/distribution/ci_source/providers/index.js.map +1 -1
  100. package/distribution/ci_source/providers/local-repo.d.ts +5 -5
  101. package/distribution/ci_source/providers/local-repo.js +7 -6
  102. package/distribution/ci_source/providers/local-repo.js.map +1 -1
  103. package/distribution/commands/ci/resetStatus.js +4 -3
  104. package/distribution/commands/ci/resetStatus.js.map +1 -1
  105. package/distribution/commands/ci/runner.js +4 -3
  106. package/distribution/commands/ci/runner.js.map +1 -1
  107. package/distribution/commands/danger-init.js +29 -17
  108. package/distribution/commands/danger-init.js.map +1 -1
  109. package/distribution/commands/danger-pr.js +6 -4
  110. package/distribution/commands/danger-pr.js.map +1 -1
  111. package/distribution/commands/danger-process.js +17 -5
  112. package/distribution/commands/danger-process.js.map +1 -1
  113. package/distribution/commands/danger-runner.js +3 -3
  114. package/distribution/commands/danger-runner.js.map +1 -1
  115. package/distribution/commands/init/add-to-ci.js +6 -5
  116. package/distribution/commands/init/add-to-ci.js.map +1 -1
  117. package/distribution/commands/init/default-dangerfile.js +16 -3
  118. package/distribution/commands/init/default-dangerfile.js.map +1 -1
  119. package/distribution/commands/init/get-repo-slug.js +1 -0
  120. package/distribution/commands/init/get-repo-slug.js.map +1 -1
  121. package/distribution/commands/init/interfaces.js +1 -0
  122. package/distribution/commands/init/interfaces.js.map +1 -1
  123. package/distribution/commands/init/state-setup.js +23 -10
  124. package/distribution/commands/init/state-setup.js.map +1 -1
  125. package/distribution/commands/utils/chainsmoker.js +1 -1
  126. package/distribution/commands/utils/chainsmoker.js.map +1 -1
  127. package/distribution/commands/utils/fileUtils.js +1 -0
  128. package/distribution/commands/utils/fileUtils.js.map +1 -1
  129. package/distribution/commands/utils/getRuntimeCISource.js +3 -3
  130. package/distribution/commands/utils/getRuntimeCISource.js.map +1 -1
  131. package/distribution/commands/utils/reporting.js +12 -4
  132. package/distribution/commands/utils/reporting.js.map +1 -1
  133. package/distribution/commands/utils/runDangerSubprocess.js +7 -5
  134. package/distribution/commands/utils/runDangerSubprocess.js.map +1 -1
  135. package/distribution/commands/utils/validateDangerfileExists.js +14 -2
  136. package/distribution/commands/utils/validateDangerfileExists.js.map +1 -1
  137. package/distribution/danger.d.ts +9 -4
  138. package/distribution/danger.js.flow +11 -4
  139. package/distribution/debug.js +1 -0
  140. package/distribution/debug.js.map +1 -1
  141. package/distribution/dsl/BitBucketCloudDSL.d.ts +4 -4
  142. package/distribution/dsl/DangerDSL.js +1 -0
  143. package/distribution/dsl/DangerDSL.js.map +1 -1
  144. package/distribution/dsl/DangerResults.js +10 -2
  145. package/distribution/dsl/DangerResults.js.map +1 -1
  146. package/distribution/dsl/GitLabDSL.d.ts +5 -0
  147. package/distribution/dsl/Violation.js +1 -0
  148. package/distribution/dsl/Violation.js.map +1 -1
  149. package/distribution/platforms/BitBucketCloud.js +3 -1
  150. package/distribution/platforms/BitBucketCloud.js.map +1 -1
  151. package/distribution/platforms/BitBucketServer.js +4 -2
  152. package/distribution/platforms/BitBucketServer.js.map +1 -1
  153. package/distribution/platforms/FakePlatform.js +3 -1
  154. package/distribution/platforms/FakePlatform.js.map +1 -1
  155. package/distribution/platforms/GitHub.js +7 -6
  156. package/distribution/platforms/GitHub.js.map +1 -1
  157. package/distribution/platforms/GitLab.js +5 -4
  158. package/distribution/platforms/GitLab.js.map +1 -1
  159. package/distribution/platforms/LocalGit.js +3 -1
  160. package/distribution/platforms/LocalGit.js.map +1 -1
  161. package/distribution/platforms/bitbucket_cloud/BitBucketCloudAPI.js +4 -2
  162. package/distribution/platforms/bitbucket_cloud/BitBucketCloudAPI.js.map +1 -1
  163. package/distribution/platforms/bitbucket_cloud/BitBucketCloudGit.js +3 -1
  164. package/distribution/platforms/bitbucket_cloud/BitBucketCloudGit.js.map +1 -1
  165. package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.js +23 -23
  166. package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.js.map +1 -1
  167. package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.js +17 -17
  168. package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.js.map +1 -1
  169. package/distribution/platforms/bitbucket_server/BitBucketServerAPI.js +3 -1
  170. package/distribution/platforms/bitbucket_server/BitBucketServerAPI.js.map +1 -1
  171. package/distribution/platforms/bitbucket_server/BitBucketServerGit.js +15 -7
  172. package/distribution/platforms/bitbucket_server/BitBucketServerGit.js.map +1 -1
  173. package/distribution/platforms/git/diffToGitJSONDSL.js +1 -0
  174. package/distribution/platforms/git/diffToGitJSONDSL.js.map +1 -1
  175. package/distribution/platforms/git/gitJSONToGitDSL.js +27 -14
  176. package/distribution/platforms/git/gitJSONToGitDSL.js.map +1 -1
  177. package/distribution/platforms/git/localGetCommits.d.ts +1 -2
  178. package/distribution/platforms/git/localGetCommits.js +35 -95
  179. package/distribution/platforms/git/localGetCommits.js.map +1 -1
  180. package/distribution/platforms/git/localGetDiff.js +1 -0
  181. package/distribution/platforms/git/localGetDiff.js.map +1 -1
  182. package/distribution/platforms/git/localGetFileAtSHA.js +1 -0
  183. package/distribution/platforms/git/localGetFileAtSHA.js.map +1 -1
  184. package/distribution/platforms/git/localLogGitCommits.d.ts +31 -0
  185. package/distribution/platforms/git/localLogGitCommits.js +64 -0
  186. package/distribution/platforms/git/localLogGitCommits.js.map +1 -0
  187. package/distribution/platforms/github/GitHubAPI.js +5 -3
  188. package/distribution/platforms/github/GitHubAPI.js.map +1 -1
  189. package/distribution/platforms/github/GitHubGit.js +3 -1
  190. package/distribution/platforms/github/GitHubGit.js.map +1 -1
  191. package/distribution/platforms/github/GitHubUtils.js +7 -6
  192. package/distribution/platforms/github/GitHubUtils.js.map +1 -1
  193. package/distribution/platforms/github/comms/checks/githubAppSupport.js +23 -10
  194. package/distribution/platforms/github/comms/checks/githubAppSupport.js.map +1 -1
  195. package/distribution/platforms/github/comms/checks/resultsToCheck.js +10 -10
  196. package/distribution/platforms/github/comms/checks/resultsToCheck.js.map +1 -1
  197. package/distribution/platforms/github/comms/checksCommenter.js +4 -3
  198. package/distribution/platforms/github/comms/checksCommenter.js.map +1 -1
  199. package/distribution/platforms/github/comms/issueCommenter.js +8 -7
  200. package/distribution/platforms/github/comms/issueCommenter.js.map +1 -1
  201. package/distribution/platforms/github/customGitHubRequire.js +12 -4
  202. package/distribution/platforms/github/customGitHubRequire.js.map +1 -1
  203. package/distribution/platforms/gitlab/GitLabAPI.d.ts +9 -3
  204. package/distribution/platforms/gitlab/GitLabAPI.js +70 -3
  205. package/distribution/platforms/gitlab/GitLabAPI.js.map +1 -1
  206. package/distribution/platforms/gitlab/GitLabGit.js +4 -3
  207. package/distribution/platforms/gitlab/GitLabGit.js.map +1 -1
  208. package/distribution/platforms/platform.js +18 -3
  209. package/distribution/platforms/platform.js.map +1 -1
  210. package/distribution/platforms/pullRequestParser.js +16 -3
  211. package/distribution/platforms/pullRequestParser.js.map +1 -1
  212. package/distribution/runner/DangerUtils.js +1 -0
  213. package/distribution/runner/DangerUtils.js.map +1 -1
  214. package/distribution/runner/Dangerfile.js +1 -0
  215. package/distribution/runner/Dangerfile.js.map +1 -1
  216. package/distribution/runner/Executor.d.ts +1 -1
  217. package/distribution/runner/Executor.js +13 -4
  218. package/distribution/runner/Executor.js.map +1 -1
  219. package/distribution/runner/dangerDSLJSON.js +1 -0
  220. package/distribution/runner/dangerDSLJSON.js.map +1 -1
  221. package/distribution/runner/dslGenerator.js +13 -11
  222. package/distribution/runner/dslGenerator.js.map +1 -1
  223. package/distribution/runner/jsonToContext.js +3 -1
  224. package/distribution/runner/jsonToContext.js.map +1 -1
  225. package/distribution/runner/jsonToDSL.js +26 -12
  226. package/distribution/runner/jsonToDSL.js.map +1 -1
  227. package/distribution/runner/runners/inline.js +24 -11
  228. package/distribution/runner/runners/inline.js.map +1 -1
  229. package/distribution/runner/runners/utils/resultsForCaughtError.js.map +1 -1
  230. package/distribution/runner/runners/utils/transpiler.js +23 -3
  231. package/distribution/runner/runners/utils/transpiler.js.map +1 -1
  232. package/distribution/runner/templates/bitbucketCloudTemplate.js +1 -0
  233. package/distribution/runner/templates/bitbucketCloudTemplate.js.map +1 -1
  234. package/distribution/runner/templates/bitbucketServerTemplate.js +1 -0
  235. package/distribution/runner/templates/bitbucketServerTemplate.js.map +1 -1
  236. package/distribution/runner/templates/githubIssueTemplate.js +1 -0
  237. package/distribution/runner/templates/githubIssueTemplate.js.map +1 -1
  238. package/distribution/runner/templates/markdownTableTemplate.js +1 -0
  239. package/distribution/runner/templates/markdownTableTemplate.js.map +1 -1
  240. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"GitLabCI.js","sourceRoot":"","sources":["../../../source/ci_source/providers/GitLabCI.ts"],"names":[],"mappings":";;AACA,0DAA8E;AAE9E;IACE,kBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,0BAAI;aAAR;YACE,OAAO,WAAW,CAAA;QACpB,CAAC;;;OAAA;IAED,sBAAI,0BAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;QACpD,CAAC;;;OAAA;IAED,sBAAI,0BAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,sBAAsB,EAAE,iBAAiB,CAAC,CAAA;YAC5D,IAAM,UAAU,GAAG,CAAC,sBAAsB,CAAC,CAAA;YAC3C,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAED,sBAAI,mCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAA;QACtC,CAAC;;;OAAA;IAED,sBAAI,8BAAQ;aAAZ;YACE,OAAO,IAAI,CAA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-33,11 +33,11 @@ export declare class Jenkins implements CISource {
33
33
  private readonly env;
34
34
  constructor(env: Env);
35
35
  private isJenkins;
36
- readonly name: string;
37
- readonly isCI: boolean;
38
- readonly isPR: boolean;
39
- readonly pullRequestID: string;
40
- readonly repoSlug: string;
41
- readonly ciRunURL: string | undefined;
42
- readonly commitHash: string;
36
+ get name(): string;
37
+ get isCI(): boolean;
38
+ get isPR(): boolean;
39
+ get pullRequestID(): string;
40
+ get repoSlug(): string;
41
+ get ciRunURL(): string | undefined;
42
+ get commitHash(): string;
43
43
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Jenkins = void 0;
3
4
  var ci_source_helpers_1 = require("../ci_source_helpers");
4
5
  var pullRequestParser_1 = require("../../platforms/pullRequestParser");
5
6
  // https://jenkins.io/
@@ -45,14 +46,14 @@ var Jenkins = /** @class */ (function () {
45
46
  get: function () {
46
47
  return "Jenkins";
47
48
  },
48
- enumerable: true,
49
+ enumerable: false,
49
50
  configurable: true
50
51
  });
51
52
  Object.defineProperty(Jenkins.prototype, "isCI", {
52
53
  get: function () {
53
54
  return this.isJenkins();
54
55
  },
55
- enumerable: true,
56
+ enumerable: false,
56
57
  configurable: true
57
58
  });
58
59
  Object.defineProperty(Jenkins.prototype, "isPR", {
@@ -63,14 +64,14 @@ var Jenkins = /** @class */ (function () {
63
64
  var isMultiBranchPR = ci_source_helpers_1.ensureEnvKeysExist(this.env, ["CHANGE_ID", "CHANGE_URL"]) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, ["CHANGE_ID"]);
64
65
  return this.isJenkins() && (isMultiBranchPR || isGitHubPR || isGitLabMR);
65
66
  },
66
- enumerable: true,
67
+ enumerable: false,
67
68
  configurable: true
68
69
  });
69
70
  Object.defineProperty(Jenkins.prototype, "pullRequestID", {
70
71
  get: function () {
71
72
  return this.env.ghprbPullId || this.env.gitlabMergeRequestIid || this.env.CHANGE_ID;
72
73
  },
73
- enumerable: true,
74
+ enumerable: false,
74
75
  configurable: true
75
76
  });
76
77
  Object.defineProperty(Jenkins.prototype, "repoSlug", {
@@ -84,21 +85,21 @@ var Jenkins = /** @class */ (function () {
84
85
  }
85
86
  return this.env.ghprbGhRepository || new URL(this.env.GIT_URL_1).pathname.replace(/^\/(.*)\.git$/, "$1");
86
87
  },
87
- enumerable: true,
88
+ enumerable: false,
88
89
  configurable: true
89
90
  });
90
91
  Object.defineProperty(Jenkins.prototype, "ciRunURL", {
91
92
  get: function () {
92
93
  return process.env.RUN_DISPLAY_URL || process.env.BUILD_URL;
93
94
  },
94
- enumerable: true,
95
+ enumerable: false,
95
96
  configurable: true
96
97
  });
97
98
  Object.defineProperty(Jenkins.prototype, "commitHash", {
98
99
  get: function () {
99
100
  return this.env.GIT_COMMIT;
100
101
  },
101
- enumerable: true,
102
+ enumerable: false,
102
103
  configurable: true
103
104
  });
104
105
  return Jenkins;
@@ -1 +1 @@
1
- {"version":3,"file":"Jenkins.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Jenkins.ts"],"names":[],"mappings":";;AACA,0DAA8E;AAC9E,uEAAqE;AAErE,sBAAsB;AACtB,mIAAmI;AAEnI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;IACE,iBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEjC,2BAAS,GAAjB;QACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;IACtD,CAAC;IAED,sBAAI,yBAAI;aAAR;YACE,OAAO,SAAS,CAAA;QAClB,CAAC;;;OAAA;IAED,sBAAI,yBAAI;aAAR;YACE,OAAO,IAAI,CAAC,SAAS,EAAE,CAAA;QACzB,CAAC;;;OAAA;IAED,sBAAI,yBAAI;aAAR;YACE,IAAM,UAAU,GACd,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,mBAAmB,CAAC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IAAI,UAAU,IAAI,UAAU,CAAC,CAAA;QAC1E,CAAC;;;OAAA;IAED,sBAAI,kCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,GAAG,CAAC,qBAAqB,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAA;QACrF,CAAC;;;OAAA;IAED,sBAAI,6BAAQ;aAAZ;YACE,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE;gBACvB,IAAM,MAAM,GAAG,qCAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;gBACrD,IAAI,CAAC,MAAM,EAAE;oBACX,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;iBAClE;gBAED,OAAO,MAAM,CAAC,IAAI,CAAA;aACnB;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,iBAAiB,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC,CAAA;QAC1G,CAAC;;;OAAA;IAED,sBAAI,6BAAQ;aAAZ;YACE,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAA;QAC7D,CAAC;;;OAAA;IAED,sBAAI,+BAAU;aAAd;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAA;QAC5B,CAAC;;;OAAA;IACH,cAAC;AAAD,CAAC,AAlDD,IAkDC;AAlDY,0BAAO"}
@@ -11,9 +11,9 @@ import { Env, CISource } from "../ci_source";
11
11
  export declare class Netlify implements CISource {
12
12
  private readonly env;
13
13
  constructor(env: Env);
14
- readonly name: string;
15
- readonly isCI: boolean;
16
- readonly isPR: boolean;
17
- readonly pullRequestID: string;
18
- readonly repoSlug: string;
14
+ get name(): string;
15
+ get isCI(): boolean;
16
+ get isPR(): boolean;
17
+ get pullRequestID(): string;
18
+ get repoSlug(): string;
19
19
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Netlify = void 0;
3
4
  var ci_source_helpers_1 = require("../ci_source_helpers");
4
5
  /**
5
6
  * ### CI Setup
@@ -18,14 +19,14 @@ var Netlify = /** @class */ (function () {
18
19
  get: function () {
19
20
  return "Netlify";
20
21
  },
21
- enumerable: true,
22
+ enumerable: false,
22
23
  configurable: true
23
24
  });
24
25
  Object.defineProperty(Netlify.prototype, "isCI", {
25
26
  get: function () {
26
27
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["NETLIFY_BUILD_BASE"]);
27
28
  },
28
- enumerable: true,
29
+ enumerable: false,
29
30
  configurable: true
30
31
  });
31
32
  Object.defineProperty(Netlify.prototype, "isPR", {
@@ -34,21 +35,21 @@ var Netlify = /** @class */ (function () {
34
35
  var mustBeInts = ["REVIEW_ID"];
35
36
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
36
37
  },
37
- enumerable: true,
38
+ enumerable: false,
38
39
  configurable: true
39
40
  });
40
41
  Object.defineProperty(Netlify.prototype, "pullRequestID", {
41
42
  get: function () {
42
43
  return this.env.REVIEW_ID;
43
44
  },
44
- enumerable: true,
45
+ enumerable: false,
45
46
  configurable: true
46
47
  });
47
48
  Object.defineProperty(Netlify.prototype, "repoSlug", {
48
49
  get: function () {
49
50
  return this.env.REPOSITORY_URL.replace(/^https:\/\/[^/]+\//, "");
50
51
  },
51
- enumerable: true,
52
+ enumerable: false,
52
53
  configurable: true
53
54
  });
54
55
  return Netlify;
@@ -1 +1 @@
1
- {"version":3,"file":"Netlify.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Netlify.ts"],"names":[],"mappings":";;AACA,0DAA8E;AAE9E;;;;;;;;GAQG;AACH;IACE,iBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IA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E,gBAAgB,CAAC,CAAA;YAChD,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,kCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAA;QAC3B,CAAC;;;OAAA;IAED,sBAAI,6BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;QAClE,CAAC;;;OAAA;IACH,cAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,0BAAO"}
@@ -14,10 +14,10 @@ import { Env, CISource } from "../ci_source";
14
14
  export declare class Nevercode implements CISource {
15
15
  private readonly env;
16
16
  constructor(env: Env);
17
- readonly name: string;
18
- readonly isCI: boolean;
19
- readonly isPR: boolean;
20
- readonly pullRequestID: string;
21
- readonly repoSlug: string;
22
- readonly ciRunURL: string | undefined;
17
+ get name(): string;
18
+ get isCI(): boolean;
19
+ get isPR(): boolean;
20
+ get pullRequestID(): string;
21
+ get repoSlug(): string;
22
+ get ciRunURL(): string | undefined;
23
23
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Nevercode = void 0;
3
4
  var ci_source_helpers_1 = require("../ci_source_helpers");
4
5
  /**
5
6
  * Nevercode.io CI Integration
@@ -21,14 +22,14 @@ var Nevercode = /** @class */ (function () {
21
22
  get: function () {
22
23
  return "Nevercode";
23
24
  },
24
- enumerable: true,
25
+ enumerable: false,
25
26
  configurable: true
26
27
  });
27
28
  Object.defineProperty(Nevercode.prototype, "isCI", {
28
29
  get: function () {
29
30
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["NEVERCODE"]);
30
31
  },
31
- enumerable: true,
32
+ enumerable: false,
32
33
  configurable: true
33
34
  });
34
35
  Object.defineProperty(Nevercode.prototype, "isPR", {
@@ -39,28 +40,28 @@ var Nevercode = /** @class */ (function () {
39
40
  ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts) &&
40
41
  this.env.NEVERCODE_PULL_REQUEST == "true");
41
42
  },
42
- enumerable: true,
43
+ enumerable: false,
43
44
  configurable: true
44
45
  });
45
46
  Object.defineProperty(Nevercode.prototype, "pullRequestID", {
46
47
  get: function () {
47
48
  return this.env.NEVERCODE_PULL_REQUEST_NUMBER;
48
49
  },
49
- enumerable: true,
50
+ enumerable: false,
50
51
  configurable: true
51
52
  });
52
53
  Object.defineProperty(Nevercode.prototype, "repoSlug", {
53
54
  get: function () {
54
55
  return this.env.NEVERCODE_REPO_SLUG;
55
56
  },
56
- enumerable: true,
57
+ enumerable: false,
57
58
  configurable: true
58
59
  });
59
60
  Object.defineProperty(Nevercode.prototype, "ciRunURL", {
60
61
  get: function () {
61
62
  return process.env.NEVERCODE_BUILD_URL;
62
63
  },
63
- enumerable: true,
64
+ enumerable: false,
64
65
  configurable: true
65
66
  });
66
67
  return Nevercode;
@@ -1 +1 @@
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,sCAAkB,CAAC,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;YA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C;gBACtC,uCAAmB,CAAC,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"}
@@ -23,11 +23,11 @@ import { Env, CISource } from "../ci_source";
23
23
  export declare class Screwdriver implements CISource {
24
24
  private readonly env;
25
25
  constructor(env: Env);
26
- readonly name: string;
27
- readonly isCI: boolean;
28
- readonly isPR: boolean;
26
+ get name(): string;
27
+ get isCI(): boolean;
28
+ get isPR(): boolean;
29
29
  private _parseRepoURL;
30
- readonly pullRequestID: string;
31
- readonly repoSlug: string;
32
- readonly ciRunURL: string | undefined;
30
+ get pullRequestID(): string;
31
+ get repoSlug(): string;
32
+ get ciRunURL(): string | undefined;
33
33
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Screwdriver = void 0;
3
4
  var ci_source_helpers_1 = require("../ci_source_helpers");
4
5
  /**
5
6
  * ### CI Setup
@@ -30,14 +31,14 @@ var Screwdriver = /** @class */ (function () {
30
31
  get: function () {
31
32
  return "Screwdriver";
32
33
  },
33
- enumerable: true,
34
+ enumerable: false,
34
35
  configurable: true
35
36
  });
36
37
  Object.defineProperty(Screwdriver.prototype, "isCI", {
37
38
  get: function () {
38
39
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["SCREWDRIVER"]);
39
40
  },
40
- enumerable: true,
41
+ enumerable: false,
41
42
  configurable: true
42
43
  });
43
44
  Object.defineProperty(Screwdriver.prototype, "isPR", {
@@ -46,7 +47,7 @@ var Screwdriver = /** @class */ (function () {
46
47
  var mustBeInts = ["SD_PULL_REQUEST"];
47
48
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
48
49
  },
49
- enumerable: true,
50
+ enumerable: false,
50
51
  configurable: true
51
52
  });
52
53
  Screwdriver.prototype._parseRepoURL = function () {
@@ -59,21 +60,21 @@ var Screwdriver = /** @class */ (function () {
59
60
  get: function () {
60
61
  return this.env.SD_PULL_REQUEST;
61
62
  },
62
- enumerable: true,
63
+ enumerable: false,
63
64
  configurable: true
64
65
  });
65
66
  Object.defineProperty(Screwdriver.prototype, "repoSlug", {
66
67
  get: function () {
67
68
  return this._parseRepoURL();
68
69
  },
69
- enumerable: true,
70
+ enumerable: false,
70
71
  configurable: true
71
72
  });
72
73
  Object.defineProperty(Screwdriver.prototype, "ciRunURL", {
73
74
  get: function () {
74
75
  return process.env.BUILDKITE_BUILD_URL;
75
76
  },
76
- enumerable: true,
77
+ enumerable: false,
77
78
  configurable: true
78
79
  });
79
80
  return Screwdriver;
@@ -1 +1 @@
1
- {"version":3,"file":"Screwdriver.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Screwdriver.ts"],"names":[],"mappings":";;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IACE,qBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,6BAAI;aAAR;YACE,OAAO,aAAa,CAAA;QACtB,CAAC;;;OAAA;IAED,sBAAI,6BAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;QACtD,CAAC;;;OAAA;IAED,sBAAI,6BAAI;a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,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;QACtD,CAAC;;;OAAA;IAED,sBAAI,6BAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,SAAS,CAAC,CAAA;YAC5B,IAAM,UAAU,GAAG,CAAC,iBAAiB,CAAC,CAAA;YACtC,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAEO,mCAAa,GAArB;QACE,IAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAA;QAChC,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,sCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,eAAe,CAAA;QACjC,CAAC;;;OAAA;IAED,sBAAI,iCAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,aAAa,EAAE,CAAA;QAC7B,CAAC;;;OAAA;IAED,sBAAI,iCAAQ;aAAZ;YACE,OAAO,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACxC,CAAC;;;OAAA;IACH,kBAAC;AAAD,CAAC,AAnCD,IAmCC;AAnCY,kCAAW"}
@@ -14,9 +14,9 @@ import { Env, CISource } from "../ci_source";
14
14
  export declare class Semaphore implements CISource {
15
15
  private readonly env;
16
16
  constructor(env: Env);
17
- readonly name: string;
18
- readonly isCI: boolean;
19
- readonly isPR: boolean;
20
- readonly pullRequestID: string;
21
- readonly repoSlug: string;
17
+ get name(): string;
18
+ get isCI(): boolean;
19
+ get isPR(): boolean;
20
+ get pullRequestID(): string;
21
+ get repoSlug(): string;
22
22
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Semaphore = void 0;
3
4
  var ci_source_helpers_1 = require("../ci_source_helpers");
4
5
  /**
5
6
  * ### CI Setup
@@ -21,14 +22,14 @@ var Semaphore = /** @class */ (function () {
21
22
  get: function () {
22
23
  return "Semaphore";
23
24
  },
24
- enumerable: true,
25
+ enumerable: false,
25
26
  configurable: true
26
27
  });
27
28
  Object.defineProperty(Semaphore.prototype, "isCI", {
28
29
  get: function () {
29
30
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["SEMAPHORE"]);
30
31
  },
31
- enumerable: true,
32
+ enumerable: false,
32
33
  configurable: true
33
34
  });
34
35
  Object.defineProperty(Semaphore.prototype, "isPR", {
@@ -37,21 +38,21 @@ var Semaphore = /** @class */ (function () {
37
38
  var mustBeInts = ["PULL_REQUEST_NUMBER"];
38
39
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
39
40
  },
40
- enumerable: true,
41
+ enumerable: false,
41
42
  configurable: true
42
43
  });
43
44
  Object.defineProperty(Semaphore.prototype, "pullRequestID", {
44
45
  get: function () {
45
46
  return this.env.PULL_REQUEST_NUMBER;
46
47
  },
47
- enumerable: true,
48
+ enumerable: false,
48
49
  configurable: true
49
50
  });
50
51
  Object.defineProperty(Semaphore.prototype, "repoSlug", {
51
52
  get: function () {
52
53
  return this.env.SEMAPHORE_REPO_SLUG;
53
54
  },
54
- enumerable: true,
55
+ enumerable: false,
55
56
  configurable: true
56
57
  });
57
58
  return Semaphore;
@@ -1 +1 @@
1
- {"version":3,"file":"Semaphore.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Semaphore.ts"],"names":[],"mappings":";;AACA,0DAA8E;AAE9E;;;;;;;;;;;GAWG;AACH;IACE,mBAA6B,GAAQ;QAAR,QAAG,G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AAG,CAAC,qBAAqB,CAAC,CAAA;YAC1C,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAED,sBAAI,oCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACrC,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACrC,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,8BAAS"}
@@ -13,9 +13,9 @@ import { Env, CISource } from "../ci_source";
13
13
  export declare class Surf implements CISource {
14
14
  private readonly env;
15
15
  constructor(env: Env);
16
- readonly name: string;
17
- readonly isCI: boolean;
18
- readonly isPR: boolean;
19
- readonly pullRequestID: string;
20
- readonly repoSlug: string;
16
+ get name(): string;
17
+ get isCI(): boolean;
18
+ get isPR(): boolean;
19
+ get pullRequestID(): string;
20
+ get repoSlug(): string;
21
21
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Surf = void 0;
3
4
  var ci_source_helpers_1 = require("../ci_source_helpers");
4
5
  /**
5
6
  * ### CI Setup
@@ -20,21 +21,21 @@ var Surf = /** @class */ (function () {
20
21
  get: function () {
21
22
  return "surf-build";
22
23
  },
23
- enumerable: true,
24
+ enumerable: false,
24
25
  configurable: true
25
26
  });
26
27
  Object.defineProperty(Surf.prototype, "isCI", {
27
28
  get: function () {
28
29
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["SURF_REPO", "SURF_NWO"]);
29
30
  },
30
- enumerable: true,
31
+ enumerable: false,
31
32
  configurable: true
32
33
  });
33
34
  Object.defineProperty(Surf.prototype, "isPR", {
34
35
  get: function () {
35
36
  return this.isCI;
36
37
  },
37
- enumerable: true,
38
+ enumerable: false,
38
39
  configurable: true
39
40
  });
40
41
  Object.defineProperty(Surf.prototype, "pullRequestID", {
@@ -42,14 +43,14 @@ var Surf = /** @class */ (function () {
42
43
  var key = "SURF_PR_NUM";
43
44
  return ci_source_helpers_1.ensureEnvKeysAreInt(this.env, [key]) ? this.env[key] : "";
44
45
  },
45
- enumerable: true,
46
+ enumerable: false,
46
47
  configurable: true
47
48
  });
48
49
  Object.defineProperty(Surf.prototype, "repoSlug", {
49
50
  get: function () {
50
51
  return this.env["SURF_NWO"];
51
52
  },
52
- enumerable: true,
53
+ enumerable: false,
53
54
  configurable: true
54
55
  });
55
56
  return Surf;
@@ -1 +1 @@
1
- {"version":3,"file":"Surf.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Surf.ts"],"names":[],"mappings":";;AACA,0DAA8E;AAE9E;;;;;;;;;;GAUG;AACH;IACE,cAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,sBAAI;aAAR;YACE,OAAO,YAAY,CAAA;QACrB,CAAC;;;OAAA;IAED,sBAAI,sBAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAA;QAChE,CAAC;;;OAAA;IAED,sBAAI,sBAAI;aAAR;YACE,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;;;OAAA;IAED,sBAAI,+BAAa;aAAjB;YACE,IAAM,GAAG,GAAG,aAAa,CAAA;YACzB,OAAO,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;QAClE,CAAC;;;OAAA;IAED,sBAAI,0BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;QAC7B,CAAC;;;OAAA;IACH,WAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,oBAAI"}
1
+ {"version":3,"file":"Surf.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Surf.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;GAUG;AACH;IACE,cAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,sBAAI;aAAR;YACE,OAAO,YAAY,CAAA;QACrB,CAAC;;;OAAA;IAED,sBAAI,sBAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAA;QAChE,CAAC;;;OAAA;IAED,sBAAI,sBAAI;aAAR;YACE,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;;;OAAA;IAED,sBAAI,+BAAa;aAAjB;YACE,IAAM,GAAG,GAAG,aAAa,CAAA;YACzB,OAAO,uCAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;QAClE,CAAC;;;OAAA;IAED,sBAAI,0BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;QAC7B,CAAC;;;OAAA;IACH,WAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,oBAAI"}
@@ -15,9 +15,9 @@ import { Env, CISource } from "../ci_source";
15
15
  export declare class TeamCity implements CISource {
16
16
  private readonly env;
17
17
  constructor(env: Env);
18
- readonly name: string;
19
- readonly isCI: boolean;
20
- readonly isPR: boolean;
21
- readonly pullRequestID: string;
22
- readonly repoSlug: string;
18
+ get name(): string;
19
+ get isCI(): boolean;
20
+ get isPR(): boolean;
21
+ get pullRequestID(): string;
22
+ get repoSlug(): string;
23
23
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TeamCity = void 0;
3
4
  var ci_source_helpers_1 = require("../ci_source_helpers");
4
5
  var pullRequestParser_1 = require("../../platforms/pullRequestParser");
5
6
  /**
@@ -23,14 +24,14 @@ var TeamCity = /** @class */ (function () {
23
24
  get: function () {
24
25
  return "TeamCity";
25
26
  },
26
- enumerable: true,
27
+ enumerable: false,
27
28
  configurable: true
28
29
  });
29
30
  Object.defineProperty(TeamCity.prototype, "isCI", {
30
31
  get: function () {
31
32
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["TEAMCITY_VERSION"]);
32
33
  },
33
- enumerable: true,
34
+ enumerable: false,
34
35
  configurable: true
35
36
  });
36
37
  Object.defineProperty(TeamCity.prototype, "isPR", {
@@ -41,7 +42,7 @@ var TeamCity = /** @class */ (function () {
41
42
  var mustHave = ["PULL_REQUEST_URL"];
42
43
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave);
43
44
  },
44
- enumerable: true,
45
+ enumerable: false,
45
46
  configurable: true
46
47
  });
47
48
  Object.defineProperty(TeamCity.prototype, "pullRequestID", {
@@ -52,7 +53,7 @@ var TeamCity = /** @class */ (function () {
52
53
  }
53
54
  return parts.pullRequestNumber;
54
55
  },
55
- enumerable: true,
56
+ enumerable: false,
56
57
  configurable: true
57
58
  });
58
59
  Object.defineProperty(TeamCity.prototype, "repoSlug", {
@@ -63,7 +64,7 @@ var TeamCity = /** @class */ (function () {
63
64
  }
64
65
  return parts.repo;
65
66
  },
66
- enumerable: true,
67
+ enumerable: false,
67
68
  configurable: true
68
69
  });
69
70
  return TeamCity;
@@ -1 +1 @@
1
- {"version":3,"file":"TeamCity.js","sourceRoot":"","sources":["../../../source/ci_source/providers/TeamCity.ts"],"names":[],"mappings":";;AACA,0DAAyD;AACzD,uEAAqE;AAErE;;;;;;;;;;;;GAYG;AACH;IACE,kBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,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AAC;IAEzC,sBAAI,0BAAI;aAAR;YACE,OAAO,UAAU,CAAA;QACnB,CAAC;;;OAAA;IAED,sBAAI,0BAAI;aAAR;YACE,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAA;QAC3D,CAAC;;;OAAA;IAED,sBAAI,0BAAI;aAAR;YACE,IAAI,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE;gBACtD,OAAO,IAAI,CAAA;aACZ;YAED,IAAM,QAAQ,GAAG,CAAC,kBAAkB,CAAC,CAAA;YACrC,OAAO,sCAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAC/C,CAAC;;;OAAA;IAED,sBAAI,mCAAa;aAAjB;YACE,IAAM,KAAK,GAAG,qCAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAA;YAEhE,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,OAAO,EAAE,CAAA;aACV;YAED,OAAO,KAAK,CAAC,iBAAiB,CAAA;QAChC,CAAC;;;OAAA;IAED,sBAAI,8BAAQ;aAAZ;YACE,IAAM,KAAK,GAAG,qCAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAA;YAEhE,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,OAAO,EAAE,CAAA;aACV;YAED,OAAO,KAAK,CAAC,IAAI,CAAA;QACnB,CAAC;;;OAAA;IACH,eAAC;AAAD,CAAC,AAvCD,IAuCC;AAvCY,4BAAQ"}
@@ -56,10 +56,10 @@ import { Env, CISource } from "../ci_source";
56
56
  export declare class Travis implements CISource {
57
57
  private readonly env;
58
58
  constructor(env: Env);
59
- readonly name: string;
60
- readonly isCI: boolean;
61
- readonly isPR: boolean;
62
- readonly pullRequestID: string;
63
- readonly repoSlug: string;
64
- readonly ciRunURL: string;
59
+ get name(): string;
60
+ get isCI(): boolean;
61
+ get isPR(): boolean;
62
+ get pullRequestID(): string;
63
+ get repoSlug(): string;
64
+ get ciRunURL(): string;
65
65
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Travis = void 0;
3
4
  var ci_source_helpers_1 = require("../ci_source_helpers");
4
5
  /**
5
6
  * ### CI Setup
@@ -63,14 +64,14 @@ var Travis = /** @class */ (function () {
63
64
  get: function () {
64
65
  return "Travis CI";
65
66
  },
66
- enumerable: true,
67
+ enumerable: false,
67
68
  configurable: true
68
69
  });
69
70
  Object.defineProperty(Travis.prototype, "isCI", {
70
71
  get: function () {
71
72
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, ["HAS_JOSH_K_SEAL_OF_APPROVAL"]);
72
73
  },
73
- enumerable: true,
74
+ enumerable: false,
74
75
  configurable: true
75
76
  });
76
77
  Object.defineProperty(Travis.prototype, "isPR", {
@@ -79,21 +80,21 @@ var Travis = /** @class */ (function () {
79
80
  var mustBeInts = ["TRAVIS_PULL_REQUEST"];
80
81
  return ci_source_helpers_1.ensureEnvKeysExist(this.env, mustHave) && ci_source_helpers_1.ensureEnvKeysAreInt(this.env, mustBeInts);
81
82
  },
82
- enumerable: true,
83
+ enumerable: false,
83
84
  configurable: true
84
85
  });
85
86
  Object.defineProperty(Travis.prototype, "pullRequestID", {
86
87
  get: function () {
87
88
  return this.env.TRAVIS_PULL_REQUEST;
88
89
  },
89
- enumerable: true,
90
+ enumerable: false,
90
91
  configurable: true
91
92
  });
92
93
  Object.defineProperty(Travis.prototype, "repoSlug", {
93
94
  get: function () {
94
95
  return this.env.TRAVIS_REPO_SLUG;
95
96
  },
96
- enumerable: true,
97
+ enumerable: false,
97
98
  configurable: true
98
99
  });
99
100
  Object.defineProperty(Travis.prototype, "ciRunURL", {
@@ -101,7 +102,7 @@ var Travis = /** @class */ (function () {
101
102
  // TODO: This only supports travis.org
102
103
  return "https://travis-ci.org/" + this.env.TRAVIS_REPO_SLUG + "/jobs/" + this.env.TRAVIS_JOB_ID;
103
104
  },
104
- enumerable: true,
105
+ enumerable: false,
105
106
  configurable: true
106
107
  });
107
108
  return Travis;