mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
d07fcec626
Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com> Signed-off-by: Ramon Roche <mrpollo@gmail.com> Co-authored-by: Ramon Roche <mrpollo@gmail.com>
1.3 KiB
1.3 KiB
name, description, argument-hint, allowed-tools
| name | description | argument-hint | allowed-tools |
|---|---|---|---|
| commit | Create a conventional commit for PX4 changes | [optional: description of changes] | Bash, Read, Glob, Grep |
PX4 Conventional Commit
Create a git commit in conventional-commit format: type(scope): description.
- type:
feat,fix,refactor,perf,docs,style,test,build,ci,chore,revert. Append!before:for breaking changes. - scope: the module/driver/area affected — derive from the directory
path of the changed files (
src/modules/ekf2/→ekf2,src/drivers/imu/invensense/icm42688p/→drivers/icm42688p,.github/workflows/→ci). - description: imperative, concise, ≥5 chars.
NEVER add Co-Authored-By Claude Code. No Claude attribution.
Steps
- Check branch (
git branch --show-current). If onmain, create a feature branch<username>/<description>where<username>comes fromgh api user --jq .login. - Run
git statusandgit diff --staged. If nothing staged, ask what to stage. - Run
make format(or./Tools/astyle/fix_code_style.sh <file>) on changed C/C++ files. - Body (if needed): explain why, not what.
- Check GPG signing:
git config --get user.signingkey. If set,git commit -S -s; elsegit commit -s.
If the user provided arguments, use them as context: $ARGUMENTS