toplenboren / toplenboren/simple-git-hooks

Use simple-git-hooks as api?

Open
#108 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
61
PR merge metrics
No merged PRs in 30d

Description

Hello

is it possible to use the simple-git-hooks as a library/api?

I would like to detect and react to branch changes on a watch mode build script (using esbuild and typechecking).

In case of branch changes, sometimes incremental builds and typechecks do not work reliably, so I would restart those. But for this i need to detect git hooks as an event/callback.

Thx!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points; start by reviewing the package's current interface and Git hook handling. Determine whether branch-change callbacks can support the esbuild and typechecking watch-mode use case, with a clear API decision and documented behavior as the completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.