Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Mar 1, 2024
1 parent eddb24c commit 7fa95d2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .hookz.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.4.3
version: 2.4.4
sources:
- source: github.com/devops-kung-fu/hinge@latest
- source: github.com/kisielk/errcheck@latest
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Git hooks are a great way to run supplemental commands as you interact with git.

```Hookz``` may return one of three different status codes as it executes the action pipeline:

| Code | Description |
| ---- | ------------------------------------------------------------ |
| PASS | The action has successfully completed |
| Code | Description |
| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PASS | The action has successfully completed |
| WARN | An executable defined in the ```.hookz.yaml``` file wasn't found on the local system. In this case, the action is ignored and no attempt is made to run it. Flow will continue without an exit code of PASS or FAIL. |
| FAIL | The action has failed. Execution stops. Consider this like a build break in a CI/CD pipeline that executes on a pull request. Errors must be addressed before the code is allowed to be committed. |
| FAIL | The action has failed. Execution stops. Consider this like a build break in a CI/CD pipeline that executes on a pull request. Errors must be addressed before the code is allowed to be committed. |

## Installation

Expand Down Expand Up @@ -66,7 +66,7 @@ Hookz uses a configuration file to generate hooks in your local git repository.
### Example Configuration

``` yaml
version: 2.4.3
version: 2.4.4
tools:
- tool: github.com/devops-kung-fu/lucha@latest
- tool: github.com/devops-kung-fu/hinge@latest
Expand Down Expand Up @@ -113,7 +113,7 @@ Quite often, downloadable binaries exist for multiple platforms when downloading
You can use the following to retrieve the right architecture for [hinge](https://github.com/devops-kung-fu/hinge):

``` yaml
version: 2.4.3
version: 2.4.4
hooks:
- type: pre-commit
actions:
Expand All @@ -128,12 +128,12 @@ If you are running ```Hookz``` on a Mac, this will bring down the ```hinge-0.1.0

You must have at least an URL, exec, or script defined in your actions. If you select one, then you shouldn't define the others in the YAML. Don't worry if you do, we have you covered and explain what happens in the following table.

|Attribute|Notes|
|---|---|
|```URL```|If this exists, then exec and script are ignored. The URL must be a link to an executable binary| If you are developing in go then use the ```sources``` node in your ```.hookz.yaml``` to define sources to be installed.
|```exec```|If this exists then URL and script are ignored|
|```script```|If this exists then URL, exec, and args are ignored|
|```args```|Optional in all cases|
| Attribute | Notes |
| ------------ | ------------------------------------------------------------------------------------------------ |
| ```URL``` | If this exists, then exec and script are ignored. The URL must be a link to an executable binary | If you are developing in go then use the ```sources``` node in your ```.hookz.yaml``` to define sources to be installed. |
| ```exec``` | If this exists then URL and script are ignored |
| ```script``` | If this exists then URL, exec, and args are ignored |
| ```args``` | Optional in all cases |

### Inline scripting

Expand Down Expand Up @@ -253,7 +253,7 @@ Check out the collection [here](tackle/README.md).
Assumes `terraform` is in your `PATH` for `fmt`.

```yaml
version: 2.4.3
version: 2.4.4
hooks:
- type: pre-commit
actions:
Expand All @@ -276,7 +276,7 @@ hooks:
### NPM

```yaml
version: 2.4.3
version: 2.4.4
hooks:
- type: pre-commit
actions:
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

var (
version = "2.4.3"
version = "2.4.4"
//Afs stores a global OS Filesystem that is used throughout hookz
Afs = &afero.Afero{Fs: afero.NewOsFs()}
debug bool
Expand Down
2 changes: 1 addition & 1 deletion lib/hookwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func genTemplate(hookType string) (t *template.Template) {
echo -e "\n$(tput bold)Hookz$(tput sgr0)"
echo -e "DKFM - DevOps Kung Fu Mafia"
echo -e "https://github.com/devops-kung-fu/hookz"
echo -e "Version: 2.4.3"
echo -e "Version: 2.4.4"
echo
shasum=$(cat .git/hooks/hookz.shasum)
Expand Down

0 comments on commit 7fa95d2

Please sign in to comment.