mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-19 08:44:22 +01:00
14 lines
389 B
TypeScript
Executable File
14 lines
389 B
TypeScript
Executable File
#!/usr/bin/env bun
|
|
|
|
import { $ } from "bun"
|
|
|
|
await $`bun run prettier --ignore-unknown --write $(git ls-files)`
|
|
|
|
if (process.env["CI"] && (await $`git status --porcelain`.text())) {
|
|
await $`git config --local user.email "action@github.com"`
|
|
await $`git config --local user.name "GitHub Action"`
|
|
await $`git add -A`
|
|
await $`git commit -m "chore: format code"`
|
|
await $`git push`
|
|
}
|