ci/github-script/reviewers: add TODO about future optimization

We still use a few too many API requests by checking team members for
collaborator status - we can improve on that in the future.
This commit is contained in:
Wolfgang Walther 2025-11-06 16:11:36 +01:00
parent 9efe926863
commit 17199e5ff6
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

View file

@ -75,6 +75,9 @@ async function handleReviewers({
const reviewers = (
await Promise.all(
Array.from(new_reviewers, async (username) => {
// TODO: Restructure this file to only do the collaborator check for those users
// who were not already part of a team. Being a member of a team makes them
// collaborators by definition.
try {
await github.rest.repos.checkCollaborator({
...context.repo,