Skip to content

Commit

Permalink
Rebuild GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Aug 30, 2023
1 parent fa826c7 commit 3ac2b6a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/javascript/createOrUpdateStagingDeploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ async function run() {
repo: CONST.APP_REPO,
labels: CONST.LABELS.DEPLOY_BLOCKER,
});

// First, make sure we include all current deploy blockers
const deployBlockers = _.reduce(
openDeployBlockers,
(memo, deployBlocker) => {
Expand All @@ -93,6 +95,15 @@ async function run() {
[],
);

// Then make sure we include any demoted or closed blockers as well, and just check them off automatically
for (const deployBlocker of currentChecklistData.deployBlockers) {
const isResolved = _.findIndex(deployBlockers, (openBlocker) => openBlocker.number === deployBlocker.number) < 0;
deployBlockers.push({
...deployBlocker,
isResolved,
});
}

const didVersionChange = newVersion ? newVersion !== currentChecklistData.tag : false;
checklistBody = await GithubUtils.generateStagingDeployCashBody(
newTag,
Expand Down

0 comments on commit 3ac2b6a

Please sign in to comment.