mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ci(claude): link to CONTRIBUTING.md and add format step
Reference CONTRIBUTING.md from commit and PR skills so conventions stay in sync. Add make format / astyle step to commit skill.
This commit is contained in:
parent
2ea2bfcc15
commit
8aa02078e9
@ -12,6 +12,8 @@ Create a git commit: `type(scope): description`
|
||||
|
||||
**NEVER add Co-Authored-By lines. No Claude attribution in commits.**
|
||||
|
||||
Follow [CONTRIBUTING.md](../../CONTRIBUTING.md) for full project conventions.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Check branch (`git branch --show-current`). If on `main`, create a feature branch. Use `<username>/<description>` format where `<username>` comes from `gh api user --jq .login`. If unavailable, just use `<description>`.
|
||||
@ -21,7 +23,8 @@ Create a git commit: `type(scope): description`
|
||||
5. Write concise imperative description, lowercase, no period, under 72 chars.
|
||||
6. Breaking changes: `type(scope)!: description`
|
||||
7. Body (if needed): explain **why**, not what.
|
||||
8. Stage and commit. No `Co-Authored-By`.
|
||||
8. Run `make format` or `./Tools/astyle/fix_code_style.sh <file>` on changed C/C++ files before committing.
|
||||
9. Stage and commit. No `Co-Authored-By`.
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@ -10,6 +10,8 @@ allowed-tools: Bash, Read, Glob, Grep
|
||||
|
||||
**No Claude attribution anywhere (no Co-Authored-By, no "Generated with Claude").**
|
||||
|
||||
Follow [CONTRIBUTING.md](../../CONTRIBUTING.md) for full project conventions.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Check branch. If on `main`, create a feature branch. Use `<username>/<description>` format where `<username>` comes from `gh api user --jq .login`. If unavailable, just use `<description>`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user