From af25b676f8d20cfd0b3ba2f355643b8c32d0a3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 15 Dec 2024 17:14:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96ci=E5=8F=8A=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/FUNDING.yml | 2 -- .github/ISSUE_TEMPLATE/bug_report.yml | 31 ++++++-------------------- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/workflows/backend.yml | 2 +- .github/workflows/frontend.yml | 2 +- .github/workflows/goreleaser.yml | 2 +- .github/workflows/issue-auto-close.yml | 2 +- .github/workflows/lint.yml | 17 -------------- .github/workflows/test.yml | 2 +- 9 files changed, 13 insertions(+), 49 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index f47347f0d5..9462c218d7 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1 @@ -# These are supported funding model platforms - custom: [ 'https://afdian.com/a/TheTNB' ] diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index a4cf6bfd81..396881a913 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -21,41 +21,24 @@ body: required: true - label: 我已经阅读了文档中除版本记录以外的所有内容 (I've read everything in the documentation except the version notes) required: true - - label: 我没有改动过面板及系统的任何文件 (I have not changed any files of the panel and system) - required: false - label: 这个问题可以被稳定复现 (The problem can be stably reproduced) required: false - label: 问题是在更新之后产生的 (The problem is generated after upgrading) required: false - - type: dropdown - id: system - attributes: - label: 操作系统 (Operating System) - description: | - 请提供安装面板的操作系统。 - Please provide the operating system on which the panel is installed. - options: - - Debian - - Ubuntu - - AlmaLinux - - RockyLinux - - Other - validations: - required: true - type: input - id: system-version + id: system attributes: - label: 操作系统版本 (Operating System Version) + label: 操作系统及版本 (OS Version) description: | - 请提供操作系统的版本号。 - Please provide the version number of the operating system. - placeholder: "12" + 请提供操作系统及其版本号。 + Please provide the operating system and its version number. + placeholder: "Ubuntu 24.04" validations: required: true - type: input id: version attributes: - label: 耗子面板版本 (Rat Panel Version) + label: 面板版本 (Panel Version) description: | 请提供面板的版本号。 Please provide the version number of the panel. @@ -93,7 +76,7 @@ body: 简明概要地描述您期望发生的事情。 Briefly describe what you expect to happen. validations: - required: true + required: false - type: textarea id: logs attributes: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 8ed3332ed9..2521bfdbf2 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -2,4 +2,4 @@ blank_issues_enabled: false contact_links: - name: ❓ 讨论、问答和非项目问题 (Discussions, questions, and non-project issues) url: https://jq.qq.com/?_wv=1027&k=I1oJKSTH - about: 其他不明之处,请移步我们的QQ群 12370907 (For other unclear things, please move to our qq group 12370907) \ No newline at end of file + about: 其他不明之处,请移步我们的QQ群 12370907 (For other unclear things, please move to our qq group 12370907) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 5a9cfbfb66..c195e69a99 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -71,4 +71,4 @@ jobs: name: ${{ matrix.goarch }} path: | web-${{ matrix.goarch }} - cli-${{ matrix.goarch }} \ No newline at end of file + cli-${{ matrix.goarch }} diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 8f4b8d043c..8706b827f1 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -39,4 +39,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: frontend - path: web/dist/ # https://github.com/actions/upload-artifact/issues/541 \ No newline at end of file + path: web/dist/ # https://github.com/actions/upload-artifact/issues/541 diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 104cb22033..c016c8624b 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -41,4 +41,4 @@ jobs: version: latest args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/issue-auto-close.yml b/.github/workflows/issue-auto-close.yml index 6f7472d544..523f015ce6 100644 --- a/.github/workflows/issue-auto-close.yml +++ b/.github/workflows/issue-auto-close.yml @@ -19,4 +19,4 @@ jobs: with: gh_repo: ${{ github.repository }} gh_token: ${{ secrets.GITHUB_TOKEN }} - issue_labels: "⭐ No Star" \ No newline at end of file + issue_labels: "⭐ No Star" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 803d94901a..ccd9b10bad 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,23 +24,6 @@ jobs: skip-cache: true version: latest args: --timeout=30m ./... - nilaway: - runs-on: ubuntu-24.04 - if: false - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - cache: true - go-version: 'stable' - - name: Install dependencies - run: go mod tidy - - name: Install NilAway - run: go install go.uber.org/nilaway/cmd/nilaway@latest - - name: Run NilAway - run: nilaway -include-pkgs="github.com/TheTNB/panel" ./... govulncheck: runs-on: ubuntu-24.04 steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3be7ba2300..bcfd3f7922 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,4 +26,4 @@ jobs: uses: codecov/codecov-action@v5 with: file: ./coverage.out - token: ${{ secrets.CODECOV }} \ No newline at end of file + token: ${{ secrets.CODECOV }}