From 6c21953a715d409331e375688c07f284890b6c8d Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Wed, 4 Feb 2026 14:49:47 +0800 Subject: [PATCH 1/3] docs(ci): standardize commit message format in notice board workflow - remove emoji prefix from automated commit message for consistency with conventional commits - maintain clear type and scope (docs(readme)) for change tracking --- .github/workflows/notice-board.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/notice-board.yml b/.github/workflows/notice-board.yml index 4ebe43cc4..034309a12 100644 --- a/.github/workflows/notice-board.yml +++ b/.github/workflows/notice-board.yml @@ -45,6 +45,6 @@ jobs: if git diff --cached --quiet; then echo "没有文件变更,跳过提交" else - git commit --quiet -m "📝 docs(readme): update notice board" + git commit --quiet -m "docs(readme): update notice board" fi git push From 36e1be84a8030974a7abd21a5c3ccac1511a0eac Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Wed, 4 Feb 2026 15:16:01 +0800 Subject: [PATCH 2/3] chore(renovate): add custom regex manager for docker images in shell script - add custom manager to detect and update docker image references in shell scripts - configure regex pattern to match image name and version variables - set datasource to docker for automated version updates --- renovate.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/renovate.json b/renovate.json index 0e848299c..8ecd01419 100644 --- a/renovate.json +++ b/renovate.json @@ -309,5 +309,17 @@ "allowedVersions": "/^1.*/" } ], + "customManagers": [ + { + "description": "处理 shell 脚本中的镜像", + "customType": "regex", + "managerFilePatterns": ["/(^|/).+\\.sh$/"], + "matchStrings": [ + // 调试正则表达式: https://regexr.com/8jlns + "([\\S]+=)(?[\\S]+):(?[\\S]+)" + ], + "datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}" + } + ], "prCreation": "immediate" } From 5c2361485fcbf3da64ab956c94fdaeb05a4d2757 Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Thu, 5 Feb 2026 15:20:25 +0800 Subject: [PATCH 3/3] build(renovate): extend workflow to handle script version updates - add logic to process .sh script files in /apps/*/scripts/ directories - extract new version from script content and rename app version directory - update commit logic to include script files alongside docker-compose.yml --- .github/workflows/renovate-app-version.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/renovate-app-version.yml b/.github/workflows/renovate-app-version.yml index ad39152f5..9868df0f4 100644 --- a/.github/workflows/renovate-app-version.yml +++ b/.github/workflows/renovate-app-version.yml @@ -84,6 +84,13 @@ jobs: old_version=$(echo $file | cut -d'/' -f 3) python3 .github/workflows/renovate-app-version.py $app_name $old_version fi + if [[ $file == *"/scripts/"*.sh ]]; then + app_name=$(echo $file | cut -d'/' -f 2) + old_version=$(echo $file | cut -d'/' -f 3) + new_version=$(grep -P -o '[\S]+=[\S]+:\K[\S]+' $file | head -1) + mv apps/$app_name/$old_version apps/$app_name/$new_version + echo $new_version > apps/$app_name/${old_version}.version + fi done - name: Commit & Push Changes @@ -91,7 +98,7 @@ jobs: IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}" commits_counter=0 for file in "${files[@]}"; do - if [[ $file == *"docker-compose.yml"* ]]; then + if [[ $file == *"docker-compose.yml"* || $file == *"/scripts/"*.sh ]]; then app_name=$(echo $file | cut -d'/' -f 2) old_version=$(echo $file | cut -d'/' -f 3) if [ -f "apps/$app_name/${old_version}.version" ]; then