From 6cf65cc93e68f6c48b19958b93f9483f52170554 Mon Sep 17 00:00:00 2001 From: cnlimiter Date: Sat, 16 Sep 2023 18:13:25 +0800 Subject: [PATCH] =?UTF-8?q?+=20=E6=8F=90=E9=97=AE=E7=9A=84=E8=89=BA?= =?UTF-8?q?=E6=9C=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug.yml | 77 ++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 8 +++ .github/ISSUE_TEMPLATE/enhancement.yml | 24 ++++++++ .github/ISSUE_TEMPLATE/question.yml | 24 ++++++++ .github/PULL_REQUEST_TEMPLATE.md | 26 +++++++++ .github/workflows/gradle.yml | 22 ++++++-- gradle.properties | 4 +- 7 files changed, 179 insertions(+), 6 deletions(-) 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 diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 00000000..81eb8fea --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,77 @@ +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/Nova-Committee/Avaritia-Reforge/issues?q=) before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了[现有的问题或者拉取请求](https://github.com/Nova-Committee/Avaritia-Reforge/issues?q=),以避免重复报告。 + required: true + - label: I confirm that I followed the Docs and read the [Changelog](https://github.com/Nova-Committee/Avaritia-Reforge/releases/latest), but this problem still exists./我确认我按照文档配置并阅读了[Changelog](https://github.com/Nova-Committee/Avaritia-Reforge/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.20.1" + validations: + required: true + - type: input + id: Avaritia-Reforge_version + attributes: + label: Avaritia-Reforge Version / Avaritia-Reforge版本 + description: | + The version of Avaritia you are using?/您正在使用的 Avaritia 版本? + placeholder: "Example: 1.3.2" + 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 + - type: textarea + id: config + attributes: + label: Config / 配置 + description: | + Please provide your Avaritia-Reforge config file (Avaritia-Reforge.json) here, remember to remove the botToken,qqId,groupId./请在此处提供您的Avaritia-Reforge配置文件(Avaritia-Reforge.json),请记住删除botToken,qqId,groupId。 + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..1a5cdd7e --- /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/Avaritia-Reforge/issues/99 + about: You can refer to this example issue to fill in your issue. + - name: Latest Builds / 最新构建 + url: https://github.com/Nova-Committee/Avaritia-Reforge/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 00000000..ae315db6 --- /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/Nova-Committee/Avaritia-Reforge/issues?q=) before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了[现有的问题或者拉取请求](https://github.com/Nova-Committee/Avaritia-Reforge/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 00000000..331b5cb7 --- /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/Nova-Committee/Avaritia-Reforge/issues?q=) before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了[现有的问题或者拉取请求](https://github.com/Nova-Committee/Avaritia-Reforge/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 00000000..6e4a5d8f --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,26 @@ + + + + + + +### 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/gradle.yml b/.github/workflows/gradle.yml index 8bcc9915..e284691e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -23,12 +23,26 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 + - name: Set up JDK 17 uses: actions/setup-java@v3 with: - java-version: '11' + java-version: '17' distribution: 'temurin' - - name: Build with Gradle - uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + - 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: build + - name: Find Correct JAR + id: findjar + run: | + output="$(find build/libs/ ! -name "*-sources.jar" -type f -printf "%f\n")" + echo "::set-output name=jarname::$output" + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ steps.findjar.outputs.jarname }} + path: build/libs/${{ steps.findjar.outputs.jarname }} diff --git a/gradle.properties b/gradle.properties index 0f5fc7fd..3430f368 100644 --- a/gradle.properties +++ b/gradle.properties @@ -54,7 +54,7 @@ mod_name=Avaritia-Reforged # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT # The mod version. See https://semver.org/ -mod_version=1.3.2 +mod_version=1.3.3-fo # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html @@ -62,6 +62,6 @@ mod_group_id=committee.nova.mods # The authors of the mod. This is a simple text string that is used for display purposes in the mod list. mod_authors=cnlimiter, Asek3, MikhailTapio # The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list. -mod_description= +mod_description=Are you the type of modded Minecraft player that makes a beeline for the designated \"end game\" and then gives up on ever playing again once you get there? Do you wish there was a way to make the process take significantly longer? Do you love GregTech, but wish it weren't so short? Do you sit down on your chest full of Galgadorian Drills and wish there was a mod that didn't just hand things to you on a silver platter?\n\n \n\nThis might be the mod for you! # Pack version - this changes each minecraft release, in general. pack_format_number=15