mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Check for user.signingkey and use -S flag when available. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
1.4 KiB
1.4 KiB
name, description, disable-model-invocation, argument-hint, allowed-tools
| name | description | disable-model-invocation | argument-hint | allowed-tools |
|---|---|---|---|---|
| commit | Create a conventional commit for PX4 changes | true | [optional: description of changes] | Bash, Read, Glob, Grep |
PX4 Conventional Commit
Create a git commit: type(scope): description
NEVER add Co-Authored-By lines. No Claude attribution in commits.
Follow CONTRIBUTING.md for full project conventions.
Steps
- Read CONTRIBUTING.md for commit message format, types, scopes, and conventions.
- Check branch (
git branch --show-current). If onmain, create a feature branch. Use<username>/<description>format where<username>comes fromgh api user --jq .login. If unavailable, just use<description>. - Run
git statusandgit diff --staged. If nothing staged, ask what to stage. - Follow the commit message convention from CONTRIBUTING.md: pick the correct type and scope, write a concise imperative description.
- Body (if needed): explain why, not what.
- Run
make formator./Tools/astyle/fix_code_style.sh <file>on changed C/C++ files before committing. - Check if GPG signing is available:
git config --get user.signingkey. If set, usegit commit -S -s. Otherwise, usegit commit -s. - Stage and commit. No
Co-Authored-By.
If the user provided arguments, use them as context: $ARGUMENTS