Skip to content

Commit e734c68

Browse files
authored
Merge pull request #1728 from asmacdo/update-maintainers
Set maintainers to whole team and fixup label CI error message
2 parents dad37b8 + 60342b7 commit e734c68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/labels.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
uses: actions/github-script@v8
1313
with:
1414
script: |
15-
const allowedPattern = /^(major|minor|patch|performance|internal|documentation|tests|dependencies)$/;
15+
const allowedLabels = ['major', 'minor', 'patch', 'performance', 'internal', 'documentation', 'tests', 'dependencies'];
1616
1717
const labels = context.payload.pull_request.labels.map(label => label.name);
1818
19-
const hasValidLabel = labels.some(label => allowedPattern.test(label));
19+
const hasValidLabel = labels.some(label => allowedLabels.includes(label));
2020
if (!hasValidLabel) {
21-
core.setFailed("The pull request must have a label of 'major', 'minor', or 'patch'.");
21+
core.setFailed(`The pull request must have one of these labels: ${allowedLabels.join(', ')}`);
2222
} else {
2323
console.log('PR has a valid label.');
2424
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
{name = "DANDI developers", email = "team@dandiarchive.org"},
1414
]
1515
maintainers = [
16-
{name = "Yaroslav O. Halchenko", email = "debian@onerussian.com"},
16+
{name = "DANDI developers", email = "team@dandiarchive.org"},
1717
]
1818
keywords = [
1919
"data standards",

0 commit comments

Comments
 (0)