chore: import upstream snapshot with attribution
MCP Bash Server CI / Test MCP Bash Server (dev) (push) Has been cancelled
MCP Bash Server CI / Test MCP Bash Server (release) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:11:39 +08:00
commit c8cebdfeee
4654 changed files with 626756 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
{
"directories": [
"./home/blog",
"./home/docs",
"./home/i18n/zh-cn/docusaurus-plugin-content-blog",
"./home/i18n/zh-cn/docusaurus-plugin-content-docs/current"
]
}
+65
View File
@@ -0,0 +1,65 @@
# 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
#
# 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.
import os
import re
import sys
import json
def read_config(file_path):
try:
with open(file_path, 'r') as file:
config = json.load(file)
return config.get("directories", [])
except Exception as e:
print(f"Error reading configuration file: {e}")
sys.exit(1)
def find_invalid_files(directories):
invalid_files = []
pattern = re.compile(r'^[_a-z0-9-]+(\.[_a-z0-9-]+)*$')
for target_dir in directories:
print(f"Checking directory: {target_dir}")
for root, _, files in os.walk(target_dir):
for filename in files:
if not pattern.match(filename):
invalid_files.append(os.path.join(root, filename))
if invalid_files:
print("\nError: The following files have invalid names (file names should only contain lowercase letters, numbers, and hyphens):")
for invalid_file in invalid_files:
print(invalid_file)
sys.exit(1)
else:
print("All file names are valid.")
if __name__ == "__main__":
# usage: python check_filenames.py config.json
if len(sys.argv) != 2:
print("Usage: python xxx_script.py config.json")
sys.exit(1)
config_file = sys.argv[1]
directories = read_config(config_file)
if not directories:
print("\nNo directories found in configuration file.")
sys.exit(1)
find_invalid_files(directories)
+34
View File
@@ -0,0 +1,34 @@
./home/versioned_docs/version-v1.5.x/community/how-to-release.md
./home/versioned_docs/version-v1.5.x/help/sqlserver.md
./home/docs/community/how-to-release.md
./home/blog/2022-06-01-hertzbeat-v1.0.md
./home/blog/2023-12-11-hertzbeat-v1.4.3.md
./home/blog/2023-11-12-hertzbeat-v1.4.2.md
./home/blog/2024-01-18-hertzbeat-v1.4.4.md
./home/docs/help/sqlserver.md
./home/docs/others/resource.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/sqlserver.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-11-12-hertzbeat-v1.4.2.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-01-hertzbeat-v1.0.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-12-11-hertzbeat-v1.4.3.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-18-hertzbeat-v1.4.4.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-release.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/introduce.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/sqlserver.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/tdengine-init.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/tdengine-init.md
./home/versioned_docs/version-v1.5.x/introduce.md
./home/versioned_docs/version-v1.5.x/community/contact.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contact.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contact.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/introduce.md
./home/docs/introduce.md
./home/docs/community/contact.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-15-hertzbeat-v1.6.0.md
./home/blog/2024-06-15-hertzbeat-v1.6.0.md
./home/docs/community/how-to-release.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-release.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/community/how-to-release.md
./home/docs/help/dolphinscheduler.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dolphinscheduler.md
@@ -0,0 +1,65 @@
# 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
#
# 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.
name: setup-deps
description: Install host system dependencies (with mvnd)
runs:
using: composite
steps:
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: 25
cache: maven
- name: Validate mvnd runner support
shell: bash
run: |
if [ "${RUNNER_OS}" != "Linux" ] || [ "${RUNNER_ARCH}" != "X64" ]; then
echo "setup-deps currently supports mvnd only on Linux/X64 runners; got ${RUNNER_OS}/${RUNNER_ARCH}" >&2
exit 1
fi
- name: Cache mvnd
id: mvnd-cache
uses: actions/cache@v4
with:
path: ~/.local/mvnd
key: mvnd-2.0.0-rc-3-linux-amd64
- name: Install mvnd
if: steps.mvnd-cache.outputs.cache-hit != 'true'
shell: bash
run: |
MVND_VERSION=2.0.0-rc-3
MVND_PLATFORM=linux-amd64
curl -sL https://dlcdn.apache.org/maven/mvnd/${MVND_VERSION}/maven-mvnd-${MVND_VERSION}-${MVND_PLATFORM}.zip -o mvnd.zip
unzip -q mvnd.zip
mkdir -p $HOME/.local
mv maven-mvnd-${MVND_VERSION}-${MVND_PLATFORM} $HOME/.local/mvnd
- name: Export mvnd environment
shell: bash
run: |
echo "$HOME/.local/mvnd/bin" >> $GITHUB_PATH
echo "MVND_HOME=$HOME/.local/mvnd" >> $GITHUB_ENV
- name: Verify mvnd installation
shell: bash
run: mvnd --version
+25
View File
@@ -0,0 +1,25 @@
{
"ignorePatterns": [
{
"pattern": "^(?!http).*"
},
{
"pattern": "!\\[.*\\]\\((?!http).*\\)"
},
{
"pattern": "^https:\\/\\/github\\.com\\/apache\\/hertzbeat\\/pull\\/.*"
}
],
"timeout": "10s",
"retryOn429": true,
"retryCount": 3,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [
0,
200,
400,
401,
403,
429
]
}