The pre-commit framework is used to ensure consistency . It is configured via .pre-commit-config.yaml to run the checks prior to allowing a git commit to continue.
On MacOSX install the pre-commit package
--- | |
ssh_authorized_keys: | |
- "github:woneill" | |
#hostname: myhost | |
k3os: | |
data_sources: | |
- cdrom | |
modules: | |
- kvm |
bierner.markdown-mermaid | |
castwide.solargraph | |
casualjim.gotemplate | |
CoenraadS.bracket-pair-colorizer | |
DavidAnson.vscode-markdownlint | |
eamodio.gitlens | |
EditorConfig.EditorConfig | |
esbenp.prettier-vscode | |
fabiospampinato.vscode-todo-plus | |
GitHub.vscode-pull-request-github |
To set up: | |
Create the directory ~/.git-templates/hooks and save the above content in a file named prepare-commit-msg in that directory | |
Run chmod a+x ~/.git-templates/hooks/prepare-commit-msg | |
Run git config --global init.templatedir '~/.git-templates' | |
In any repos you already have on your machine, run git init to apply the changes. Newly cloned repos won't need this step. | |
Once this has been set up, running a command like git commit -m "This is a test message" on a branch such as ABC-123 will produce a final commit message of [ABC-123] This is a test message automatically. |
The pre-commit framework is used to ensure consistency . It is configured via .pre-commit-config.yaml to run the checks prior to allowing a git commit to continue.
On MacOSX install the pre-commit package
KIND_VERSION := 0.5.1 | |
KUBECTL_VERSION := 1.16.1 | |
HELM_VERSION := 2.14.3 | |
UNAME := $(shell uname | tr '[:upper:]' '[:lower:]') | |
WAIT := 200s | |
BIN_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))bin | |
TMP_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))tmp | |
KIND := $(BIN_PATH)/kind | |
KUBECTL := $(BIN_PATH)/kubectl | |
HELM := $(BIN_PATH)/helm |
data "external" "local_tools" { | |
program = ["sh", "-c", "${data.template_file.local_tools.rendered}"] | |
} | |
data "template_file" "local_tools" { | |
template = <<EOF | |
PATH="$PATH" | |
LOCAL_TOOLS_PATH="$(mktemp -d)" | |
platform="$(uname -s)" |
GIT | |
remote: https://github.com/inspec/inspec | |
revision: 7bbeac3ea9ae2d2dcf9c685e6a39f2ee859ddbe9 | |
tag: v2.2.50 | |
specs: | |
inspec (2.2.50) | |
addressable (~> 2.4) | |
faraday (>= 0.9.0) | |
faraday_middleware (~> 0.12.2) | |
hashie (~> 3.4) |
FROM amazonlinux:1 | |
MAINTAINER William O'Neill | |
# The Amazon Linux Docker image doesn't contain all of the packages that the EC2 | |
# instance starts with. This script installs the missing packages only when | |
# building a docker image | |
# List was generated by comparing the output of | |
# docker run -it --rm amazonlinux:latest rpm --queryformat "%{NAME}\n" -qa | sort | |
# and |
I hereby claim:
To claim this, I am signing this object: