Pre-commit hooks can cause many of the commands to fail
- Langage dominant
- Go
- Étoiles
- 1.5k
- Forks
- 70
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 7
Description
It would be nice if the commands that push supported a `--no-verify` flag. I've had to implement a local function like this to get around the pre-commit hooks that sometimes fail during push after a rebase.
```shell
# git stack --push without running hooks.
gs-push-quiet() {
git config core.hooksPath /dev/null
gh stack push
git config --unset core.hooksPath
}
```
Not all my colleagues use pre-commit, so sometimes a random change somewhere in the mono repo will block a push without `--no-verify`, even though all my commits are clean.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start at the gh stack push command and inspect how its command-line flags are defined and passed to Git. Check the other commands that push, then verify that --no-verify allows pushes to bypass pre-commit hooks without changing the normal behavior.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, github, go
- Domaine
- cli, developer-experience
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 65/100