Skip to content

Commit

Permalink
Version update to v1.0.2, revision 72c1d92
Browse files Browse the repository at this point in the history
  • Loading branch information
QA Wolf bot committed Aug 29, 2024
1 parent 23205a4 commit b08fcfe
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## v1.0.2

- Update README.md to target @v1

## v1.0.1

- Initial release.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Test preview environment
uses: qawolf/pr-testing-notify-closed-action@v1.0.1
uses: qawolf/pr-testing-notify-closed-action@v1
with:
qawolf-api-key: "${{ secrets.QAWOLF_API_KEY }}"
# A typical Gitflow mapping. This is very dependent on your branching
Expand Down
76 changes: 76 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36146,6 +36146,49 @@ async function postDeploySuccess({ apiKey, serviceBase }, { branch, commitUrl, d

/***/ }),

/***/ 8048:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.callGenerateSignedUrlForTempTeamStorage = callGenerateSignedUrlForTempTeamStorage;
async function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase }, { destinationFilePath }, { fetch: localFetch }) {
try {
const response = await localFetch(new URL(`${serviceBase}/api/v0/team-storage-signed-url?file=${destinationFilePath}`), {
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
method: "GET",
});
if (response.status === 200) {
const json = (await response.json());
return {
fileLocation: json.fileLocation,
playgroundFileLocation: json.playgroundFileLocation,
signedUrl: json.signedUrl,
success: true,
};
}
else {
const error = await response.text();
console.log(`ERROR: ${error}`);
return {
success: false,
};
}
}
catch (e) {
return {
success: false,
};
}
}
//# sourceMappingURL=generate-signed-url-for-team-storage.js.map

/***/ }),

/***/ 406:
/***/ ((__unused_webpack_module, exports) => {

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

/***/ }),

/***/ 5592:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {

"use strict";

Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.generateSignedUrlForTempTeamStorage = generateSignedUrlForTempTeamStorage;
const generate_signed_url_for_team_storage_1 = __nccwpck_require__(8048);
async function generateSignedUrlForTempTeamStorage(deps, apiConfig, config) {
const { log } = deps;
if (!config.destinationFilePath) {
log.error(`🚫 destinationFilePath is a required config parameter`);
return { success: false };
}
const responseState = await (0, generate_signed_url_for_team_storage_1.callGenerateSignedUrlForTempTeamStorage)(apiConfig, config, deps);
if (!responseState.success) {
log.error(`🚫 Failed to generate signed URL for team storage. Please contact support.`);
return { success: false };
}
log.info(`✅ Generated Signed Upload URL: ${responseState.signedUrl}.`);
return {
fileLocation: responseState.fileLocation,
playgroundFileLocation: responseState.playgroundFileLocation,
success: true,
uploadUrl: responseState.signedUrl,
};
}
//# sourceMappingURL=generate-signed-url-for-team-storage.js.map

/***/ }),

/***/ 9894:
/***/ ((__unused_webpack_module, exports) => {

Expand Down Expand Up @@ -37715,6 +37789,7 @@ const fetch_1 = __nccwpck_require__(3704);
const log_1 = __nccwpck_require__(4734);
const serviceBase_1 = __nccwpck_require__(1919);
const attempt_deploy_1 = __nccwpck_require__(289);
const generate_signed_url_for_team_storage_1 = __nccwpck_require__(5592);
const index_1 = __nccwpck_require__(4500);
const poll_ci_greenlight_1 = __nccwpck_require__(9218);
const vcsBranchTesting_1 = __nccwpck_require__(2799);
Expand All @@ -37740,6 +37815,7 @@ We recommend 'undici' package for that purpose. See the Requirement section of o
*/
experimental_testPreview: index_1.testPreview.bind(null, deps, apiConfig),
experimental_vcsBranchTesting: (0, vcsBranchTesting_1.makeVCSBranchTestingSDK)(apiConfig, deps),
generateSignedUrlForTempTeamStorage: generate_signed_url_for_team_storage_1.generateSignedUrlForTempTeamStorage.bind(null, deps, apiConfig),
pollCiGreenlightStatus: poll_ci_greenlight_1.pollCiGreenlightStatus.bind(null, deps, apiConfig),
};
}
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@qawolf/pr-testing-notify-closed-action",
"version": "v1.0.2",
"type": "commonjs",
"main": "dist/index.js",
"engines": {
Expand All @@ -8,8 +9,8 @@
"scripts": {
"build": "ncc build src/index.ts -o dist",
"build:clean": "tsc --build --clean && rm -rf ./dist",
"lint": "eslint . --ext js,jsx,mjs,ts,tsx --max-warnings=0 && prettier --check .",
"lint:fix": "eslint . --ext js,jsx,mjs,ts,tsx --fix --max-warnings=0 && prettier --write .",
"lint": "eslint . --ext js,jsx,mjs,ts,tsx --quiet && prettier --check .",
"lint:fix": "eslint . --ext js,jsx,mjs,ts,tsx --fix --quiet && prettier --write .",
"test": "jest --passWithNoTests",
"test:watch": "npm run test -- --watch",
"tsc:check": "tsc",
Expand Down

0 comments on commit b08fcfe

Please sign in to comment.