Skip to content

Commit

Permalink
add ignore for copilot users for self reference such as their repo or…
Browse files Browse the repository at this point in the history
… team record
  • Loading branch information
scottluskcis committed Dec 13, 2024
1 parent 959f5ef commit 8c91a1d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/report/copilot-associations-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ function getTeamAssociations(data: CopilotAssociationsData): CopilotAssociation[
if (copilot_users.length === 0) {
results.push(createAssociation(member, team.team_name, false, "Unknown", "team"));
}
} else {
results.push(createAssociation(member, team.team_name, true, "Self", "team"));
} else {
logger.warn(`Found copilot user ${member} in team ${team.team_name}, ignoring for report...`);
//results.push(createAssociation(member, team.team_name, true, "Self", "team"));
}
}
}
Expand All @@ -130,7 +131,8 @@ function getRepositoryAssociations(data: CopilotAssociationsData): CopilotAssoci
results.push(createAssociation(contributor, repo.repo_name, false, "Unknown", "repository"));
}
} else {
results.push(createAssociation(contributor, repo.repo_name, true, "Self", "repository"));
logger.warn(`Found copilot user ${contributor} in repo ${repo.repo_name}, ignoring for report...`);
//results.push(createAssociation(contributor, repo.repo_name, true, "Self", "repository"));
}
}
}
Expand Down

0 comments on commit 8c91a1d

Please sign in to comment.