From 4e142f516d4f62c45b8743c15edb3e5301030825 Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:22:12 +0100 Subject: [PATCH] chore: format, ignore dist from formatting --- .cspell.json | 12 +++++++++++- .github/workflows/update-configuration.yml | 2 +- .prettierignore | 1 + dist/index.js | 6 +++--- manifest.json | 16 +++------------- package.json | 2 +- src/types/context.ts | 9 ++++++++- 7 files changed, 28 insertions(+), 20 deletions(-) create mode 100644 .prettierignore diff --git a/.cspell.json b/.cspell.json index e9ee382..04c71a4 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,7 +1,17 @@ { "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", "version": "0.2", - "ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log", "**/*.toml", "**/*.http", "src/adapters/supabase/types/database.ts", "bun.lockb"], + "ignorePaths": [ + "**/*.json", + "**/*.css", + "node_modules", + "**/*.log", + "**/*.toml", + "**/*.http", + "src/adapters/supabase/types/database.ts", + "bun.lockb", + "dist" + ], "useGitignore": true, "language": "en", "words": [ diff --git a/.github/workflows/update-configuration.yml b/.github/workflows/update-configuration.yml index 9afac20..b4984cc 100644 --- a/.github/workflows/update-configuration.yml +++ b/.github/workflows/update-configuration.yml @@ -14,4 +14,4 @@ jobs: - uses: ubiquity-os/action-deploy-plugin@main env: APP_ID: ${{ secrets.APP_ID }} - APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} \ No newline at end of file + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +dist diff --git a/dist/index.js b/dist/index.js index fdea330..857cefc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61845,7 +61845,7 @@ var __webpack_modules__ = { const r = e.strict ?? true; delete e.strict; Object.assign(this, e); - this.getPath = r ? (e.getPath ?? p.getPath) : p.getPathNoStrict; + this.getPath = r ? e.getPath ?? p.getPath : p.getPathNoStrict; } clone() { const e = new Hono({ router: this.router, getPath: this.getPath }); @@ -61957,7 +61957,7 @@ var __webpack_modules__ = { } return e instanceof Promise ? e.then((e) => e || (i.finalized ? i.res : this.notFoundHandler(i))).catch((e) => this.handleError(e, i)) - : (e ?? this.notFoundHandler(i)); + : e ?? this.notFoundHandler(i); } const a = (0, c.compose)(o[0], this.errorHandler, this.notFoundHandler); return (async () => { @@ -62850,7 +62850,7 @@ var __webpack_modules__ = { a.params = Object.create(null); a.possibleKeys.forEach((e) => { const t = l[a.name]; - a.params[e] = n[e] && !t ? n[e] : (r[e] ?? n[e]); + a.params[e] = n[e] && !t ? n[e] : r[e] ?? n[e]; l[a.name] = true; }); s.push(a); diff --git a/manifest.json b/manifest.json index 54161db..1a944f2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,15 +1,7 @@ { "name": "Assistive pricing", "description": "Handles assistive pricing, and allows for users to modify labels.", - "ubiquity:listeners": [ - "repository.created", - "issues.opened", - "issues.labeled", - "issues.unlabeled", - "label.edited", - "issue_comment.created", - "push" - ], + "ubiquity:listeners": ["repository.created", "issues.opened", "issues.labeled", "issues.unlabeled", "label.edited", "issue_comment.created", "push"], "commands": { "allow": { "ubiquity:example": "/allow @user1 label", @@ -30,9 +22,7 @@ } } }, - "required": [ - "excludeRepos" - ] + "required": ["excludeRepos"] }, "labels": { "default": {}, @@ -74,4 +64,4 @@ } } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index cae7069..88b4f43 100644 --- a/package.json +++ b/package.json @@ -96,4 +96,4 @@ ] }, "packageManager": "yarn@1.22.22" -} \ No newline at end of file +} diff --git a/src/types/context.ts b/src/types/context.ts index 46c4992..948d544 100644 --- a/src/types/context.ts +++ b/src/types/context.ts @@ -5,7 +5,14 @@ import { createAdapters } from "../adapters"; import { Env } from "./env"; import { Logs } from "@ubiquity-os/ubiquity-os-logger"; -export type SupportedEvents = "repository.created" | "issues.labeled" | "issues.unlabeled" | "issues.opened" | "label.edited" | "issue_comment.created" | "push"; +export type SupportedEvents = + | "repository.created" + | "issues.labeled" + | "issues.unlabeled" + | "issues.opened" + | "label.edited" + | "issue_comment.created" + | "push"; export interface Context { eventName: T;