Skip to content

Commit

Permalink
chore: skip devpool and knip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 27, 2024
1 parent e5e31e5 commit 67e6e55
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 253 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"grammy": "^1.29.0",
"grammy-guard": "0.5.0",
"hono": "^4.5.9",
"octokit": "^4.0.2",
"telegram": "^2.24.11",
"typebox-validators": "0.3.5"
},
Expand Down Expand Up @@ -103,4 +102,4 @@
]
},
"packageManager": "yarn@1.22.22"
}
}
4 changes: 4 additions & 0 deletions src/bot/mtproto-api/workrooms/close-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export async function closeChat(context: Context<"issues.closed", SupportedEvent
},
logger,
} = context;
if (payload.repository.full_name.includes("devpool-directory")) {
return { status: 200, reason: "skipped" };
}

const mtProto = new MtProto(context);
await mtProto.initialize();

Expand Down
4 changes: 4 additions & 0 deletions src/bot/mtproto-api/workrooms/create-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export async function createChat(context: Context<"issues.labeled", SupportedEve
const { payload, config, logger } = context;
const chatName = "@" + payload.repository.full_name + "#" + payload.issue.number;

if (chatName.includes("devpool-directory")) {
return { status: 200, reason: "skipped" };
}

const labelName = payload.label?.name.toLowerCase();

if (!labelName?.toLowerCase().includes("price")) {
Expand Down
4 changes: 4 additions & 0 deletions src/bot/mtproto-api/workrooms/reopen-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export async function reopenChat(context: Context<"issues.reopened", SupportedEv
logger,
} = context;

if (payload.repository.full_name.includes("devpool-directory")) {
return { status: 200, reason: "skipped" };
}

const mtProto = new MtProto(context);
await mtProto.initialize();

Expand Down
12 changes: 0 additions & 12 deletions src/types/typeguards.ts

This file was deleted.

Loading

0 comments on commit 67e6e55

Please sign in to comment.