Skip to content

Commit dec64a6

Browse files
authored
Merge branch 'dev' into feat/add-cors-to-sdk
2 parents 049f3cd + 00a6f22 commit dec64a6

1,817 files changed

Lines changed: 319478 additions & 109276 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.git
2+
.opencode
3+
.sst
4+
.turbo
5+
.wrangler
6+
node_modules
7+
**/node_modules
8+
**/.output
9+
**/dist
10+
**/.turbo
11+
**/.vite
12+
**/coverage

.github/TEAM_MEMBERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ rekram1-node
1414
thdxr
1515
simonklee
1616
vimtor
17+
starptech

.github/actions/setup-bun/action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
fi
2424
2525
- name: Setup Bun
26-
uses: oven-sh/setup-bun@v2
26+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
2727
with:
2828
bun-version-file: ${{ !steps.bun-url.outputs.url && 'package.json' || '' }}
2929
bun-download-url: ${{ steps.bun-url.outputs.url }}
@@ -33,8 +33,9 @@ runs:
3333
shell: bash
3434
run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
3535

36-
- name: Cache Bun dependencies
37-
uses: actions/cache@v4
36+
- name: Restore Bun dependencies
37+
id: bun-cache
38+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3839
with:
3940
path: ${{ steps.cache.outputs.dir }}
4041
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
@@ -56,3 +57,10 @@ runs:
5657
bun install ${{ inputs.install-flags }}
5758
fi
5859
shell: bash
60+
61+
- name: Save Bun dependencies
62+
if: steps.bun-cache.outputs.cache-hit != 'true' && github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
63+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
64+
with:
65+
path: ${{ steps.cache.outputs.dir }}
66+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}

.github/actions/setup-git-committer/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
steps:
2020
- name: Create app token
2121
id: apptoken
22-
uses: actions/create-github-app-token@v2
22+
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
2323
with:
2424
app-id: ${{ inputs.opencode-app-id }}
2525
private-key: ${{ inputs.opencode-app-secret }}

.github/workflows/beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1717
with:
1818
fetch-depth: 0
1919

.github/workflows/close-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
contents: read
1313
issues: write
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1616

17-
- uses: oven-sh/setup-bun@v2
17+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
1818
with:
1919
bun-version: latest
2020

.github/workflows/close-prs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: close-prs
2+
3+
on:
4+
schedule:
5+
- cron: "0 22 * * *" # Daily at 10:00 PM UTC
6+
workflow_dispatch:
7+
inputs:
8+
dry-run:
9+
description: "Log matching PRs without closing them"
10+
type: boolean
11+
default: true
12+
max-close:
13+
description: "Maximum matching PRs to close"
14+
type: string
15+
required: false
16+
default: "50"
17+
18+
jobs:
19+
close:
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 240
22+
permissions:
23+
contents: read
24+
issues: write
25+
pull-requests: write
26+
steps:
27+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
28+
29+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
30+
with:
31+
bun-version: latest
32+
33+
- name: Close old PRs without enough positive reactions
34+
env:
35+
GITHUB_TOKEN: ${{ github.token }}
36+
run: |
37+
max_close="${{ inputs['max-close'] }}"
38+
if [ -z "$max_close" ]; then
39+
max_close="50"
40+
fi
41+
42+
args=("--threshold" "2" "--age-months" "1" "--sleep-ms" "20000" "--max-close" "$max_close")
43+
44+
if [ "${{ github.event_name }}" = "schedule" ]; then
45+
args+=("--execute")
46+
elif [ "${{ inputs['dry-run'] }}" = "false" ]; then
47+
args+=("--execute")
48+
fi
49+
50+
bun script/github/close-prs.ts "${args[@]}"

.github/workflows/close-stale-prs.yml

Lines changed: 0 additions & 235 deletions
This file was deleted.

.github/workflows/compliance-close.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Close non-compliant issues and PRs after 2 hours
19-
uses: actions/github-script@v7
19+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
2020
with:
2121
script: |
2222
const { data: items } = await github.rest.issues.listForRepo({

.github/workflows/containers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ jobs:
2121
REGISTRY: ghcr.io/${{ github.repository_owner }}
2222
TAG: "24.04"
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2525

2626
- uses: ./.github/actions/setup-bun
2727

2828
- name: Set up QEMU
29-
uses: docker/setup-qemu-action@v3
29+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
3030

3131
- name: Set up Docker Buildx
32-
uses: docker/setup-buildx-action@v3
32+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
3333

3434
- name: Login to GHCR
35-
uses: docker/login-action@v3
35+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
3636
with:
3737
registry: ghcr.io
3838
username: ${{ github.repository_owner }}

0 commit comments

Comments
 (0)