mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
docs: update AGENTS pre-commit policy (#2370)
Signed-off-by: 安正超 <anzhengchao@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -42,16 +42,17 @@ If repo-level instructions conflict, follow the nearest file and keep behavior a
|
|||||||
Avoid duplicating long crate lists or command matrices in instruction files.
|
Avoid duplicating long crate lists or command matrices in instruction files.
|
||||||
Reference the source files above instead.
|
Reference the source files above instead.
|
||||||
|
|
||||||
## Mandatory Before Commit
|
## Verification Before PR
|
||||||
|
|
||||||
Run and pass:
|
For code changes, run and pass the following before opening a PR:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make pre-commit
|
make pre-commit
|
||||||
```
|
```
|
||||||
|
|
||||||
If `make` is unavailable, run the equivalent checks defined under `.config/make/`.
|
If `make` is unavailable, run the equivalent checks defined under `.config/make/`.
|
||||||
Do not commit when required checks fail.
|
Documentation-only or instruction-only changes are exempt from the verification commands above (including the `.config/make/` equivalents), though any installed git pre-commit hooks (for example, from `make setup-hooks`) may still run on commit unless explicitly skipped.
|
||||||
|
Do not open a PR with code changes when the required checks fail.
|
||||||
|
|
||||||
## Git and PR Baseline
|
## Git and PR Baseline
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user