Skip to content

Commit 48be7fc

Browse files
committed
🔧 format code
1 parent 09a122d commit 48be7fc

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
# github.event.pull_request.user.login == 'external-contributor' ||
1818
# github.event.pull_request.user.login == 'new-developer' ||
1919
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20-
20+
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
2424
pull-requests: read
2525
issues: read
2626
id-token: write
27-
27+
2828
steps:
2929
- name: Checkout repository
3030
uses: actions/checkout@v4
@@ -39,7 +39,7 @@ jobs:
3939

4040
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4141
# model: "claude-opus-4-20250514"
42-
42+
4343
# Direct prompt for automated review (no @claude mention needed)
4444
direct_prompt: |
4545
Please review this pull request and provide feedback on:
@@ -48,31 +48,30 @@ jobs:
4848
- Performance considerations
4949
- Security concerns
5050
- Test coverage
51-
51+
5252
Be constructive and helpful in your feedback.
5353
5454
# Optional: Use sticky comments to make Claude reuse the same comment on subsequent pushes to the same PR
5555
# use_sticky_comment: true
56-
56+
5757
# Optional: Customize review based on file types
5858
# direct_prompt: |
5959
# Review this PR focusing on:
6060
# - For TypeScript files: Type safety and proper interface usage
6161
# - For API endpoints: Security, input validation, and error handling
6262
# - For React components: Performance, accessibility, and best practices
6363
# - For tests: Coverage, edge cases, and test quality
64-
64+
6565
# Optional: Different prompts for different authors
6666
# direct_prompt: |
67-
# ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
67+
# ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
6868
# 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
6969
# 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
70-
70+
7171
# Optional: Add specific tools for running tests or linting
7272
# allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
73-
73+
7474
# Optional: Skip review for certain conditions
7575
# if: |
7676
# !contains(github.event.pull_request.title, '[skip-review]') &&
7777
# !contains(github.event.pull_request.title, '[WIP]')
78-

.github/workflows/claude.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,25 @@ jobs:
3939
# This is an optional setting that allows Claude to read CI results on PRs
4040
additional_permissions: |
4141
actions: read
42-
42+
4343
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4444
# model: "claude-opus-4-20250514"
45-
45+
4646
# Optional: Customize the trigger phrase (default: @claude)
4747
# trigger_phrase: "/claude"
48-
48+
4949
# Optional: Trigger when specific user is assigned to an issue
5050
# assignee_trigger: "claude-bot"
51-
51+
5252
# Optional: Allow Claude to run specific commands
5353
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
54-
54+
5555
# Optional: Add custom instructions for Claude to customize its behavior for your project
5656
# custom_instructions: |
5757
# Follow our coding standards
5858
# Ensure all new code has tests
5959
# Use TypeScript for new files
60-
60+
6161
# Optional: Custom environment variables for Claude
6262
# claude_env: |
6363
# NODE_ENV: test
64-

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ npm run build:mac # macOS universal build
8080
### CLI Tool (`bin/`)
8181

8282
- `bin/cli.ts` - Main entry point with Commander.js
83-
- `bin/builders/` - Platform-specific builders (Mac, Windows, Linux)
83+
- `bin/builders/` - Platform-specific builders (Mac, Windows, Linux)
8484
- `bin/options/` - CLI option processing and validation
8585
- `bin/helpers/merge.ts` - Configuration merging (name setting at line 55)
8686

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ If you are new to the command line, you can compile packages online with _GitHub
182182

183183
## Development
184184

