Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Expensify/App into nikki-one-transa…
Browse files Browse the repository at this point in the history
…ction-report-view
  • Loading branch information
NikkiWines committed Mar 28, 2024
2 parents 5438f69 + 7603719 commit 1aac6e0
Show file tree
Hide file tree
Showing 145 changed files with 2,638 additions and 5,583 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 1aac6e0

Please sign in to comment.