add mergeable check

This commit is contained in:
SbloodyS 2024-06-26 15:11:23 +08:00
parent e02b459577
commit 1f2b5126b8
1 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@ jobs:
} else {
core.setFailed(`A maintainer needs to set the milestone for this pull request.`);
}
const labeledFlag = false;
let labeledFlag = false;
for (const label of data.labels) {
if (['feature', 'bug', 'improvement', 'document', 'chore', 'DSIP', 'CI/CD', 'revert'].includes(label.name)) {
if (['feature', 'bug', 'improvement', 'document', 'chore', 'DSIP', 'CI&CD', 'revert'].includes(label.name)) {
core.info(`This pull request has a valid label: ${label.name}`);
labeledFlag = true;
break;