adding git hooks to catch pipeline issues before pushing
Some checks failed
CI / Rustfmt (push) Successful in 51s
CI / Clippy (push) Successful in 2m8s
CI / Web Blocking Checks (push) Successful in 47s
CI / Security Blocking Checks (push) Successful in 9s
CI / Cargo Audit & Deny (push) Successful in 2m3s
CI / Web Advisory Checks (push) Successful in 25s
Publish Images And Chart / Resolve Publish Metadata (push) Successful in 1s
Publish Images And Chart / Publish init-packs (push) Failing after 11s
Publish Images And Chart / Publish init-user (push) Failing after 11s
Publish Images And Chart / Publish migrations (push) Failing after 11s
Publish Images And Chart / Publish sensor (push) Failing after 6s
Publish Images And Chart / Publish web (push) Failing after 9s
Publish Images And Chart / Publish worker (push) Failing after 7s
Publish Images And Chart / Publish api (push) Failing after 7s
Publish Images And Chart / Publish executor (push) Failing after 10s
Publish Images And Chart / Publish notifier (push) Failing after 10s
Publish Images And Chart / Publish Helm Chart (push) Has been skipped
CI / Security Advisory Checks (push) Successful in 6m20s
CI / Tests (push) Successful in 1h35m45s
Some checks failed
CI / Rustfmt (push) Successful in 51s
CI / Clippy (push) Successful in 2m8s
CI / Web Blocking Checks (push) Successful in 47s
CI / Security Blocking Checks (push) Successful in 9s
CI / Cargo Audit & Deny (push) Successful in 2m3s
CI / Web Advisory Checks (push) Successful in 25s
Publish Images And Chart / Resolve Publish Metadata (push) Successful in 1s
Publish Images And Chart / Publish init-packs (push) Failing after 11s
Publish Images And Chart / Publish init-user (push) Failing after 11s
Publish Images And Chart / Publish migrations (push) Failing after 11s
Publish Images And Chart / Publish sensor (push) Failing after 6s
Publish Images And Chart / Publish web (push) Failing after 9s
Publish Images And Chart / Publish worker (push) Failing after 7s
Publish Images And Chart / Publish api (push) Failing after 7s
Publish Images And Chart / Publish executor (push) Failing after 10s
Publish Images And Chart / Publish notifier (push) Failing after 10s
Publish Images And Chart / Publish Helm Chart (push) Has been skipped
CI / Security Advisory Checks (push) Successful in 6m20s
CI / Tests (push) Successful in 1h35m45s
This commit is contained in:
@@ -153,18 +153,25 @@ Adjust `max_files` to show more/fewer files before truncation:
|
||||
|
||||
### Pre-commit Hook (Optional)
|
||||
|
||||
Add to `.git/hooks/pre-commit`:
|
||||
The repository now includes a versioned hook at `.githooks/pre-commit`.
|
||||
|
||||
Install it once per clone:
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
# Regenerate AGENTS.md if documentation changed
|
||||
if git diff --cached --name-only | grep -qE '^(docs|scripts|work-summary)/'; then
|
||||
echo "Regenerating AGENTS.md..."
|
||||
make generate-agents-index
|
||||
git add AGENTS.md
|
||||
fi
|
||||
make install-git-hooks
|
||||
```
|
||||
|
||||
The hook currently runs:
|
||||
|
||||
```bash
|
||||
make pre-commit
|
||||
```
|
||||
|
||||
That checks:
|
||||
|
||||
- `cargo fmt --all -- --check`
|
||||
- `cargo deny check`
|
||||
|
||||
### CI/CD Integration
|
||||
|
||||
Add to your CI pipeline to ensure the index stays current:
|
||||
@@ -208,4 +215,4 @@ attune/
|
||||
- [Vercel Blog: AGENTS.md outperforms .md skills](https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals)
|
||||
- Template: `AGENTS.md.template` (edit this)
|
||||
- Script: `scripts/generate_agents_md_index.py`
|
||||
- Output: `AGENTS.md` (generated, do not edit)
|
||||
- Output: `AGENTS.md` (generated, do not edit)
|
||||
|
||||
Reference in New Issue
Block a user