text: exports.id = 0;
  exports.ids = [0];
  exports.modules = {
  
  /***/ 9042:
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  "use strict";
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "Cc": () => (/* binding */ GITHUB_OPTIONS),
  /* harmony export */   "$9": () => (/* binding */ DEFAULT_PIPELINE_STATUS),
  /* harmony export */   "Km": () => (/* binding */ DEFAULT_PIPELINE_DESCRIPTION),
  /* harmony export */   "Hc": () => (/* binding */ PRODUCTION_ENVIRONMENT),
  /* harmony export */   "mj": () => (/* binding */ DEFAULT_BRANCH),
  /* harmony export */   "_d": () => (/* binding */ CORE_APPROVED_PR_LABEL),
  /* harmony export */   "Xt": () => (/* binding */ PEER_APPROVED_PR_LABEL),
  /* harmony export */   "Ak": () => (/* binding */ READY_FOR_MERGE_PR_LABEL),
  /* harmony export */   "IH": () => (/* binding */ FIRST_QUEUED_PR_LABEL),
  /* harmony export */   "nJ": () => (/* binding */ JUMP_THE_QUEUE_PR_LABEL),
  /* harmony export */   "HW": () => (/* binding */ DEFAULT_PR_TITLE_REGEX)
  /* harmony export */ });
  /* unused harmony export DEFAULT_EXEMPT_DESCRIPTION */
  /*
  Copyright 2021 Expedia, Inc.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
      https://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  // These extra headers are for experimental operations. Newer versions of octokit may not require this
  const GITHUB_OPTIONS = {
      headers: {
          accept: 'application/vnd.github.ant-man-preview+json,application/vnd.github.flash-preview+json,application/vnd.github.v3+json'
      }
  };
  const DEFAULT_EXEMPT_DESCRIPTION = 'Passed in case the check is exempt.';
  const DEFAULT_PIPELINE_STATUS = 'Pipeline Status';
  const DEFAULT_PIPELINE_DESCRIPTION = 'Pipeline clear.';
  const PRODUCTION_ENVIRONMENT = 'production';
  const DEFAULT_BRANCH = 'main';
  const CORE_APPROVED_PR_LABEL = 'CORE APPROVED';
  const PEER_APPROVED_PR_LABEL = 'PEER APPROVED';
  const READY_FOR_MERGE_PR_LABEL = 'READY FOR MERGE';
  const FIRST_QUEUED_PR_LABEL = 'QUEUED FOR MERGE #1';
  const JUMP_THE_QUEUE_PR_LABEL = 'JUMP THE QUEUE';
  const DEFAULT_PR_TITLE_REGEX = '^(build|ci|chore|docs|feat|fix|perf|refactor|style|test|revert|Revert|BREAKING CHANGE)((.*))?: .+$';
  
  
  /***/ }),
  
  /***/ 2000:
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "setLatestPipelineStatus": () => (/* binding */ setLatestPipelineStatus)
  /* harmony export */ });
  /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2186);
  /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_0__);
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9042);
  /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5438);
  /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_actions_github__WEBPACK_IMPORTED_MODULE_2__);
  /* harmony import */ var _octokit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6161);
  /*
  Copyright 2021 Expedia, Inc.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
      https://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  
  
  
  
  const setLatestPipelineStatus = ({ sha, context = _constants__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_PIPELINE_STATUS */ .$9, environment = _constants__WEBPACK_IMPORTED_MODULE_1__/* .PRODUCTION_ENVIRONMENT */ .Hc }) => _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.repos.listDeployments */ .K.repos.listDeployments(Object.assign(Object.assign({ environment }, _actions_github__WEBPACK_IMPORTED_MODULE_2__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_1__/* .GITHUB_OPTIONS */ .Cc))
      .then(deploymentsResponse => {
      var _a;
      const deployment_id = (_a = deploymentsResponse.data.find(Boolean)) === null || _a === void 0 ? void 0 : _a.id;
      if (!deployment_id) {
          _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed('No deployments found.');
          throw new Error();
      }
      return _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.repos.listDeploymentStatuses */ .K.repos.listDeploymentStatuses(Object.assign(Object.assign({ deployment_id }, _actions_github__WEBPACK_IMPORTED_MODULE_2__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_1__/* .GITHUB_OPTIONS */ .Cc));
  })
      .then(deploymentStatusResponse => deploymentStatusResponse.data.find(Boolean))
      .then(deploymentStatus => {
      if (!deploymentStatus) {
          _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed('No deployment statuses found.');
          throw new Error();
      }
      return _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.repos.createCommitStatus */ .K.repos.createCommitStatus(Object.assign({ sha,
          context, state: deploymentStateToPipelineStateMap[deploymentStatus.state], description: deploymentStatus.description, target_url: deploymentStatus.target_url }, _actions_github__WEBPACK_IMPORTED_MODULE_2__.context.repo));
  });
  const deploymentStateToPipelineStateMap = {
      in_progress: 'pending',
      success: 'success',
      failure: 'failure',
      inactive: 'error'
  };
  
  
  /***/ }),
  
  /***/ 6161:
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  "use strict";
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "K": () => (/* binding */ octokit)
  /* harmony export */ });
  /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2186);
  /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_0__);
  /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5438);
  /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_actions_github__WEBPACK_IMPORTED_MODULE_1__);
  /*
  Copyright 2021 Expedia, Inc.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
      https://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  
  
  const octokit = (0,_actions_github__WEBPACK_IMPORTED_MODULE_1__.getOctokit)(_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('github_token', { required: true })).rest;
  
  
  /***/ })
  
  };
  ;
  //# sourceMappingURL=0.index.js.map