forked from ubq-testing/command-start-stop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ubq-testing#2 from Meniole/development
Development
- Loading branch information
Showing
31 changed files
with
9,733 additions
and
9,229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const { exec } = require("child_process"); | ||
|
||
exec('cspell "**/*"', (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`exec error: ${error}`); | ||
return; | ||
} | ||
if (stdout) console.log(`stdout: ${stdout}`); | ||
if (stderr) console.error(`stderr: ${stderr}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@ubiquibot/command-start-stop", | ||
"version": "1.0.0", | ||
"description": "Enables the assignment of tasks to hunters and the graceful unassignment.", | ||
"description": "Enables the assignment and graceful unassignment of tasks to contributors.", | ||
"main": "build/index.ts", | ||
"author": "Ubiquity DAO", | ||
"license": "MIT", | ||
|
@@ -14,7 +14,7 @@ | |
"format": "run-s format:lint format:prettier format:cspell", | ||
"format:lint": "eslint --fix .", | ||
"format:prettier": "prettier --write .", | ||
"format:cspell": "cspell **/*", | ||
"format:cspell": "tsx .github/cspell.ts", | ||
"knip": "knip --config .github/knip.ts", | ||
"knip-ci": "knip --no-exit-code --reporter json --config .github/knip.ts", | ||
"prepare": "husky install", | ||
|
@@ -35,6 +35,7 @@ | |
"@octokit/webhooks": "^13.1.0", | ||
"@sinclair/typebox": "^0.32.5", | ||
"@supabase/supabase-js": "2.42.0", | ||
"@ubiquity-dao/ubiquibot-logger": "^1.2.0", | ||
"dotenv": "^16.4.4", | ||
"ms": "^2.1.3", | ||
"typebox-validators": "^0.3.5" | ||
|
@@ -67,7 +68,7 @@ | |
"prettier": "^3.2.5", | ||
"ts-jest": "29.1.2", | ||
"tsx": "^4.7.1", | ||
"typescript": "^5.3.3", | ||
"typescript": "^5.5.2", | ||
"wrangler": "3.57.0" | ||
}, | ||
"lint-staged": { | ||
|
@@ -83,5 +84,6 @@ | |
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import { SupabaseClient } from "@supabase/supabase-js"; | ||
import { Context } from "../types/context"; | ||
import { User } from "./supabase/helpers/user"; | ||
import { Super } from "./supabase/helpers/supabase"; | ||
import { Database } from "./supabase/types/database"; | ||
|
||
export function createAdapters(supabaseClient: SupabaseClient<Database>, context: Context) { | ||
export function createAdapters(supabaseClient: SupabaseClient, context: Context) { | ||
return { | ||
supabase: { | ||
user: new User(supabaseClient, context), | ||
super: new Super(supabaseClient, context), | ||
}, | ||
}; | ||
} |
Oops, something went wrong.