185-
Prepare your environment before starting. Make sure you have Rust `>=1.89` and Node `>=22` (e.g., `22.11.0`) installed on your computer. *Note: Older versions (Rust ≥1.78, Node ≥16) may also work but latest stable versions are recommended.* For installation guidance, see [Tauri documentation](https://tauri.app/start/prerequisites/).
185+
Prepare your environment before starting. Make sure you have Rust `>=1.89` and Node `>=22` (e.g., `22.11.0`) installed on your computer. _Note: Older versions (Rust ≥1.78, Node ≥16) may also work but latest stable versions are recommended._ For installation guidance, see [Tauri documentation](https://tauri.app/start/prerequisites/).
186186

187187
If you are unfamiliar with these, it is better to try out the above tool to pack with one click.
188188

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pake https://weekly.tw93.fun --name Weekly --hide-title-bar
178178

179179
## 定制开发
180180

181-
开始前请确保电脑已经安装了 Rust `>=1.89` 和 Node `>=22 如 22.11.0` 的环境,*注意:较旧的版本(Rust ≥1.78,Node ≥16)也可能可以工作,但推荐使用最新稳定版本。* 此外需参考 [Tauri 文档](https://tauri.app/start/prerequisites/) 快速配置好环境才可以开始使用,假如你太不懂,使用上面的命令行打包会更加合适。
181+
开始前请确保电脑已经安装了 Rust `>=1.89` 和 Node `>=22 如 22.11.0` 的环境,_注意:较旧的版本(Rust ≥1.78,Node ≥16)也可能可以工作,但推荐使用最新稳定版本。_ 此外需参考 [Tauri 文档](https://tauri.app/start/prerequisites/) 快速配置好环境才可以开始使用,假如你太不懂,使用上面的命令行打包会更加合适。
182182

183183
```sh
184184
# 安装依赖

README_JP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pake https://weekly.tw93.fun --name Weekly --hide-title-bar
178178

179179
## 開発
180180

181-
開始する前に、Rust `>=1.89` と Node `>=22` (例: `22.11.0`) がコンピュータにインストールされていることを確認してください。*注意:古いバージョン(Rust ≥1.78、Node ≥16)でも動作する可能性がありますが、最新の安定版の使用をお勧めします。* インストールガイドについては、[Tauri ドキュメント](https://tauri.app/start/prerequisites/)を参照してください。
181+
開始する前に、Rust `>=1.89` と Node `>=22` (例: `22.11.0`) がコンピュータにインストールされていることを確認してください。_注意:古いバージョン(Rust ≥1.78、Node ≥16)でも動作する可能性がありますが、最新の安定版の使用をお勧めします。_ インストールガイドについては、[Tauri ドキュメント](https://tauri.app/start/prerequisites/)を参照してください。
182182

183183
これらに不慣れな場合は、上記のツールを使用してワンクリックでパッケージを作成することをお勧めします。
184184

bin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Installation
44

5-
Ensure that your Node.js version is 22.0 or higher (e.g., 22.11.0). *Note: Older versions ≥16.0.0 may also work.* Avoid using `sudo` for the installation. If you encounter permission issues with npm, refer to [How to fix npm throwing error without sudo](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo).
5+
Ensure that your Node.js version is 22.0 or higher (e.g., 22.11.0). _Note: Older versions ≥16.0.0 may also work._ Avoid using `sudo` for the installation. If you encounter permission issues with npm, refer to [How to fix npm throwing error without sudo](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo).
66

77
```bash
88
npm install pake-cli -g

bin/README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 安装
44

5-
请确保您的 Node.js 版本为 22 或更高版本(例如 22.11.0)。*注意:较旧的版本 ≥16.0.0 也可能可以工作。* 请避免使用 `sudo` 进行安装。如果 npm 报告权限问题,请参考 [如何在不使用 sudo 的情况下修复 npm 报错](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo)
5+
请确保您的 Node.js 版本为 22 或更高版本(例如 22.11.0)。_注意:较旧的版本 ≥16.0.0 也可能可以工作。_ 请避免使用 `sudo` 进行安装。如果 npm 报告权限问题,请参考 [如何在不使用 sudo 的情况下修复 npm 报错](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo)
66

77
```bash
88
npm install pake-cli -g

bin/utils/url.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export function normalizeUrl(urlToNormalize: string): string {
3535
new URL(urlWithProtocol);
3636
return urlWithProtocol;
3737
} catch (err) {
38-
throw new Error(`Your url "${urlWithProtocol}" is invalid: ${(err as Error).message}`);
38+
throw new Error(
39+
`Your url "${urlWithProtocol}" is invalid: ${(err as Error).message}`,
40+
);
3941
}
4042
}

0 commit comments

Comments
 (0)