Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
bit-pm
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
燕伟桐
bit-pm
Commits
71812e65
Unverified
提交
71812e65
authored
1月 21, 2026
作者:
Will Chen
提交者:
GitHub
1月 21, 2026
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prettier claude commands md (#2278)
#skip-bb
上级
5894cc77
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
0 行删除
+19
-0
e2e-rebase.md
.claude/commands/e2e-rebase.md
+7
-0
pr-fix.md
.claude/commands/pr-fix.md
+12
-0
没有找到文件。
.claude/commands/e2e-rebase.md
浏览文件 @
71812e65
...
...
@@ -7,34 +7,41 @@ Rebase E2E test snapshots based on failed tests from the PR comments.
1.
Get the current PR number using
`gh pr view --json number --jq '.number'`
2.
Fetch PR comments and look for the Playwright test results comment. Parse out the failed test filenames from either:
-
The "Failed Tests" section (lines starting with
`- \`filename.spec.ts`
)
-
The "Update Snapshot Commands" section (contains
`npm run e2e e2e-tests/filename.spec.ts`
)
3.
If no failed tests are found in the PR comments, inform the user and stop.
4.
Run the pre-e2e setup:
```
npm run pre:e2e
```
5.
For each failed test file, run the e2e test with snapshot update:
```
npm run e2e e2e-tests/<testFilename>.spec.ts -- --update-snapshots
```
6.
After updating snapshots, re-run the same tests WITHOUT
`--update-snapshots`
to verify they pass consistently:
```
npm run e2e e2e-tests/<testFilename>.spec.ts
```
If any test fails on this verification run, inform the user that the snapshots may be flaky and stop.
7.
Show the user which snapshots were updated using
`git diff`
on the snapshot files.
8.
Review the snapshot changes to ensure they look reasonable and are consistent with the PR's purpose. Consider:
-
Do the changes align with what the PR is trying to accomplish?
-
Are there any unexpected or suspicious changes?
9.
If the snapshots look reasonable, commit and push the changes:
```
git add e2e-tests/snapshots/
git commit -m "Update E2E snapshots"
...
...
.claude/commands/pr-fix.md
浏览文件 @
71812e65
...
...
@@ -9,17 +9,20 @@ Address review comments and failing checks on a GitHub Pull Request.
## Instructions
1.
**Determine the PR to work on:**
-
If
`$ARGUMENTS`
contains a PR number or URL, use that
-
Otherwise, get the current branch's PR using
`gh pr view --json number,url,title,body --jq '.'`
-
If no PR is found, inform the user and stop
2.
**Fetch all PR review comments:**
```
gh pr view <PR_NUMBER> --json reviews,comments --jq '.'
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments
```
3.
**Analyze the PR comments and identify actionable items:**
-
Look for code review comments that request changes
-
Look for general review comments with feedback
-
Prioritize comments from reviewers that are:
...
...
@@ -32,37 +35,46 @@ Address review comments and failing checks on a GitHub Pull Request.
-
Nitpicks explicitly marked as optional
4.
**Check for failing CI checks:**
```
gh pr checks <PR_NUMBER>
```
Note which checks are failing, particularly Playwright/E2E tests.
5.
**For each actionable review comment:**
-
Read the relevant file(s) mentioned in the comment
-
Understand the context and the requested change
-
Make the necessary code changes to address the feedback
-
Keep track of what was changed
6.
**If there are failing Playwright/E2E tests:**
-
Check if the failures are snapshot-related by examining the PR comments for Playwright test results
-
If snapshots need updating, run the
`/e2e-rebase`
skill to fix them
-
If the failures are not snapshot-related, investigate and fix the underlying test issues
7.
**After making all changes, verify the fixes:**
-
Run relevant linters:
`npm run lint:fix`
-
Run type checks if TypeScript files were modified:
`npm run typecheck`
-
Run any relevant unit tests for modified code
8.
**Review all changes made:**
```
git diff
git status
```
Ensure the changes are reasonable and address the review feedback appropriately.
9.
**Commit and push the changes:**
-
Stage all modified files
-
Create a commit with a descriptive message summarizing what was addressed:
```
git add -A
git commit -m "Address PR review feedback
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论