mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 01:33:11 +01:00
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:
parent
9efe926863
commit
17199e5ff6
|
|
@ -75,6 +75,9 @@ async function handleReviewers({
|
||||||
const reviewers = (
|
const reviewers = (
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
Array.from(new_reviewers, async (username) => {
|
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 {
|
try {
|
||||||
await github.rest.repos.checkCollaborator({
|
await github.rest.repos.checkCollaborator({
|
||||||
...context.repo,
|
...context.repo,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue