From 2195be3c1af7e5894a3331ee1ea274133586c100 Mon Sep 17 00:00:00 2001 From: sa03 <303914098@qq.com> Date: Mon, 17 Jun 2024 17:03:47 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E8=B0=83=E6=95=B4=20Workflo?= =?UTF-8?q?w=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/file-copy-repos.yml | 72 ------------------- .github/workflows/file-copy.yml | 31 -------- .github/workflows/issue-assignees.temp.yml | 53 -------------- .github/workflows/issue-help-wanted.temp.yml | 22 ------ .../workflows/issue-mark-duplicate.temp.yml | 19 ----- .github/workflows/issue-reply.temp.yml | 21 ------ .github/workflows/issue-synchronize.temp.yml | 17 ----- .../workflows/issues-dailyclose-schedule.yml | 19 ----- .../workflows/issues-dailynew-schedule.yml | 19 ----- .../workflows/issues-statistics-schedule.yml | 19 ----- .github/workflows/typos-config.toml | 3 + .husky/prepare-commit-msg | 8 +-- site/sidebar.config.ts | 15 ++-- 13 files changed, 13 insertions(+), 305 deletions(-) delete mode 100644 .github/workflows/file-copy-repos.yml delete mode 100644 .github/workflows/file-copy.yml delete mode 100644 .github/workflows/issue-assignees.temp.yml delete mode 100644 .github/workflows/issue-help-wanted.temp.yml delete mode 100644 .github/workflows/issue-mark-duplicate.temp.yml delete mode 100644 .github/workflows/issue-reply.temp.yml delete mode 100644 .github/workflows/issue-synchronize.temp.yml delete mode 100644 .github/workflows/issues-dailyclose-schedule.yml delete mode 100644 .github/workflows/issues-dailynew-schedule.yml delete mode 100644 .github/workflows/issues-statistics-schedule.yml diff --git a/.github/workflows/file-copy-repos.yml b/.github/workflows/file-copy-repos.yml deleted file mode 100644 index 6269b7a..0000000 --- a/.github/workflows/file-copy-repos.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: Copy to Repos - -on: - workflow_dispatch: - -jobs: - call-preview-1: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-vue - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-2: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-vue-next - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-3: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-react - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-4: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-miniprogram - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-5: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-common - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-6: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-starter-cli - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-7: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-vue-starter - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-8: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-vue-next-starter - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-9: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-icons - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-10: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-react-starter - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - call-preview-11: - uses: Tencent/tdesign/.github/workflows/file-copy.yml@main - with: - repo: tdesign-mobile-vue - secrets: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/file-copy.yml b/.github/workflows/file-copy.yml deleted file mode 100644 index d952931..0000000 --- a/.github/workflows/file-copy.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Copy to One Repo -# wanted/duplicate/reply/close - -on: - workflow_call: - inputs: - repo: - required: true - type: string - secrets: - PERSONAL_TOKEN: - required: true - -jobs: - copy: - runs-on: ubuntu-latest - steps: - - name: Copycat - uses: andstor/copycat-action@v3 - with: - personal_token: ${{ secrets.PERSONAL_TOKEN }} - src_path: /.github/workflows - src_branch: main - dst_path: /.github/ - dst_branch: develop - dst_owner: Tencent - dst_repo_name: ${{ inputs.repo }} - filter: '**/*.temp.yml' - username: 94dreamer - email: 503633021@qq.com - commit_message: 'ci: update files "/.github/workflows" from "Tencent/tdesign"' \ No newline at end of file diff --git a/.github/workflows/issue-assignees.temp.yml b/.github/workflows/issue-assignees.temp.yml deleted file mode 100644 index a0ea92b..0000000 --- a/.github/workflows/issue-assignees.temp.yml +++ /dev/null @@ -1,53 +0,0 @@ -# force copy from tencent/tdesign -name: Issue Add Assigness - -on: - issues: - types: [opened, edited] - -jobs: - mark-duplicate: - runs-on: ubuntu-latest - steps: - - if: github.event.label.name != 'new component' && github.event.label.name != 'issueshoot' - - uses: wow-actions/auto-comment@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - issuesOpened: | - 👋 @{{ author }},感谢给 TDesign 提出了 issue。 - 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。 - - # https://docs.github.com/cn/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issues - - uses: 94dreamer/issue-assignees@main - id: assignees - with: - project_name: ${{github.event.repository.name}} - issue_title: ${{github.event.issue.title}} - - - run: echo ${{ steps.assignees.outputs.contributors }} - - name: Add assigness - if: steps.assignees.outputs.contributors != '' - uses: actions-cool/issues-helper@v3 - with: - actions: "add-assignees" - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - assignees: ${{ steps.assignees.outputs.contributors }} - - - run: | - contributors=${{ steps.assignees.outputs.contributors }} - contributorstring=${contributors//,/ @} - echo "::set-output name=string::@$contributorstring" - id: contributors - - - name: 通知贡献者 - if: steps.assignees.outputs.contributors != '' - uses: actions-cool/maintain-one-comment@v2.0.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - body: | - ♥️ 有劳 ${{ steps.contributors.outputs.string }} 尽快确认问题。 - 确认有效后将下一步计划和可能需要的时间回复给 @${{ github.event.issue.user.login }} 。 - - number: ${{ github.event.issue.number }} - body-include: "" diff --git a/.github/workflows/issue-help-wanted.temp.yml b/.github/workflows/issue-help-wanted.temp.yml deleted file mode 100644 index 94e9bbd..0000000 --- a/.github/workflows/issue-help-wanted.temp.yml +++ /dev/null @@ -1,22 +0,0 @@ -# force copy from tencent/tdesign -name: Issue Help wanted -on: - issues: - types: - - labeled -jobs: - add-comment: - if: github.event.label.name == 'help wanted' - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Add comment - uses: peter-evans/create-or-update-comment@v1 - with: - issue-number: ${{ github.event.issue.number }} - body: | - 任何人都可以处理此问题。 - **请务必在您的 `pull request` 中引用此问题。** :sparkles: - 感谢你的贡献! :sparkles: - reactions: heart \ No newline at end of file diff --git a/.github/workflows/issue-mark-duplicate.temp.yml b/.github/workflows/issue-mark-duplicate.temp.yml deleted file mode 100644 index 3017723..0000000 --- a/.github/workflows/issue-mark-duplicate.temp.yml +++ /dev/null @@ -1,19 +0,0 @@ -# force copy from tencent/tdesign -# 当在 issue 的 comment 回复类似 `Duplicate of #111` 这样的话,issue 将被自动打上 重复提交标签 并且 cloese -name: Issue Mark Duplicate - -on: - issue_comment: - types: [created, edited] - -jobs: - mark-duplicate: - runs-on: ubuntu-latest - steps: - - name: mark-duplicate - uses: actions-cool/issues-helper@v2 - with: - actions: "mark-duplicate" - token: ${{ secrets.GITHUB_TOKEN }} - duplicate-labels: "duplicate" - close-issue: true diff --git a/.github/workflows/issue-reply.temp.yml b/.github/workflows/issue-reply.temp.yml deleted file mode 100644 index 271a94f..0000000 --- a/.github/workflows/issue-reply.temp.yml +++ /dev/null @@ -1,21 +0,0 @@ -# force copy from tencent/tdesign -# 当被打上 Need Reproduce 标签时候,自动提示需要重现实例 - -name: ISSUE_REPLY - -on: - issues: - types: [labeled] - -jobs: - issue-reply: - runs-on: ubuntu-latest - steps: - - name: Need Reproduce - if: github.event.label.name == 'Need Reproduce' - uses: actions-cool/issues-helper@v2 - with: - actions: 'create-comment' - issue-number: ${{ github.event.issue.number }} - body: | - 你好 @${{ github.event.issue.user.login }}, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 [此处](https://codesandbox.io/) 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。 diff --git a/.github/workflows/issue-synchronize.temp.yml b/.github/workflows/issue-synchronize.temp.yml deleted file mode 100644 index 04f79db..0000000 --- a/.github/workflows/issue-synchronize.temp.yml +++ /dev/null @@ -1,17 +0,0 @@ -# force copy from tencent/tdesign -name: Issue Synchronize - -on: - issues: - types: [opened, reopened] - -jobs: - synchronize: - runs-on: ubuntu-latest - steps: - # https://docs.github.com/cn/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issues - - uses: TDesignOteam/create-report@main - with: - wxhook: ${{ secrets.WX_HOOK_URL }} - token: ${{ secrets.GITHUB_TOKEN }} - type: 'issue' \ No newline at end of file diff --git a/.github/workflows/issues-dailyclose-schedule.yml b/.github/workflows/issues-dailyclose-schedule.yml deleted file mode 100644 index 861234f..0000000 --- a/.github/workflows/issues-dailyclose-schedule.yml +++ /dev/null @@ -1,19 +0,0 @@ -# 国际标准时间+8 -# 每天issue和pr的关闭情况 -name: issues-dailyclose-schedule - -on: - workflow_dispatch: - schedule: - - cron: "0 2 * * *" - -jobs: - create-report: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: TDesignOteam/create-report@main - with: - wxhook: ${{ secrets.WX_HOOK_URL }} - token: ${{ secrets.GIT_TOKEN_L }} - type: 'close' diff --git a/.github/workflows/issues-dailynew-schedule.yml b/.github/workflows/issues-dailynew-schedule.yml deleted file mode 100644 index 7655be5..0000000 --- a/.github/workflows/issues-dailynew-schedule.yml +++ /dev/null @@ -1,19 +0,0 @@ -# 国际标准时间+8 -# 每天 issue 新增情况 -name: issues-dailyclose-schedule - -on: - workflow_dispatch: - schedule: - - cron: "0 9 * * *" - -jobs: - create-report: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: TDesignOteam/create-report@main - with: - wxhook: ${{ secrets.WX_HOOK_URL }} - token: ${{ secrets.GIT_TOKEN_L }} - type: 'new' diff --git a/.github/workflows/issues-statistics-schedule.yml b/.github/workflows/issues-statistics-schedule.yml deleted file mode 100644 index 535addc..0000000 --- a/.github/workflows/issues-statistics-schedule.yml +++ /dev/null @@ -1,19 +0,0 @@ -# 国际标准时间+8 -# 每天issue和pr的待处理情况 -name: issues-statistics-schedule - -on: - workflow_dispatch: - schedule: - - cron: "0 6 * * *" - -jobs: - create-report: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: TDesignOteam/create-report@main - with: - wxhook: ${{ secrets.WX_HOOK_URL }} - token: ${{ secrets.GIT_TOKEN_L }} - type: 'xiaolv' diff --git a/.github/workflows/typos-config.toml b/.github/workflows/typos-config.toml index b59c18f..c988004 100644 --- a/.github/workflows/typos-config.toml +++ b/.github/workflows/typos-config.toml @@ -1,5 +1,8 @@ [default.extend-words] vertx = "vertx" +actived = "actived" +formated = "formated" +colum = "colum" [files] extend-exclude = ["**/lib/**","**/spline/**","contributor.html","README.md","README_zh-CN.md","docsearch.min.js","*.svg"] \ No newline at end of file diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index bb65f4f..c2fc356 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,8 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh . "$(dirname "$0")/_/husky.sh" -echo $PUBLICK_TYPE - -if [ "${PUBLICK_TYPE}" != "lerna" ]; then - exec < /dev/tty && npx git-cz --hook -fi +npx czg --hook || true diff --git a/site/sidebar.config.ts b/site/sidebar.config.ts index 27e3978..6830513 100644 --- a/site/sidebar.config.ts +++ b/site/sidebar.config.ts @@ -18,13 +18,14 @@ export default [ path: '/quick-start', component: () => import('@docs/starter.md'), }, - { - title: '更新日志', - titleEn: 'CHANGELOG', - name: 'changelog', - path: '/changelog', - component: () => import('@/CHANGELOG.md'), - }, + // 暂时注释 + // { + // title: '更新日志', + // titleEn: 'CHANGELOG', + // name: 'changelog', + // path: '/changelog', + // component: () => import('@/CHANGELOG.md'), + // }, { title: '组件概览', titleEn: 'Overview',