Skip to content

Commit

Permalink
+ action
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlimiter committed Dec 18, 2023
1 parent 6d2b425 commit c115776
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -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.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.yml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- New Feature or Bug Fix Pull Request -->
<!-- Implement an idea for this project or implement a bug fix to help us improve. -->
<!---->
<!-- Insert "[Enhancement] " or "[Bug] " before the first word in the title. -->
<!-- Note that the PR may be closed directly if you do not follow the instructions. -->

### Checks / 检查

<!-- Please check that you have done the following things before submitting a pull request.在提交请求之前,请检查您是否已完成以下操作。 -->
<!-- Set [ ] to [X] -->

- [ ] 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

<!-- Any GitHub issues related to this PR? If not, please fill in N/A./是否有与此 PR 相关的任何 GitHub 问题?如果没有,请填写NA。 -->
<!-- Example: Fix #ISSUE-NUMBER -->

### Description

<!-- For Bug Fix Pull Request: -->
<!-- Please tell us what bug have you fixed with a clear and detailed description, add screenshots to help explain./请告诉我们您修复了哪些错误,并提供清晰详细的描述,并添加截图以帮助解释。 -->
<!---->
<!-- For New Feature Pull Request: -->
<!-- What new feature or change have you added? 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./您添加了哪些新功能或更改?它有什么改善?请告诉我们新功能或更改是什么,并提供清晰详细的描述,如果可能,请添加截图以帮助解释。 -->
37 changes: 37 additions & 0 deletions .github/workflows/forge.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c115776

Please sign in to comment.