-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Expensify/App into nikki-one-transa…
…ction-report-view
- Loading branch information
Showing
145 changed files
with
2,638 additions
and
5,583 deletions.
There are no files selected for viewing
2,276 changes: 62 additions & 2,214 deletions
2,276
.github/actions/javascript/isStagingDeployLocked/index.js
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
.github/actions/javascript/isStagingDeployLocked/isStagingDeployLocked.js
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
.github/actions/javascript/isStagingDeployLocked/isStagingDeployLocked.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.