Skip to content

Commit

Permalink
Add vscode-engineering bot to the list of known bots (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyaus authored Aug 1, 2024
1 parent 4ad1583 commit 27a8d42
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,14 @@ const createDataDirectories = async (areas: string[], assignees: string[]) => {
(event) =>
event.type === 'added' &&
event.label === category &&
!['vscodebot', 'github-actions', 'vscode-triage-bot', 'VSCodeTriageBot'].includes(event.actor),
![
'vscodebot',
'github-actions',
'vscode-triage-bot',
'VSCodeTriageBot',
'vs-code-engineering[bot]',
'vs-code-engineering',
].includes(event.actor),
)

if (
Expand Down
9 changes: 8 additions & 1 deletion classifier/train/fetch-issues/createDataDir.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions classifier/train/fetch-issues/createDataDir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import * as fs from 'fs';
import * as path from 'path';
import { JSONOutputLine } from './download';
import { normalizeIssue, safeLog } from '../../../common/utils';
import { JSONOutputLine } from './download';

interface Classification {
name: string;
Expand Down Expand Up @@ -86,9 +86,14 @@ export const createDataDirectories = async (areas: string[], assignees: string[]
(event) =>
event.type === 'added' &&
event.label === category &&
!['vscodebot', 'github-actions', 'vscode-triage-bot', 'VSCodeTriageBot'].includes(
event.actor,
),
![
'vscodebot',
'github-actions',
'vscode-triage-bot',
'VSCodeTriageBot',
'vs-code-engineering[bot]',
'vs-code-engineering',
].includes(event.actor),
);

if (
Expand Down

0 comments on commit 27a8d42

Please sign in to comment.