You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by bd...@apache.org on 2023/12/15 23:44:00 UTC
(directory-scimple) 01/01: Adds common project git hooks directory
This is an automated email from the ASF dual-hosted git repository.
bdemers pushed a commit to branch git-hooks
in repository https://gitbox.apache.org/repos/asf/directory-scimple.git
commit d4aea605636a581d01f841f7429df30716edaf23
Author: Brian Demers <bd...@apache.org>
AuthorDate: Fri Dec 15 18:43:42 2023 -0500
Adds common project git hooks directory
Use is optional, I've had too many CI failures because I forgot license headers
---
.githooks/pre-push | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/.githooks/pre-push b/.githooks/pre-push
new file mode 100755
index 00000000..acac4dde
--- /dev/null
+++ b/.githooks/pre-push
@@ -0,0 +1,25 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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
+#
+# https://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.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Runs License header checks with Apache Rat
+# ----------------------------------------------------------------------------
+
+./mvnw apache-rat:check