Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
ci: update built file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibz committed May 1, 2020
1 parent f0adf1a commit 11a17c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5740,6 +5740,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const actionsCore = __importStar(__webpack_require__(470));
const inputNames_1 = __importDefault(__webpack_require__(686));
exports.ERR_INVALID_OWNER = "Input 'owner' must be a valid GitHub username";
exports.ERR_INVALID_STATE = "Input 'state' must be one of success | error | failure | pending";
const regExUsername = /^\w+-?\w+(?!-)$/;
function makeStatusRequest(testCore = null) {
var _a;
Expand All @@ -5755,12 +5756,21 @@ function makeStatusRequest(testCore = null) {
if (!regExUsername.test(request.owner)) {
throw new Error(exports.ERR_INVALID_OWNER);
}
if (!validateState(request.state)) {
throw new Error(exports.ERR_INVALID_STATE);
}
if (request.repo.startsWith(`${request.owner}/`)) {
request.repo = request.repo.replace(`${request.owner}/`, '');
}
return request;
}
exports.default = makeStatusRequest;
function validateState(state) {
return (state == "success"
|| state == "error"
|| state == "failure"
|| state == "pending");
}


/***/ }),
Expand Down

0 comments on commit 11a17c4

Please sign in to comment.