git
Two tasks to sign commits and use commitizen without pre-requisites.
git template details
- Status: stable
- File: https://gitlab.com/op_so/task/task-templates/-/raw/main/Taskfile.d/git.yml
- Home: https://gitlab.com/op_so/task/task-templates
- License: MIT
List of tasks
Tasks | Description |
---|---|
git:commitizen |
Signed commit with Commitizen. Arguments: KEY_PATH|K=key_full_path [PULL|P=n|N] (*) |
git:signed-commit |
Signed commit. Arguments: KEY_PATH|K=key_full_path MESSAGE|M=message [OPTION|O="--amend"] [PULL|P=n|N] (*) |
git:signed-commit-amend |
Amend a previous signed commit. Arguments: KEY_PATH|K=key_full_path [PULL|P=n|N] (*) |
global variables
Variables | Description | Default value |
---|---|---|
DOCKER_EXEC_OPTS |
Optional Docker options for docker exec command | - |
DOCKER_RUN_OPTS |
Optional Docker options for docker run command | - |
IMAGE_DEFAULT |
Default image | jfxs/commitizen-semantic-release:latest |
git:commitizen
Signed commit with Commitizen. Arguments: KEY_PATH|K=key_full_path [PULL|P=n|N] (*)
[GIT] Signed commit with Commitizen.
Usage: task git:commit KEY_PATH|K=<key_full_path> [PULL|P=<n|N>]
Arguments | Description |
---|---|
KEY_PATH | K |
Absolute path to the private key file (required) |
PULL | P |
Pull docker image (optional, by default yes) |
Prerequisites:
- Run command: git config user.signingkey XXXX
- Run command: git config commit.gpgsign true
Requirements:
- docker
git:signed-commit
Signed commit. Arguments: KEY_PATH|K=key_full_path MESSAGE|M=message [OPTION|O="--amend"] [PULL|P=n|N] (*)
[GIT] Signed commit.
Usage: task git:signed-commit KEY_PATH|K=<key_full_path> MESSAGE|M=<message> [OPTION|O=\"<options>\"] [PULL|P=<n|N>]
Arguments | Description |
---|---|
KEY_PATH | K |
Absolute path to the private key file (required) |
MESSAGE | M |
Commit message (required) |
OPTIONS | O |
Git options (optional, by default -S --signoff) |
PULL | P |
Pull docker image (optional, by default yes) |
Prerequisites:
- Run command: git config user.name "your name"
- Run command: git config user.email "your_email@example.com"
- Run command: git config user.signingkey XXXX
- Run command: git config commit.gpgsign true
Requirements:
- docker
git:signed-commit-amend
Amend a previous signed commit. Arguments: KEY_PATH|K=key_full_path [PULL|P=n|N] (*)
Arguments | Description |
---|---|
KEY_PATH | K |
Absolute path to the private key file (required) |
PULL | P |
Pull docker image (optional, by default yes) |
Requirements:
- docker