Skip to content

Commit

Permalink
chore: format, ignore dist from formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Oct 23, 2024
1 parent d86df53 commit 4e142f5
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 20 deletions.
12 changes: 11 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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);
Expand Down
16 changes: 3 additions & 13 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -30,9 +22,7 @@
}
}
},
"required": [
"excludeRepos"
]
"required": ["excludeRepos"]
},
"labels": {
"default": {},
Expand Down Expand Up @@ -74,4 +64,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@
]
},
"packageManager": "[email protected]"
}
}
9 changes: 8 additions & 1 deletion src/types/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends SupportedEvents | "issue_comment" = SupportedEvents> {
eventName: T;
Expand Down

0 comments on commit 4e142f5

Please sign in to comment.