Skip to content

Commit 7135edb

Browse files
committed
test: use fixed maintainer
1 parent ab5935b commit 7135edb

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

.github/workflows/dependabot-notifier.yaml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,10 @@ jobs:
8181
uses: actions/github-script@v7
8282
with:
8383
script: |
84-
// Step 1: Get collaborators
85-
const collaborators = await github.paginate(
86-
github.rest.repos.listCollaborators,
87-
{
88-
owner: context.repo.owner,
89-
repo: context.repo.repo,
90-
affiliation: 'direct',
91-
per_page: 100
92-
}
93-
);
94-
95-
// Step 2: Filter maintainers
96-
const maintainers = collaborators
97-
.filter(user => user.permissions.admin)
98-
.map(user => user.login);
99-
100-
// Step 3: Assign to the PR
101-
if (maintainers.length > 0) {
102-
await github.rest.issues.addAssignees({
103-
owner: context.repo.owner,
104-
repo: context.repo.repo,
105-
issue_number: context.issue.number,
106-
assignees: maintainers,
107-
});
108-
} else {
109-
console.warn("No maintainers found to assign.");
110-
}
84+
const maintainers = ["dentiny", "CheyuWu"];
85+
await github.rest.issues.addAssignees({
86+
owner: context.repo.owner,
87+
repo: context.repo.repo,
88+
issue_number: context.issue.number,
89+
assignees: maintainers,
90+
});

0 commit comments

Comments
 (0)