Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into 37984-fix-search-lh…
Browse files Browse the repository at this point in the history
…n-no-results-found-padding
  • Loading branch information
brandonhenry committed Mar 29, 2024
2 parents cdb8f23 + 4822c1b commit 34d1497
Show file tree
Hide file tree
Showing 163 changed files with 3,279 additions and 6,087 deletions.
2,276 changes: 62 additions & 2,214 deletions .github/actions/javascript/isStagingDeployLocked/index.js

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as core from '@actions/core';
import GithubUtils from '@github/libs/GithubUtils';

const run = function (): Promise<void> {
return GithubUtils.getStagingDeployCash()
.then(({labels, number}) => {
const labelsNames = labels.map((label) => {
if (typeof label === 'string') {
return '';
}
return label.name;
});
console.log(`Found StagingDeployCash with labels: ${JSON.stringify(labelsNames)}`);
core.setOutput('IS_LOCKED', labelsNames.includes('🔐 LockCashDeploys 🔐'));
core.setOutput('NUMBER', number);
})
.catch((err) => {
console.warn('No open StagingDeployCash found, continuing...', err);
core.setOutput('IS_LOCKED', false);
core.setOutput('NUMBER', 0);
});
};

if (require.main === module) {
run();
}

export default run;
Loading

0 comments on commit 34d1497

Please sign in to comment.