diff --git a/torchci/lib/bot/index.ts b/torchci/lib/bot/index.ts index 678c15e258..c564ee667d 100644 --- a/torchci/lib/bot/index.ts +++ b/torchci/lib/bot/index.ts @@ -5,7 +5,6 @@ import cancelWorkflowsOnCloseBot from "./cancelWorkflowsOnCloseBot"; import ciflowPushTrigger from "./ciflowPushTrigger"; import codevNoWritePerm from "./codevNoWritePermBot"; import drciBot from "./drciBot"; -import isTheBotStateful from "./statefulBot"; import pytorchBot from "./pytorchBot"; import retryBot from "./retryBot"; import stripApprovalBot from "./stripApprovalBot"; @@ -20,7 +19,6 @@ export default function bot(app: Probot) { ciflowPushTrigger(app); codevNoWritePerm(app); drciBot(app); - isTheBotStateful(app); pytorchBot(app); retryBot(app); stripApprovalBot(app); diff --git a/torchci/lib/bot/statefulBot.ts b/torchci/lib/bot/statefulBot.ts deleted file mode 100644 index 6c626bff55..0000000000 --- a/torchci/lib/bot/statefulBot.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Probot } from "probot"; - -function isTheBotStateful(app: Probot): void { - let time = 0; - - // This bot is used to rerun failed workflows on pytorch/pytorch that look - // like https://github.com/pytorch/pytorch/actions/runs/8454565307 - app.on("issue_comment.created", async (ctx) => { - if ( - ctx.payload.repository.full_name == "malfet/deleteme" && - ctx.payload.issue.number == 83 && - ctx.payload.comment.user.login == "clee2000" - ) { - await ctx.octokit.issues.createComment({ - owner: ctx.payload.repository.owner.login, - repo: ctx.payload.repository.name, - issue_number: ctx.payload.issue.number, - body: `hello! ${time}`, - }); - time += 1; - } - }); -} - -export default isTheBotStateful;