Skip to content

Commit

Permalink
refactor: remove upstash and ratelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed Oct 14, 2023
1 parent da0046b commit 110edeb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 75 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/deno-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on:
pull_request:
types: [opened, synchronize]

permissions:
contents: read

jobs:
format:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -26,11 +32,9 @@ jobs:
- name: create pull request with formatting corrections
if: ${{contains(steps.git_status.outputs.status, ' ')}}
uses: peter-evans/create-pull-request@v5
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: "${{ github.base_ref }}/auto-formatting"
title: "${{ github.base_ref }}/auto-formatting"
body: "Automated PR contains format corrections generated by a Github action for `${{ github.base_ref }}`"
base: ${{ github.base_ref }}
head: ${{ github.head_ref }}
signoff: false
commit_message: "refactor: auto format"
commit_options: '--no-verify --signoff'
file_pattern: '*.ts'
repository: .
2 changes: 0 additions & 2 deletions supabase/functions/_shared/core/factory.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Application, Router } from 'x/oak';
import { FactoryOptions } from '../types/options.d.ts';
import state from '../core/setup.ts';
import limit from '../middleware/limit.ts';
import timing from '../middleware/timing.ts';
import error from '../middleware/error.ts';
import header from '../middleware/header.ts';
Expand All @@ -22,7 +21,6 @@ export default (opts: FactoryOptions): Application => {
app.use(
timing,
header,
limit,
growth,
attribute,
error,
Expand Down
63 changes: 0 additions & 63 deletions supabase/functions/_shared/middleware/limit.ts

This file was deleted.

4 changes: 1 addition & 3 deletions supabase/functions/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
"x/mongo": "https://deno.land/x/[email protected]/mod.ts",
"x/oak": "https://deno.land/x/[email protected]/mod.ts",
"x/xml": "https://deno.land/x/[email protected]/mod.ts",
"x/upstash_redis": "https://deno.land/x/[email protected]/mod.ts",
"x/deepmerge": "https://deno.land/x/[email protected]/dist/deno/index.ts",
"esm/ua-agent-parser": "https://esm.sh/[email protected]/",
"esm/supabase": "https://esm.sh/@supabase/[email protected]",
"esm/growthbook": "https://esm.sh/@growthbook/[email protected]",
"skypack/upstash/ratelimit": "https://cdn.skypack.dev/@upstash/ratelimit@latest"
"esm/growthbook": "https://esm.sh/@growthbook/[email protected]"
}
}

0 comments on commit 110edeb

Please sign in to comment.