git-hook.yaml 1.1 KB

123456789101112131415161718
  1. name: git-hook
  2. repo: https://github.com/aean0x/hermes-git-hook
  3. sha: a7303c89b429704a31e2df4212ec4f08ee76692a
  4. description: "Auto fetch/pull before reads, and commit + push only the files each turn changed, for every git worktree Hermes touches. Disclosure — after each turn it commits and pushes (push on by default; GIT_HOOK_PUSH=0 keeps commits local) the changed files of git worktrees under GIT_HOOK_ROOTS (default PROJECTS_ROOT, \"*\" for every repo), pushing to origin HEAD when no upstream is set; it pulls --ff-only before reads. A branch whose direct push the remote refuses on policy grounds (branch protection, a PR-required ruleset) is never committed to again: the hook drops its own unpushed commit, leaves the edit staged and dirty, and reports it once."
  5. maintainer: aean0x
  6. tier: community
  7. category: automation
  8. docs_url: https://github.com/aean0x/hermes-git-hook#readme
  9. version: "0.5.1"
  10. capabilities:
  11. provides_tools: []
  12. provides_hooks:
  13. - pre_tool_call
  14. - post_tool_call
  15. - post_llm_call
  16. - on_session_end
  17. provides_middleware: []
  18. requires_env: []