-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # core/src/browser/core.ts # core/src/browser/extensions/monitoring.ts # core/src/browser/fs.ts # core/src/extensions/ai-engines/LocalOAIEngine.ts # extensions/monitoring-extension/src/node/index.ts # extensions/tensorrt-llm-extension/src/index.ts # extensions/tensorrt-llm-extension/src/node/index.ts # web/hooks/useSendChatMessage.ts
- Loading branch information
Showing
548 changed files
with
2,639 additions
and
35,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Pipeline auto assign current milestone for PR after the PR is merge | ||
name: Assign Milestone | ||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
assign_milestone: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
issues: write | ||
steps: | ||
- name: Assign Milestone | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const { owner, repo } = context.repo; | ||
const { number, merged } = context.payload.pull_request; | ||
if (merged) { | ||
const { data: milestones } = await github.issues.listMilestones({ | ||
owner, | ||
repo, | ||
state: 'open', | ||
}); | ||
const mergedDate = new Date(context.payload.pull_request.merged_at); | ||
const currentMilestone = milestones | ||
.filter(milestone => milestone.due_on !== null) | ||
.find((milestone) => { | ||
const dueDate = new Date(milestone.due_on); | ||
return mergedDate <= dueDate; | ||
}); | ||
if (currentMilestone) { | ||
await github.issues.update({ | ||
owner, | ||
repo, | ||
issue_number: number, | ||
milestone: currentMilestone.number | ||
}); | ||
} | ||
} | ||
debug: true | ||
|
75 changes: 0 additions & 75 deletions
75
.github/workflows/clean-cloudflare-page-preview-url-and-r2.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Clean Cloudflare R2 nightly build artifacts older than 10 days" | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # every day at 00:00 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
clean-cloudflare-r2: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- name: install-aws-cli-action | ||
uses: unfor19/install-aws-cli-action@v1 | ||
- name: Delete object older than 10 days | ||
run: | | ||
# Get the list of objects in the 'latest' folder | ||
OBJECTS=$(aws s3api list-objects --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --prefix "latest/" --query 'Contents[?LastModified<`'$(date -d "$current_date -10 days" -u +"%Y-%m-%dT%H:%M:%SZ")'`].{Key: Key}' --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com | jq -c .) | ||
# Create a JSON file for the delete operation | ||
echo "{\"Objects\": $OBJECTS, \"Quiet\": false}" > delete.json | ||
# Delete the objects | ||
echo q | aws s3api delete-objects --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --delete file://delete.json --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com | ||
# Remove the JSON file | ||
rm delete.json | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: auto | ||
AWS_EC2_METADATA_DISABLED: "true" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.