Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix build errors #66

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Enable Corepack and Install Correct Yarn Version
run: |
corepack enable
yarn set version 4.0.2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20.10.0"
cache: "yarn"

- name: Install
run: yarn install
Expand All @@ -23,7 +29,7 @@ jobs:
run: yarn build

- name: Lint
run: yarn lint
run: yarn format

run-migration:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/shared/structured-metadata.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LogLevel } from "../../adapters/supabase/helpers/pretty-logs";
import { LogLevel } from "ubiquibot-logger/pretty-logs";
import { COMMIT_HASH } from "../../commit-hash";

function createStructuredMetadata(className: string, metadata: any) {

Check warning on line 4 in src/handlers/shared/structured-metadata.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 4 in src/handlers/shared/structured-metadata.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
const jsonPretty = JSON.stringify(metadata, null, 2);
const stackLine = new Error().stack?.split("\n")[2] ?? "";
const caller = stackLine.match(/at (\S+)/)?.[1] ?? "";
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/wildcard/unassign/assign-event-found.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logs } from "../../../adapters/supabase/helpers/tables/logs";
import { Logs } from "ubiquibot-logger";
import { Context } from "../../../types/context";
import { GitHubAssignEvent, GitHubUser } from "../../../types/payload";
import { disqualifyIdleAssignees } from "./disqualify-idle-assignees";
Expand Down
Loading