goosefs-sdk 0.1.9

Goosefs Rust gRPC Client - Direct gRPC client for Goosefs Master/Worker
Documentation
#!/bin/sh
# Copyright (C) 2026 Tencent. All rights reserved.
#
# 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.
#
# Soft, advisory pre-commit hook for the GooseFS Rust SDK.
#
# It reminds authors to use the "[area] Summary" PR-title convention so that,
# on squash-merge, GitHub appends the PR number and produces a commit that
# links back to the PR (the same behavior as Apache Fluss). The local branch
# name is used only as a *hint*; the authoritative check runs in CI on the PR
# title. This hook never blocks a commit.

root="$(git rev-parse --show-toplevel)"

# Detect staged commit-message-style prefixes inside the diff is out of scope
# for a pre-commit hook (it does not know the final title yet). We simply
# point the author at the convention. Keep this hook non-fatal.
cat >&2 <<'EOF'

[info] Reminder: please give your pull request the "[area] Summary" title
       convention (e.g. "[sdk] Reduce log verbosity"). When the PR is
       squash-merged, GitHub appends the PR number, producing a commit that
       links back to the PR, e.g. "[sdk] Reduce log verbosity (#3700)".
       (This message is advisory and does not block the commit.)

EOF

exit 0