From c1157762969c05463395b0915847b501915b2da7 Mon Sep 17 00:00:00 2001 From: cnlimiter Date: Tue, 19 Dec 2023 04:16:18 +0800 Subject: [PATCH] + action --- .github/ISSUE_TEMPLATE/bug.yml | 69 ++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 8 +++ .github/ISSUE_TEMPLATE/enhancement.yml | 24 +++++++++ .github/ISSUE_TEMPLATE/question.yml | 24 +++++++++ .github/PULL_REQUEST_TEMPLATE.md | 30 +++++++++++ .github/workflows/forge.yml | 37 ++++++++++++++ 6 files changed, 192 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/enhancement.yml create mode 100644 .github/ISSUE_TEMPLATE/question.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/forge.yml diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..6339c24 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,69 @@ +name: Bug Report / 报告bug +description: Create a report to help us improve./创建报告以帮助我们改进。 +title: "[Bug/漏洞] " +labels: [ "bug" ] +body: + - type: checkboxes + id: checks + attributes: + label: Checks / 检查 + description: | + Please check that you have done the following things before submitting an issue./在提交问题之前,请检查您是否已完成以下操作。 + options: + - label: I confirm that I have [searched for existing issues / pull requests](https://github.com/cnlimiter/Atom-Sweep/issues?q=) before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了[现有的问题或者拉取请求](https://github.com/cnlimiter/McBot/issues?q=),以避免重复报告。 + required: true + - label: I confirm that I followed the Docs and read the [Changelog](https://github.com/cnlimiter/Atom-Sweep/releases/latest), but this problem still exists./我确认我按照文档配置并阅读了[Changelog](https://github.com/cnlimiter/McBot/releases/latest),但这个问题仍然存在。 + required: true + - label: I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。 + required: true + - type: input + id: java_version + attributes: + label: Java Version / Java版本 + description: | + The version of Java you are using?/您正在使用的 Java 版本? + placeholder: "Example: 17.0.6" + validations: + required: true + - type: input + id: minecraft_version + attributes: + label: Minecraft Version / Minecraft版本 + description: | + The version of Minecraft you are using?/您正在使用的 Minecraft 版本? + placeholder: "Example: 1.19.4" + validations: + required: true + - type: input + id: mcbot_version + attributes: + label: McBot Version / Atom-Sweep版本 + description: | + The version of McBot you are using?/您正在使用的 Atom-Sweep 版本? + placeholder: "Example: 0.2.0" + validations: + required: true + - type: textarea + id: description + attributes: + label: Description / 描述 + description: | + Please tell us what the bug is with a clear and detailed description, add screenshots to help explain./请通过清晰详细的描述告诉我们错误是什么,添加屏幕截图以帮助解释。 + validations: + required: true + - type: textarea + id: to_reproduce + attributes: + label: To Reproduce / 重现 + description: | + How do you trigger this bug? Please walk us through it step by step./你如何触发这个错误?请逐步引导我们完成它。 + validations: + required: true + - type: textarea + id: log + attributes: + label: Log / 日志 + description: | + Please provide your full log here./请在此处提供您的完整日志。 + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..58491b1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: Example Issue / 议题实例 + url: https://github.com/Nova-Committee/Atom-Sweep/issues/99 + about: You can refer to this example issue to fill in your issue. + - name: Latest Builds / 最新构建 + url: https://github.com/Nova-Committee/Atom-Sweep/actions + about: You can find the latest build JAR files at GitHub Actions. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/enhancement.yml b/.github/ISSUE_TEMPLATE/enhancement.yml new file mode 100644 index 0000000..a03f153 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/enhancement.yml @@ -0,0 +1,24 @@ +name: Feature Request / 功能请求 +description: Suggest an idea for this project. +title: "[Enhancement/功能请求] " +labels: [ "enhancement" ] +body: + - type: checkboxes + id: checks + attributes: + label: Checks/检查 + description: | + Please check that you have done the following things before submitting an issue./在提交问题之前,请检查您是否已完成以下操作。 + options: + - label: I confirm that I have [searched for existing issues / pull requests](https://github.com/cnlimiter/Atom-Sweep/issues?q=) before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了[现有的问题或者拉取请求](https://github.com/cnlimiter/McBot/issues?q=),以避免重复报告。 + required: true + - label: I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。 + required: true + - type: textarea + id: description + attributes: + label: Description/描述 + description: | + What new feature or change do you want? What does it improve? Please tell us what the new feature or change is with a clear and detailed description, add screenshots to help explain if possible./您想要什么新功能或改进?它有什么作用?请告诉我们新功能或改进是什么,并提供清晰详细的描述,如果可能,请添加截图以帮助解释。 + validations: + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml new file mode 100644 index 0000000..b7034db --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -0,0 +1,24 @@ +name: Question / 询问 +description: Anything you don't understand. +title: "[Question / 询问] " +labels: [ "question" ] +body: + - type: checkboxes + id: checks + attributes: + label: Checks / 检查 + description: | + Please check that you have done the following things before submitting an issue./在提交问题之前,请检查您是否已完成以下操作。 + options: + - label: I confirm that I have [searched for existing issues / pull requests](https://github.com/cnlimiter/Atom-Sweep/issues?q=) before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了[现有的问题或者拉取请求](https://github.com/cnlimiter/McBot/issues?q=),以避免重复报告。 + required: true + - label: I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。 + required: true + - type: textarea + id: description + attributes: + label: Description / 描述 + description: | + Please tell us what the question is with a clear and detailed description, add screenshots to help explain if possible./请通过清晰详细的描述告诉我们问题是什么,如果可能的话,添加截图以帮助解释。 + validations: + required: true \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..14952ab --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,30 @@ + + + + + + +### Checks / 检查 + + + + +- [ ] I confirm that I have [searched for existing issues / pull requests](https://github.com/cnlimiter/McBot/issues?q=) + before requesting to avoid duplicate + requesting./我确认在报告之前我已经搜索了[现有的问题或者拉取请求](https://github.com/cnlimiter/McBot/issues?q=) + ,以避免重复报告。 +- [ ] I confirm that I noted that if I don't follow the instructions, the issue may be closed + directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。 + +### Related Issues + + + + +### Description + + + + + + \ No newline at end of file diff --git a/.github/workflows/forge.yml b/.github/workflows/forge.yml new file mode 100644 index 0000000..e7f9371 --- /dev/null +++ b/.github/workflows/forge.yml @@ -0,0 +1,37 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Forge Action + +on: + push: + branches: [ "forge" ] + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Make Gradle Wrapper Executable + run: chmod +x ./gradlew + - name: Build + uses: gradle/gradle-build-action@v2 + with: + arguments: buildNeeded + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: Atom-Sweep-forge-all + path: forge/build/libs