diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 7de2269c..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: "\U0001F41E Bug 报告" -description: Create a report to help us improve -title: "[Bug] " -labels: ["bug"] -body: - - type: markdown - attributes: - value: | - 感谢您使用 ContiNew Admin!请您花些时间填写这份 Bug 报告。 - - type: textarea - id: bug-description - attributes: - label: Bug 描述 - description: 清楚而简洁地描述您遇到的 Bug。另外,非常欢迎您对此 Bug 提交 PR。 - placeholder: 例如:在使用 xxx 功能时出现异常 - validations: - required: true - - type: textarea - id: reproduction - attributes: - label: 复现步骤 - description: 条理清晰的步骤或演示视频可以帮助快速定位问题。 - placeholder: 例如:1、xxx; 2、xxx; - validations: - required: true - - type: textarea - id: expected - attributes: - label: 预期结果 - description: 清楚而简洁地描述您期望的结果。 - placeholder: 预期结果 - validations: - required: true - - type: textarea - id: environment-info - attributes: - label: 环境信息 - description: | - examples: - - **ContiNew Admin version(s)**: v3.0.1 - value: "ContiNew Admin version(s):" - render: markdown - validations: - required: true - - type: textarea - id: additional-context - attributes: - label: 额外补充 - description: 添加您的完整报错信息或屏幕截图,以及一切能帮助定位问题的信息。 - - type: checkboxes - id: checkboxes - attributes: - label: 确认 - description: 在提交 issue 之前,请确保执行过以下操作。 - options: - - label: 阅读[文档](https://continew.top/admin/other/faq.html) - required: true - - label: 根据报错信息百度或 Google 一下 - required: true - - label: 搜索是否有其他人提交过类似的 issue,如果对应 issue 尚未解决,您可以先订阅关注该 issue(为了方便后来者查找问题解决方法,请尽量避免创建重复的 issue) - required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index ee3efb5e..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: "\U0001F680 新 Feature 建议" -description: Suggest an idea for this project -title: "[Feature] " -labels: ["feature"] -body: - - type: markdown - attributes: - value: | - 感谢您使用 ContiNew Admin!请您花些时间填写这份 Feature 调查。 - - type: textarea - id: feature-description - attributes: - label: Feature 描述 - description: 清楚而简洁地描述您的 Feature。另外,非常欢迎您对此 Feature 提交 PR。 - placeholder: 例如:我希望增加 xxx 功能;现有的 xxx 功能不好用... - validations: - required: true - - type: textarea - id: suggested-solution - attributes: - label: 描述一下您想要的解决方案 - description: 清楚而简洁地描述您想要的解决方案。 - validations: - required: true - - type: textarea - id: alternative - attributes: - label: 描述一下您考虑过的替代方案 - description: 清楚而简洁地描述您考虑过的任何替代解决方案或功能。 - - type: textarea - id: additional-context - attributes: - label: 额外补充 - description: 添加您在其他框架或场景遇见的效果截图或链接,以及一切能帮助理解 Feature 的信息。 - - type: checkboxes - id: checkboxes - attributes: - label: 确认 - description: 在提交 issue 之前,请确保执行过以下操作。 - options: - - label: 阅读[文档](https://continew.top/admin/intro/require.html) - required: true - - label: 搜索是否有其他人提交过类似的 issue,如果对应 issue 尚未解决,您可以先订阅关注该 issue(为了方便后来者查找问题解决方法,请尽量避免创建重复的 issue) - required: true - - label: 您是否愿意为您提出的 Feature 提交 PR? - required: false \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index e0fe5898..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,53 +0,0 @@ - - - - -## PR 类型 - - - - -- [ ] 新 feature -- [ ] Bug 修复 -- [ ] 功能增强 -- [ ] 文档变更 -- [ ] 代码样式变更 -- [ ] 重构 -- [ ] 性能改进 -- [ ] 单元测试 -- [ ] CI/CD -- [ ] 其他 - -## PR 目的 - - - -## 解决方案 - - - -## PR 测试 - - - - -## Changelog - -| 模块 | Changelog | Related issues | -|-----|-----------| -------------- | -| | | | - - - - -## 其他信息 - - - -## 提交前确认 - -- [ ] PR 代码经过了完整测试,并且通过了代码规范检查 -- [ ] 已经完整填写 Changelog,并链接到了相关 issues -- [ ] PR 代码将要提交到 dev 分支 \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 19a1ea17..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Deploy - -on: - # 推送时执行 - push: - branches: [dev] - # 可手动执行 - workflow_dispatch: - -jobs: - deploy-server: - runs-on: ubuntu-latest - steps: - # 1、检出源码 - - name: Checkout - uses: actions/checkout@master - # 2、安装 Java 环境 - - name: Setup Java - uses: actions/setup-java@master - with: - distribution: 'adopt' - java-version: 17 - cache: 'maven' - # 3、打包 - - name: Build - run: mvn -B package --file pom.xml - # 4、拷贝到服务器 - - name: Copy - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.SERVER_HOST }} - port: ${{ secrets.SERVER_PORT }} - username: ${{ secrets.SERVER_USERNAME }} - password: ${{ secrets.SERVER_PASSWORD }} - local: ./continew-admin-webapi/target/app - remote: /docker/continew-admin - # 5、启动 - - name: Start - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.SERVER_HOST }} - port: ${{ secrets.SERVER_PORT }} - username: ${{ secrets.SERVER_USERNAME }} - password: ${{ secrets.SERVER_PASSWORD }} - script: | - cd /docker - docker-compose up --force-recreate --build -d continew-admin-server - docker images | grep none | awk '{print $3}' | xargs docker rmi - # Sonar 扫描 - sonar-scan: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@master - with: - fetch-depth: 0 - - name: Setup Java - uses: actions/setup-java@master - with: - distribution: 'adopt' - java-version: 17 - - name: Cache SonarCloud packages - uses: actions/cache@v3 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - name: Cache Maven packages - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - name: Analyze - run: mvn -B verify -Psonar - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml deleted file mode 100644 index 64602a5c..00000000 --- a/.github/workflows/release-tag.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Release - -on: - push: - tags: - - 'v*' # Push events to matching v*, i.e. v1.0.0 - -jobs: - release: - if: github.repository == 'Charles7c/continew-admin' - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@master - - name: Create Release for Tag - id: release_tag - uses: yyx990803/release-tag@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - body: | - 详情请参阅 [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/dev/CHANGELOG.md) 。 \ No newline at end of file