bdy 1.8.43-dev → 1.8.44-dev

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.8.43-dev",
4
+ "version": "1.8.44-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -172,6 +172,7 @@ async function getCiAndGitInfo(baseBranch) {
172
172
  commit,
173
173
  baseCommit,
174
174
  commitDetails: await getCommitDetails(commit),
175
+ executionUrl: `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`,
175
176
  };
176
177
  }
177
178
  if (isCircleCI) {
@@ -187,6 +188,7 @@ async function getCiAndGitInfo(baseBranch) {
187
188
  commit,
188
189
  baseCommit,
189
190
  commitDetails: await getCommitDetails(commit),
191
+ executionUrl: `${process.env.CIRCLE_BUILD_URL}`,
190
192
  };
191
193
  }
192
194
  const branch = forceBranch || (await getBranchName());
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.debug = exports.browserPath = exports.commitDetails = exports.invokerId = exports.executionId = exports.actionId = exports.pipelineName = exports.pipelineId = exports.baseCommit = exports.commit = exports.branch = exports.ci = exports.cliId = exports.buildId = exports.token = exports.parallel = exports.skipDiscovery = exports.oneByOne = exports.cliVersion = void 0;
3
+ exports.debug = exports.executionUrl = exports.browserPath = exports.commitDetails = exports.invokerId = exports.executionId = exports.actionId = exports.pipelineName = exports.pipelineId = exports.baseCommit = exports.commit = exports.branch = exports.ci = exports.cliId = exports.buildId = exports.token = exports.parallel = exports.skipDiscovery = exports.oneByOne = exports.cliVersion = void 0;
4
4
  exports.setOptions = setOptions;
5
5
  exports.setBrowserPath = setBrowserPath;
6
6
  exports.setCiAndCommitInfo = setCiAndCommitInfo;
@@ -43,4 +43,7 @@ function setCiAndCommitInfo(ciInfo) {
43
43
  exports.invokerId = ciInfo.invokerId;
44
44
  exports.pipelineName = ciInfo.pipelineName;
45
45
  }
46
+ if (ciInfo.ci === ciInfo_js_1.CI.GITHUB_ACTION || ciInfo.ci === ciInfo_js_1.CI.CIRCLE_CI) {
47
+ exports.executionUrl = ciInfo.executionUrl;
48
+ }
46
49
  }
@@ -72,6 +72,7 @@ async function sendSnapshot(snapshot) {
72
72
  invokerId: context_js_1.invokerId,
73
73
  commitDetails: context_js_1.commitDetails,
74
74
  cliId: context_js_1.cliId,
75
+ executionUrl: context_js_1.executionUrl,
75
76
  };
76
77
  const formData = createFormData(info, files);
77
78
  const [message] = await sendRequest({
@@ -104,6 +105,7 @@ async function sendSnapshots(snapshots) {
104
105
  invokerId: context_js_1.invokerId,
105
106
  commitDetails: context_js_1.commitDetails,
106
107
  cliId: context_js_1.cliId,
108
+ executionUrl: context_js_1.executionUrl,
107
109
  };
108
110
  const formData = createFormData(info, files);
109
111
  const [message] = await sendRequest({
@@ -156,6 +158,7 @@ async function sendStorybook(snapshots, filePaths) {
156
158
  invokerId: context_js_1.invokerId,
157
159
  commitDetails: context_js_1.commitDetails,
158
160
  cliId: context_js_1.cliId,
161
+ executionUrl: context_js_1.executionUrl,
159
162
  };
160
163
  const files = filePaths.map((file) => ({
161
164
  id: file,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.8.43-dev",
4
+ "version": "1.8.44-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {