From bc7a7e5eb218c5eed79f264d49609365e8f74402 Mon Sep 17 00:00:00 2001 From: linhemin Date: Mon, 10 Feb 2025 19:07:48 +0800 Subject: [PATCH] =?UTF-8?q?ci(=E6=88=90=E5=8A=9F=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=8F=90=E4=BA=A4=E6=A3=80=E6=9F=A5=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E7=8C=AB=E5=92=AA=E5=85=83=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了提交检查流程中多余的猫咪表情和拟声词 - 优化了提交信息获取和检查步骤的输出信息 - 统一了错误信息的表达方式,提高了可读性 --- .github/workflows/commit-check.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml index 46de0b0..a046c84 100644 --- a/.github/workflows/commit-check.yml +++ b/.github/workflows/commit-check.yml @@ -8,13 +8,13 @@ jobs: commit-check: runs-on: ubuntu-latest steps: - - name: Checkout 喵喵代码 + - name: Checkout 代码 uses: actions/checkout@v2 - name: 获取提交信息 id: get_commits run: | - echo "喵~ 正在获取提交信息呢~" + echo "正在获取提交信息" git fetch --no-tags origin ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} COMMITS=$(git log --pretty=format:"%s" ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}) echo "找到以下提交:" @@ -25,7 +25,7 @@ jobs: id: check_commits continue-on-error: true run: | - echo "喵~ 开始检查提交信息啦~" + echo "开始检查提交信息" PATTERN='^(feat|fix|docs|style|refactor|perf|test|chore|ci)(\([a-zA-Z0-9\-]+\))?: .+' FAIL=0 while IFS= read -r line; do @@ -46,7 +46,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - echo "喵~ 检测到有无效的提交信息,正在关闭该 PR 呀~" + echo "检测到有无效的提交信息,正在关闭该 PR" PR_NUMBER=${{ github.event.pull_request.number }} curl -X PATCH \ -H "Authorization: token $GITHUB_TOKEN" \