Skill站外收录 @skilllib/skill-2014279402706644993
dart-contribute
规范 DART 项目的代码贡献流程,涵盖分支创建、提交前检查、PR 提交与模板填写、里程碑设置、关键缺陷的双分支修复机制,以及变更日志维护和代码审查要求。
开发运维 AI 技能
Skills.MD
# DART Contribution Workflow
Load this skill when contributing code to DART.
## Full Documentation
For complete guide: `docs/onboarding/contributing.md`
For code style: `docs/onboarding/code-style.md`
## Branch Naming
- `feature/<topic>` - New features
- `fix/<topic>` - Bug fixes
- `refactor/<topic>` - Refactoring
- `docs/<topic>` - Documentation
## PR Workflow
```bash
# Create branch
git checkout -b <type>/<topic> origin/main
# Make changes, then
pixi run lint
pixi run test-all
# Push and create PR
git push -u origin HEAD
gh pr create --draft --milestone "DART 7.0"
```
Rule of thumb: run `pixi run lint` before committing so auto-fixes are included.
Use `.github/PULL_REQUEST_TEMPLATE.md` and ensure the PR description covers Summary, Motivation, Changes, Testing, Breaking Changes, and Related Issues.
## Milestones (Required)
Always set a milestone when creating PRs:
| Target Branch | Milestone |
| -------------- | ----------------------------- |
| `main` | `DART 7.0` (or next major) |
| `release-6.16` | `DART 6.16.x` (current patch) |
```bash
# Set milestone on existing PR
gh pr edit <PR#> --milestone "DART 7.0"
# List available milestones
gh api repos/dartsim/dart/milestones --jq '.[] | .title'
```
## CRITICAL: Bug Fix Dual-PR
Bug fixes require PRs to **BOTH** branches:
1. **`release-6.16`** - Current release
2. **`main`** - Next release
Steps:
1. Fix on `release-6.16` first
2. Cherry-pick to `main`
3. Create separate PRs for each
## CHANGELOG (After PR Created)
After creating a PR, check if CHANGELOG.md needs updating:
| Change Type | Update CHANGELOG? |
| -------------------------------- | ------------------------------------ |
| Bug fixes | ✅ Yes |
| New features | ✅ Yes |
| Breaking changes | ✅ Yes (in Breaking Changes section) |
| Documentation improvements | ✅ Yes (in Tooling and Docs) |
| CI/tooling changes | ✅ Yes (in Tooling and Docs) |
| Refactoring (no behavior change) | ⚠️ Maybe (if significant) |
| Dependency bumps | ⚠️ Maybe (if user-facing) |
| Typo fixes | ❌ No |
Format: `- Description. ([#PR](https://github.com/dartsim/dart/pull/PR))`
```bash
# Example entry in CHANGELOG.md under appropriate section:
- Added AI-native documentation with AGENTS.md and module-specific guides. ([#2446](https://github.com/dartsim/dart/pull/2446))
```
## Code Review
- Address all feedback
- Keep changes minimal
- Update tests if behavior changed
- Run full validation before pushing fixes
## CI Loop
```bash
gh run watch <RUN_ID> --interval 30
```
Fix failures until green.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「dart-contribute」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次