feat: git hooks that run tests and send commits and pulls to keybars Pro #1

Open
jwarykowski wants to merge 2 commits from feat/hooks into main
Owner

pre-push runs git config keybars.test through keybars-pro run (build.running, then passed or failed, which the CI pack plays) and stops the push on a failure unless keybars.block is false. post-commit and post-merge send git.committed and git.merged with the repository and branch; a rebase is quiet.

bin/keybars-githooks install puts wrappers in .git/hooks and keeps an existing hook as <hook>.local, run first; install --global uses core.hooksPath and still runs each repository's own hooks. uninstall puts things back. rules adds two starter rules.

Tests drive real repositories (bare origin, clones, push, pull, rebase) against a fake keybars-pro.

pre-push runs `git config keybars.test` through `keybars-pro run` (build.running, then passed or failed, which the CI pack plays) and stops the push on a failure unless `keybars.block` is false. post-commit and post-merge send `git.committed` and `git.merged` with the repository and branch; a rebase is quiet. `bin/keybars-githooks install` puts wrappers in .git/hooks and keeps an existing hook as `<hook>.local`, run first; `install --global` uses core.hooksPath and still runs each repository's own hooks. `uninstall` puts things back. `rules` adds two starter rules. Tests drive real repositories (bare origin, clones, push, pull, rebase) against a fake `keybars-pro`.
feat: git hooks that run tests and send commits and pulls to keybars Pro
All checks were successful
CI / check (pull_request) Successful in 22s
b946d28a48
pre-push runs keybars.test through keybars-pro run, so the CI pack's build
events play, and stops the push when it fails. post-commit and post-merge
send git.committed and git.merged. Installed per repository or with
--global; hooks that were there keep running first.
ci: run in the job image, with nothing from GitHub
All checks were successful
CI / check (pull_request) Successful in 8s
f27fca4a26
All checks were successful
CI / check (pull_request) Successful in 8s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/hooks:feat/hooks
git switch feat/hooks

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feat/hooks
git switch feat/hooks
git rebase main
git switch main
git merge --ff-only feat/hooks
git switch feat/hooks
git rebase main
git switch main
git merge --no-ff feat/hooks
git switch main
git merge --squash feat/hooks
git switch main
git merge --ff-only feat/hooks
git switch main
git merge feat/hooks
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jwarykowski/keybars-githooks!1
No description provided.