[Bug]: Warning: preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in phar:///Users/wangzhiyong/Library/Application Support/Herd/bin/expose/.box/vendor/composer/semver/src/VersionParser.php on line 48 Box Requirements Checker ======================== > Using PHP 7.4.33 > PHP is using the following php.ini file: WARNING: No configuration file (php.ini) used by PHP! > Checking Box requirements: E.. [ERROR] Your system is not ready to run the application. Fix the following mandatory requirements: ========================================= * The application requires the version "^8.1" or greater. #358
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
name: 'Remove labels' | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
remove_label: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
const issue_num = context.issue.number; | |
const owner = context.repo.owner; | |
const repo = context.repo.repo; | |
const commentAuthor = context.payload.comment.user.login; | |
const issue = await github.rest.issues.get({ | |
owner, | |
repo, | |
issue_number: issue_num | |
}); | |
if (commentAuthor === issue.data.user.login) { | |
const labelsToRemove = ['needs more information', 'stale', 'Stale']; | |
for (const label of labelsToRemove) { | |
if (issue.data.labels.some(issueLabel => issueLabel.name === label)) { | |
await github.rest.issues.removeLabel({ | |
issue_number: issue_num, | |
owner, | |
repo, | |
name: label | |
}); | |
} | |
} | |
} |