The open source coding agent.
TypeScript
ci: fix fmt
Aiden Cline076c8b2ca1b1
diff --git a/.github/workflows/format.yml b/.github/workflows/format.ymlindex f2c783d6548..f353d4c8f03 100644--- a/.github/workflows/format.yml+++ b/.github/workflows/format.yml@@ -19,7 +19,7 @@ jobs:with:token: ${{ secrets.GITHUB_TOKEN }}repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}- ref: ${{ github.event.pull_request.head.sha || github.sha }}+ ref: ${{ github.event.pull_request.head.ref || github.ref_name }}- name: Setup Bunuses: ./.github/actions/setup-bun@@ -29,3 +29,4 @@ jobs:./script/format.tsenv:CI: true+ PUSH_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}diff --git a/script/format.ts b/script/format.tsindex f5a54a57fcb..2ae93f169cc 100755--- a/script/format.ts+++ b/script/format.ts@@ -9,5 +9,6 @@ if (process.env["CI"] && (await $`git status --porcelain`.text())) {await $`git config --local user.name "GitHub Action"`await $`git add -A`await $`git commit -m "chore: format code"`- await $`git push --no-verify`+ const branch = process.env["PUSH_BRANCH"]+ await $`git push origin HEAD:${branch} --no-verify`}