Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
rmariano committed Sep 18, 2023
1 parent 55d8fc8 commit 5ba4dd0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions dest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5949,13 +5949,8 @@ const getApprovalStatus = async (pullNumber) => {
};

const filterApplicablePRs = (openPRs) => {
const autoMergeEnabledConfigured = github_core.getInput(
'require_auto_merge_enabled',
);
if (
autoMergeEnabledConfigured === false ||
isStringFalse(autoMergeEnabledConfigured)
) {
const includeNonAutoMergePRs = isStringFalse(github_core.getInput('require_auto_merge_enabled'));
if (includeNonAutoMergePRs) {
return openPRs;
}
const autoMergeEnabledPRs = openPRs.filter((item) => item.auto_merge);
Expand Down Expand Up @@ -6085,7 +6080,7 @@ const printFailReason = (pullNumber, reason) =>
log(`Won't update #${pullNumber}, the reason:\n > ${reason}`);
const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const isStringTrue = (str = '') => str.toLowerCase() === 'true';
const isStringFalse = (str = '') => str.toLowerCase() === 'false';
const isStringFalse = (str = '') => str.toString().toLowerCase() === 'false';


/***/ }),
Expand Down

0 comments on commit 5ba4dd0

Please sign in to comment.