Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit 4a74f48

Browse files
committed
Skip triaging for issues authored by team members
1 parent da4343d commit 4a74f48

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

triage/index.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

triage/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ class IssueTriageAction extends Action {
1616
const githubIssue = await issue.getIssue();
1717
if (!githubIssue) return;
1818

19+
const vscodeToolsAPI = new VSCodeToolsAPIManager();
20+
const teamMembers = new Set((await vscodeToolsAPI.getTeamMembers()).map((t) => t.id));
21+
if (teamMembers.has(githubIssue.author.name)) {
22+
safeLog('Author is a team member, skipping triaging', githubIssue.author.name);
23+
return;
24+
}
25+
1926
// check to see that issue is not already assigned and that it does not have the triage-needed label
2027
if (githubIssue.assignees.length > 0 || githubIssue.labels.length > 0) {
2128
return;
@@ -29,9 +36,7 @@ class IssueTriageAction extends Action {
2936
return;
3037
}
3138

32-
const vscodeToolsAPI = new VSCodeToolsAPIManager();
3339
const triagers = await vscodeToolsAPI.getTriagerGitHubIds();
34-
3540
if (triagers.length === 0) {
3641
safeLog('No available triagers found');
3742
return;

0 commit comments

Comments
 (0)