Skip to content

Commit b4d6e18

Browse files
committed
test: use fixed maintainers name
1 parent ab5935b commit b4d6e18

File tree

1 file changed

+10
-27
lines changed

1 file changed

+10
-27
lines changed

.github/workflows/dependabot-notifier.yaml

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Dependabot Upgrade Monitor
22

33
on:
4+
# Use the `pull_request` event to trigger the workflow when a PR is opened or updated.
5+
# If we use `pull_request_target`, workflows from forked PRs won't run properly
6+
# and we cannot use the default GITHUB_TOKEN securely.
47
pull_request:
58
types: [opened, synchronize]
69

@@ -81,30 +84,10 @@ jobs:
8184
uses: actions/github-script@v7
8285
with:
8386
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-
}
87+
const maintainers = ["dentiny"];
88+
await github.rest.issues.addAssignees({
89+
owner: context.repo.owner,
90+
repo: context.repo.repo,
91+
issue_number: context.issue.number,
92+
assignees: maintainers,
93+
});

0 commit comments

Comments
 (0)