Skip to content

Commit

Permalink
Log botName and no-op (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyaus authored Aug 1, 2024
1 parent 2ee2f98 commit 8470c3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions classifier-deep/monitor/index.js

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

8 changes: 5 additions & 3 deletions classifier-deep/monitor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@

import { OctoKitIssue } from '../../api/octokit';
import { Action } from '../../common/Action';
import { getRequiredInput } from '../../common/utils';
import { getRequiredInput, safeLog } from '../../common/utils';

class DeepClassifierMonitor extends Action {
id = 'Classifier-Deep/Monitor';

protected async onAssigned(issue: OctoKitIssue, assignee: string): Promise<void> {
safeLog(`Assigned to ${assignee}`);
const assigner = await issue.getAssigner(assignee);
safeLog(`Assigner is + ${assigner}`);
if (assigner !== getRequiredInput('botName')) {
await issue.removeLabel('triage-needed');
await issue.removeLabel('stale');
// await issue.removeLabel('triage-needed');
// await issue.removeLabel('stale');
}
}

Expand Down

0 comments on commit 8470c3d

Please sign in to comment.