create-pr by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill create-pr遵循 Sentry 的工程实践创建拉取请求。
要求:已认证且可用的 GitHub CLI (gh)。
# 检查当前分支和状态
git status
git log main..HEAD --oneline
确保:
审查将包含在 PR 中的内容:
# 查看将包含在 PR 中的所有提交
git log main..HEAD
# 查看完整的差异
git diff main...HEAD
在编写描述之前,理解所有更改的范围和目的。
遵循以下结构:
<简要描述 PR 做了什么>
<进行这些更改的原因 - 动机>
<考虑过的替代方案(如果有)>
<评审者需要的任何额外上下文>
请勿包含:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
gh pr create --title "<type>(<scope>): <description>" --body "$(cat <<'EOF'
<description body here>
EOF
)"
标题格式遵循提交约定:
feat(scope): 添加新功能fix(scope): 修复错误ref: 重构某物# 请求特定人员进行评审
gh pr edit --add-reviewer username1,username2
# 或请求团队评审
gh pr edit --add-reviewer @getsentry/team-name
限制在 1-3 名评审者以保持明确的职责归属。
为告警通知添加 Slack 线程回复
当告警被更新或解决时,我们现在会回复原始的 Slack 线程,而不是创建新消息。这可以将相关通知分组,并减少频道噪音。
之前考虑过编辑原始消息,但线程方式能更好地保留事件时间线,并且在原始消息早于 Slack 编辑窗口时也能工作。
引用 SENTRY-1234
处理用户 API 端点中的空响应
用户端点可能为软删除的账户返回 null,导致访问用户属性时仪表板崩溃。此更改添加了空值检查并返回正确的 404 响应。
在调查 SENTRY-5678 时发现。
修复 SENTRY-5678
将验证逻辑提取到共享模块
将告警、issue 和项目端点中的重复验证代码移动到共享的验证器类中。无行为变更。
这为在 SENTRY-9999 中添加新的验证规则做好了准备,无需在各个端点间重复逻辑。
在 PR 正文中引用 issue:
| 语法 | 效果 |
|---|---|
Fixes #1234 | 合并时关闭 GitHub issue |
Fixes SENTRY-1234 | 关闭 Sentry issue |
Refs GH-1234 | 链接而不关闭 |
Refs LINEAR-ABC-123 | 链接 Linear issue |
每周安装量
144
仓库
GitHub 星标数
22.6K
首次出现
2026年1月21日
安全审计
安装于
claude-code119
opencode112
gemini-cli112
cursor109
codex98
antigravity92
Create pull requests following Sentry's engineering practices.
Requires : GitHub CLI (gh) authenticated and available.
# Check current branch and status
git status
git log main..HEAD --oneline
Ensure:
Review what will be included in the PR:
# See all commits that will be in the PR
git log main..HEAD
# See the full diff
git diff main...HEAD
Understand the scope and purpose of all changes before writing the description.
Follow this structure:
<brief description of what the PR does>
<why these changes are being made - the motivation>
<alternative approaches considered, if any>
<any additional context reviewers need>
Do NOT include:
Do include:
gh pr create --title "<type>(<scope>): <description>" --body "$(cat <<'EOF'
<description body here>
EOF
)"
Title format follows commit conventions:
feat(scope): Add new featurefix(scope): Fix the bugref: Refactor something# Request review from specific people
gh pr edit --add-reviewer username1,username2
# Or request from a team
gh pr edit --add-reviewer @getsentry/team-name
Limit to 1-3 reviewers to maintain clear ownership.
Add Slack thread replies for alert notifications
When an alert is updated or resolved, we now post a reply to the original
Slack thread instead of creating a new message. This keeps related
notifications grouped and reduces channel noise.
Previously considered posting edits to the original message, but threading
better preserves the timeline of events and works when the original message
is older than Slack's edit window.
Refs SENTRY-1234
Handle null response in user API endpoint
The user endpoint could return null for soft-deleted accounts, causing
dashboard crashes when accessing user properties. This adds a null check
and returns a proper 404 response.
Found while investigating SENTRY-5678.
Fixes SENTRY-5678
Extract validation logic to shared module
Moves duplicate validation code from the alerts, issues, and projects
endpoints into a shared validator class. No behavior change.
This prepares for adding new validation rules in SENTRY-9999 without
duplicating logic across endpoints.
Reference issues in the PR body:
| Syntax | Effect |
|---|---|
Fixes #1234 | Closes GitHub issue on merge |
Fixes SENTRY-1234 | Closes Sentry issue |
Refs GH-1234 | Links without closing |
Refs LINEAR-ABC-123 | Links Linear issue |
Weekly Installs
144
Repository
GitHub Stars
22.6K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code119
opencode112
gemini-cli112
cursor109
codex98
antigravity92
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
152,900 周安装
代码测试覆盖率审计工具 - 识别关键业务逻辑缺失测试,提升代码质量与安全性
164 周安装
NeuralMemory记忆演化专家:AI智能体记忆优化、性能调优与知识库管理工具
164 周安装
飞书文件图片发送Skill:独立脚本绕过OpenClaw自动回复,支持文本/图片/视频/语音/文件
164 周安装
App Store Connect与RevenueCat目录同步工具 - 自动化产品映射与审计
164 周安装
Windows 上安装 BusyBox 教程:在 Windows 中使用 Unix 命令行工具
164 周安装
C语言专业开发技能:内存管理、系统编程与性能优化最佳实践指南
164 周安装