github / github/gh-stack

Pre-commit hooks can cause many of the commands to fail

Offen
#135 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature request topic: cli - push
Vorherrschende Sprache
Go
Sterne
1.5k
Forks
70
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
7

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
git, github, go
Bereich
cli, developer-experience
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
65/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.