From f13fd78ffcc74a443189eb1dcf98b4e718db02d2 Mon Sep 17 00:00:00 2001 From: Rob Nester Date: Fri, 22 Sep 2023 12:53:07 -0400 Subject: [PATCH] Add .pre-commit-config.yaml file This commit adds a .pre-commit-config.yaml file which is used to implement commit hook scripts. At this time the only hook specified is a commit-msg hook that calls a script which validates that the commit message contains a reference to an issue or ticket identifier. ref: HACBS-2653 --- .pre-commit-config.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..e034c1f14 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +# Copyright The Enterprise Contract Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +--- +repos: + - repo: https://github.com/enterprise-contract/hooks + rev: v0.0.2 + hooks: + - id: check-commit-message