Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit b08fcfe

Browse files
author
QA Wolf bot
committed
Version update to v1.0.2, revision 72c1d92
1 parent 23205a4 commit b08fcfe

File tree

4 files changed

+87
-3
lines changed

4 files changed

+87
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## v1.0.2
2+
3+
- Update README.md to target @v1
4+
5+
## v1.0.1
6+
7+
- Initial release.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: Test preview environment
47-
uses: qawolf/pr-testing-notify-closed-action@v1.0.1
47+
uses: qawolf/pr-testing-notify-closed-action@v1
4848
with:
4949
qawolf-api-key: "${{ secrets.QAWOLF_API_KEY }}"
5050
# A typical Gitflow mapping. This is very dependent on your branching

dist/index.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36146,6 +36146,49 @@ async function postDeploySuccess({ apiKey, serviceBase }, { branch, commitUrl, d
3614636146

3614736147
/***/ }),
3614836148

36149+
/***/ 8048:
36150+
/***/ ((__unused_webpack_module, exports) => {
36151+
36152+
"use strict";
36153+
36154+
Object.defineProperty(exports, "__esModule", ({ value: true }));
36155+
exports.callGenerateSignedUrlForTempTeamStorage = callGenerateSignedUrlForTempTeamStorage;
36156+
async function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase }, { destinationFilePath }, { fetch: localFetch }) {
36157+
try {
36158+
const response = await localFetch(new URL(`${serviceBase}/api/v0/team-storage-signed-url?file=${destinationFilePath}`), {
36159+
headers: {
36160+
Authorization: `Bearer ${apiKey}`,
36161+
"Content-Type": "application/json",
36162+
},
36163+
method: "GET",
36164+
});
36165+
if (response.status === 200) {
36166+
const json = (await response.json());
36167+
return {
36168+
fileLocation: json.fileLocation,
36169+
playgroundFileLocation: json.playgroundFileLocation,
36170+
signedUrl: json.signedUrl,
36171+
success: true,
36172+
};
36173+
}
36174+
else {
36175+
const error = await response.text();
36176+
console.log(`ERROR: ${error}`);
36177+
return {
36178+
success: false,
36179+
};
36180+
}
36181+
}
36182+
catch (e) {
36183+
return {
36184+
success: false,
36185+
};
36186+
}
36187+
}
36188+
//# sourceMappingURL=generate-signed-url-for-team-storage.js.map
36189+
36190+
/***/ }),
36191+
3614936192
/***/ 406:
3615036193
/***/ ((__unused_webpack_module, exports) => {
3615136194

@@ -36469,6 +36512,37 @@ async function attemptNotifyDeploy(deps, apiConfig, config) {
3646936512

3647036513
/***/ }),
3647136514

36515+
/***/ 5592:
36516+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
36517+
36518+
"use strict";
36519+
36520+
Object.defineProperty(exports, "__esModule", ({ value: true }));
36521+
exports.generateSignedUrlForTempTeamStorage = generateSignedUrlForTempTeamStorage;
36522+
const generate_signed_url_for_team_storage_1 = __nccwpck_require__(8048);
36523+
async function generateSignedUrlForTempTeamStorage(deps, apiConfig, config) {
36524+
const { log } = deps;
36525+
if (!config.destinationFilePath) {
36526+
log.error(`🚫 destinationFilePath is a required config parameter`);
36527+
return { success: false };
36528+
}
36529+
const responseState = await (0, generate_signed_url_for_team_storage_1.callGenerateSignedUrlForTempTeamStorage)(apiConfig, config, deps);
36530+
if (!responseState.success) {
36531+
log.error(`🚫 Failed to generate signed URL for team storage. Please contact support.`);
36532+
return { success: false };
36533+
}
36534+
log.info(`✅ Generated Signed Upload URL: ${responseState.signedUrl}.`);
36535+
return {
36536+
fileLocation: responseState.fileLocation,
36537+
playgroundFileLocation: responseState.playgroundFileLocation,
36538+
success: true,
36539+
uploadUrl: responseState.signedUrl,
36540+
};
36541+
}
36542+
//# sourceMappingURL=generate-signed-url-for-team-storage.js.map
36543+
36544+
/***/ }),
36545+
3647236546
/***/ 9894:
3647336547
/***/ ((__unused_webpack_module, exports) => {
3647436548

@@ -37715,6 +37789,7 @@ const fetch_1 = __nccwpck_require__(3704);
3771537789
const log_1 = __nccwpck_require__(4734);
3771637790
const serviceBase_1 = __nccwpck_require__(1919);
3771737791
const attempt_deploy_1 = __nccwpck_require__(289);
37792+
const generate_signed_url_for_team_storage_1 = __nccwpck_require__(5592);
3771837793
const index_1 = __nccwpck_require__(4500);
3771937794
const poll_ci_greenlight_1 = __nccwpck_require__(9218);
3772037795
const vcsBranchTesting_1 = __nccwpck_require__(2799);
@@ -37740,6 +37815,7 @@ We recommend 'undici' package for that purpose. See the Requirement section of o
3774037815
*/
3774137816
experimental_testPreview: index_1.testPreview.bind(null, deps, apiConfig),
3774237817
experimental_vcsBranchTesting: (0, vcsBranchTesting_1.makeVCSBranchTestingSDK)(apiConfig, deps),
37818+
generateSignedUrlForTempTeamStorage: generate_signed_url_for_team_storage_1.generateSignedUrlForTempTeamStorage.bind(null, deps, apiConfig),
3774337819
pollCiGreenlightStatus: poll_ci_greenlight_1.pollCiGreenlightStatus.bind(null, deps, apiConfig),
3774437820
};
3774537821
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@qawolf/pr-testing-notify-closed-action",
3+
"version": "v1.0.2",
34
"type": "commonjs",
45
"main": "dist/index.js",
56
"engines": {
@@ -8,8 +9,8 @@
89
"scripts": {
910
"build": "ncc build src/index.ts -o dist",
1011
"build:clean": "tsc --build --clean && rm -rf ./dist",
11-
"lint": "eslint . --ext js,jsx,mjs,ts,tsx --max-warnings=0 && prettier --check .",
12-
"lint:fix": "eslint . --ext js,jsx,mjs,ts,tsx --fix --max-warnings=0 && prettier --write .",
12+
"lint": "eslint . --ext js,jsx,mjs,ts,tsx --quiet && prettier --check .",
13+
"lint:fix": "eslint . --ext js,jsx,mjs,ts,tsx --fix --quiet && prettier --write .",
1314
"test": "jest --passWithNoTests",
1415
"test:watch": "npm run test -- --watch",
1516
"tsc:check": "tsc",

0 commit comments

Comments
 (0)