Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/39057-members-list-does-not-update-owner
Browse files Browse the repository at this point in the history
  • Loading branch information
burczu committed Mar 29, 2024
2 parents 8b27a47 + 5a8cb7f commit 3735439
Show file tree
Hide file tree
Showing 160 changed files with 3,138 additions and 5,906 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 3735439

Please sign in to comment.