Skip to content

Commit

Permalink
fix: corrected all issues reported by Knip
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jul 16, 2024
1 parent bc5b3b5 commit c63579b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 58 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@ubiquibot/command-start-stop",
"version": "1.0.0",
"description": "Enables the assignment and graceful unassignment of tasks to contributors.",
"main": "build/index.ts",
"main": "src/worker.ts",
"author": "Ubiquity DAO",
"license": "MIT",
"engines": {
Expand All @@ -29,8 +29,6 @@
"open-source"
],
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@octokit/rest": "^20.0.2",
"@octokit/webhooks": "^13.1.0",
"@sinclair/typebox": "^0.32.5",
Expand Down
48 changes: 0 additions & 48 deletions src/main.ts

This file was deleted.

8 changes: 3 additions & 5 deletions src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Context } from "./types/context";
import { userStartStop } from "./handlers/user-start-stop";
import { Env, PluginInputs } from "./types";

import { Octokit } from "@octokit/rest";
import { createClient } from "@supabase/supabase-js";
import { createAdapters } from "./adapters";
import { Logs } from "@ubiquity-dao/ubiquibot-logger";
import { createAdapters } from "./adapters";
import { userStartStop } from "./handlers/user-start-stop";
import { Context, Env, PluginInputs } from "./types";

export async function startStopTask(inputs: PluginInputs, env: Env) {
const octokit = new Octokit({ auth: inputs.authToken });
Expand Down
3 changes: 1 addition & 2 deletions src/worker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Value } from "@sinclair/typebox/value";
import { startStopTask } from "./plugin";
import { Env } from "./types/env";
import { startStopSchema, startStopSettingsValidator } from "./types/plugin-input";
import { Env, startStopSchema, startStopSettingsValidator } from "./types";

export default {
async fetch(request: Request, env: Env): Promise<Response> {
Expand Down

0 comments on commit c63579b

Please sign in to comment.