-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from qianmo2233/main
Update workflow and issue template
- Loading branch information
Showing
4 changed files
with
180 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 🐛 BUG 反馈 | ||
description: 请在这里反馈BUG | ||
labels: bug 插件功能问题 | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
非常感谢你来反馈该插件的BUG!但是在此之前请先确认你遇到的问题确实是一个BUG,按照[自主排错](https://ultikits.com/troubleshoot.html)的步骤也许能够解决你遇到的问题 | ||
仅接受6.0.0或更高版本的问题反馈,旧版本请先升级后尝试复现问题,仍存在问题再打开 Issue | ||
旧版本 (5.2.1) 请前往 [旧仓库](https://github.com/wisdommen/UltiTools) 反馈问题 (即将不受支持) | ||
- type: textarea | ||
id: the-problem | ||
attributes: | ||
label: 你遇到的问题 | ||
description: | ||
详细描述一下你遇到的问题以及如何复现 | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: version | ||
attributes: | ||
label: 插件版本 | ||
description: 你现在正在使用的插件版本 | ||
options: | ||
- 6.0.1 | ||
- 6.0.0 | ||
- 5.x 版本请到旧仓库提交 Issue | ||
- 这边建议先更新一下插件版本再看看有没有问题 | ||
validations: | ||
required: true | ||
- type: input | ||
id: dep-version | ||
attributes: | ||
label: 各个依赖版本(可选,建议填写) | ||
description: | ||
'例如:PAPI:xxx Vault:xxx' | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: 服务器日志(如无报错可不填) | ||
description: | ||
在这里贴上**完整的**异常日志,可以使用 pastebin.com 来上传 | ||
placeholder: | ||
可以不用完整的日志,但一定要有重要的内容,如果你不确定哪些是有用的,你可以选择上传完整的内容 | ||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: 截图 | ||
description: 如果需要,可以附上截图 | ||
- type: textarea | ||
id: additional-context | ||
attributes: | ||
label: 额外信息 | ||
description: | ||
有什么想说的吗? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: UltiTools 5 仓库 | ||
url: https://github.com/wisdommen/UltiTools | ||
about: 旧版本仓库,即将归档 | ||
- name: 自主排错 Troubleshoot | ||
url: https://doc.ultitools.ultikits.com/guide/troubleshoot.html | ||
about: 根据我们提供的自主排错步骤,也许能够解决一些您的问题 | ||
- name: 官方文档 Wiki | ||
url: https://doc.ultitools.ultikits.com | ||
about: 学会主动看文档是很重要的 | ||
- name: 在官方 QQ 群寻求帮助 Ask For Help | ||
url: https://jq.qq.com/?_wv=1027&k=s7FBdzGh | ||
about: 在寻求帮助之前还请一定一定要把文档阅读清楚了 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: ⭐ 意见与建议 | ||
description: 对这款插件有什么想法,还是有什么新功能的要求,请在这里提出 | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
非常感谢你能够来为这个插件提出意见,你可以申请开发新功能,或者对现有功能提出优化和改进等等等等! | ||
- type: textarea | ||
id: the-feature-request | ||
attributes: | ||
label: 请求内容 | ||
description: | ||
在这里提出你对插件的意见与建议,可以是要求新功能,也可以是对现有功能的改进 | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: proposed-solution | ||
attributes: | ||
label: 解决方案 | ||
description: 如果你有任何对以上内容的解决方案,可以写在这里,如果能提交相应的 Pull Request 那就更好了 | ||
- type: textarea | ||
id: additional-context | ||
attributes: | ||
label: 附加信息 | ||
description: | ||
还有什么想说的吗 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: UltiTools API CI with Maven | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
paths: | ||
- 'UltiTools-API/**' | ||
|
||
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' | ||
cache: maven | ||
|
||
- name: Build with Maven | ||
run: mvn -B package -Dmaven.javadoc.skip=true --file UltiTools-API/pom.xml | ||
|
||
- name: Get Project Version from pom.xml | ||
id: version | ||
uses: avides/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
file-to-check: UltiTools-API/pom.xml | ||
only-return-version: true | ||
|
||
- name: Archive artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: ultitools-artifact | ||
path: UltiTools-API/target/UltiTools-API-${{ steps.version.outputs.version }}.jar | ||
|
||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get latest commit message | ||
id: commit | ||
run: echo "::set-output name=message::$(git log --format=%B -n 1 ${{ github.sha }})" | ||
|
||
- name: Get Project Version from pom.xml | ||
id: version | ||
uses: avides/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
file-to-check: UltiTools-API/pom.xml | ||
only-return-version: true | ||
|
||
- name: Download artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: ultitools-artifact | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.version.outputs.version }} | ||
release_name: Release v${{ steps.version.outputs.version }} | ||
body: ${{ steps.commit.outputs.message }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: UltiTools-API-${{ steps.version.outputs.version }}.jar | ||
asset_name: UltiTools-API.jar | ||
asset_content_type: application/java-archive |