bdy 1.8.42-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.
package/distTs/package.json
CHANGED
package/distTs/src/texts.js
CHANGED
|
@@ -87,7 +87,7 @@ exports.ERR_CANT_CREATE_DIR_IN_HOME = ERR_CANT_CREATE_DIR_IN_HOME;
|
|
|
87
87
|
exports.ERR_TOKEN_NOT_PROVIDED = 'Token not provided';
|
|
88
88
|
exports.ERR_WRONG_TOKEN = 'Wrong token';
|
|
89
89
|
exports.ERR_CONFIG_CORRUPTED = 'Config file is corrupted';
|
|
90
|
-
exports.ERR_MISSING_TOKEN = 'No token provided. Please provide a token with the
|
|
90
|
+
exports.ERR_MISSING_TOKEN = 'No token provided. Please provide a token with the BUDDY_VT_TOKEN environment variable.';
|
|
91
91
|
exports.ERR_MISSING_BUILD_ID = 'No buildId provided. Please provide a buildId with the SNAPSHOTS_BUILD_ID environment variable.';
|
|
92
92
|
exports.ERR_WRONG_STORYBOOK_DIRECTORY = 'Current directory is not a storybook directory';
|
|
93
93
|
exports.ERR_MISSING_STORYBOOK_INDEX_FILE = 'Storybook index.json not found';
|
|
@@ -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,
|