Skip to content

Commit 410699a

Browse files
gosirysclaude
andcommitted
feat: unified commit hooks — README changelog
Add collapsible Changelog to README.md. Fix core.hooksPath configuration. Hook scripts use shared ~/.local/share/prysm/hooks/, machine-gated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c1a18a0 commit 410699a

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

.config/hooks/post-commit

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
# post-commit — auto-generate changelog in README.md
3+
# Installed by: prysm-env/prysm-env/shell/hooks/install_hooks.sh
4+
5+
# ── Machine gate ─────────────────────────────────────────────────────
6+
[ "$MACHINE" != "yp3rz" ] && exit 0
7+
8+
# ── Recursion guard ──────────────────────────────────────────────────
9+
[ "$POST_COMMIT_RUNNING" = "1" ] && exit 0
10+
export POST_COMMIT_RUNNING=1
11+
12+
REPO_ROOT="$(git rev-parse --show-toplevel)"
13+
HOOKS_LIB="${HOME}/.local/share/prysm/hooks"
14+
15+
# ── Changelog in README.md ───────────────────────────────────────────
16+
if [ -f "$HOOKS_LIB/update_readme_changelog.sh" ]; then
17+
"$HOOKS_LIB/update_readme_changelog.sh" "$REPO_ROOT" 2>/dev/null || true
18+
fi
19+
20+
# ── Amend to include generated changes ───────────────────────────────
21+
git add "$REPO_ROOT/README.md" 2>/dev/null
22+
if ! git diff --cached --quiet; then
23+
git commit --amend --no-edit --quiet
24+
fi

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,34 @@ Say you have custom dictionaries, payloads, exploits all sitting on private repo
1818

1919

2020
---
21+
22+
<!-- CHANGELOG:START -->
23+
<details>
24+
<summary>Changelog</summary>
25+
26+
| Commit | Description | Files | Changes | Net |
27+
|--------|-------------|:-----:|:-------:|:---:|
28+
| [`b98b91e`](https://github.com/gosirys/hackPanion/commit/b98b91e6aa69474cf54af308e50888bba687d5dd) | feat: unified commit hooks — README changelog | 1 | +24/−0 | 24 |
29+
| [`d3d9021`](https://github.com/gosirys/hackPanion/commit/d3d9021782725cada1f612531e0e7de066e91549) | fix: replace --force-with-lease with plain push, bump checkout to v4 | 1 | +2/−2 | 0 |
30+
| [`20f64ed`](https://github.com/gosirys/hackPanion/commit/20f64ed995a8c3d683ffa3bf3cb457a447a6f6f7) | Auto-commit submodule changes in hackPanion | 6 | +6/−6 | 0 |
31+
| [`661d680`](https://github.com/gosirys/hackPanion/commit/661d680507b70f14a119cce3fcd05885a4711524) | Auto-commit submodule changes in hackPanion | 4 | +4/−4 | 0 |
32+
| [`45bc94f`](https://github.com/gosirys/hackPanion/commit/45bc94f0fc85a73fe6176a95736056603987c82e) | Auto-commit submodule changes in hackPanion | 5 | +5/−5 | 0 |
33+
| [`9c7d7c6`](https://github.com/gosirys/hackPanion/commit/9c7d7c67dc809b93d6a36e184a8d72a682cfb527) | Auto-commit submodule changes in hackPanion | 6 | +6/−6 | 0 |
34+
| [`8f53624`](https://github.com/gosirys/hackPanion/commit/8f536247da91d924f12503dc261397ba0f4fbf4d) | Auto-commit submodule changes in hackPanion | 5 | +5/−5 | 0 |
35+
| [`5f0bb4f`](https://github.com/gosirys/hackPanion/commit/5f0bb4fcf7013be50d75495188fd3724ba627cc1) | chore: update submodule pointers | 6 | +6/−6 | 0 |
36+
| [`87be21f`](https://github.com/gosirys/hackPanion/commit/87be21f203ca578a65647dcdcf065735650f5bba) | Auto-commit submodule changes in hackPanion | 4 | +4/−4 | 0 |
37+
| [`1b89f0e`](https://github.com/gosirys/hackPanion/commit/1b89f0eb46c04a67d5a5bd0d81a16c23391d3b25) | docs: update README for bounty-targets-data submodule swap | 0 | +0/−0 | 0 |
38+
| [`4a24bed`](https://github.com/gosirys/hackPanion/commit/4a24bed3588d026575ed1d7a5a18d6a0633722a9) | feat: replace public-bugbounty-programs with arkadiyt/bounty-targets-data | 3 | +5/−4 | 1 |
39+
| [`5353d65`](https://github.com/gosirys/hackPanion/commit/5353d65e012a1a204a7f1ee17f245adf5def5756) | fix: add public-bugbounty-programs to README submodule status table | 0 | +0/−0 | 0 |
40+
| [`f937a85`](https://github.com/gosirys/hackPanion/commit/f937a850fb6765b711eeac6672aa74f37762eef8) | feat: add projectdiscovery/public-bugbounty-programs as sparse submodule | 3 | +5/−0 | 5 |
41+
| [`51f0de7`](https://github.com/gosirys/hackPanion/commit/51f0de72f678f7a08af80ba08f3e81ea1dbec1fe) | Auto-commit submodule changes in hackPanion | 5 | +5/−5 | 0 |
42+
| [`b2df32f`](https://github.com/gosirys/hackPanion/commit/b2df32f09e30af9f9e6e141609e5a177dd85592b) | Auto-commit submodule changes in hackPanion | 5 | +5/−5 | 0 |
43+
44+
_Auto-generated — last 15 commits._
45+
46+
</details>
47+
<!-- CHANGELOG:END -->
48+
2149
## Usage
2250
### Clone
2351

0 commit comments

Comments
 (0)