Skip to content

Commit bba1ccd

Browse files
committed
github - add issue templates and action
1 parent c60d5b1 commit bba1ccd

File tree

5 files changed

+153
-0
lines changed

5 files changed

+153
-0
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: shanebee
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 📝 Javadocs
4+
url: https://shanebeee.github.io/docs/NMS-API/
5+
about: Get the docs!
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: 🐞 Bug Report
2+
description: Report an unexpected behaviour
3+
title: "[BUG]"
4+
body:
5+
- type: textarea
6+
id: what-happened
7+
attributes:
8+
label: What happened?
9+
description: Describe the observed behavior
10+
placeholder: Tell us what you see!
11+
validations:
12+
required: true
13+
14+
- type: textarea
15+
id: steps
16+
attributes:
17+
label: Steps to reproduce
18+
description: How do you reproduce this? Please provide as much step-by-step detail as possible.
19+
value: |
20+
1.
21+
2.
22+
3.
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: expected
28+
attributes:
29+
label: Expected behavior
30+
description: What did you expect to happen when the reproduce steps are followed?
31+
placeholder: Tell us what you expected to see!
32+
validations:
33+
required: true
34+
35+
- type: input
36+
attributes:
37+
label: NMS-API Version
38+
description: Which version of NMS-API are you using?
39+
placeholder: |
40+
Ex: "1.7.2-1.21.1"
41+
validations:
42+
required: true
43+
44+
- type: input
45+
attributes:
46+
label: Server Version/Software
47+
description: Which version of the server and Minecraft are you using?
48+
placeholder: |
49+
Ex: "Paper 1.21.1"
50+
validations:
51+
required: true
52+
53+
- type: textarea
54+
attributes:
55+
label: Additional Information
56+
description: Any additional information that may help us solve the bug.
57+
placeholder: |
58+
Ex: "Using Spigot instead of Paper"
59+
validations:
60+
required: false
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 👷 Feature Request
2+
description: Request an addition or change to NMS-API
3+
title: "[SUGGESTION]"
4+
body:
5+
- type: textarea
6+
id: suggestion
7+
attributes:
8+
label: Suggestion
9+
description: What would you like to see improved?
10+
placeholder: |
11+
The more details, the better
12+
validations:
13+
required: true
14+
15+
- type: textarea
16+
id: alternatives
17+
attributes:
18+
label: Alternatives
19+
description: Describe alternatives you've considered
20+
placeholder: |
21+
The more details, the better
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
id: additional
27+
attributes:
28+
label: Additional Information
29+
description: Any additional information that may help us out.
30+
placeholder: |
31+
Ex: "I know that Paper has API <link here>"
32+
validations:
33+
required: false

.github/workflows/gradle.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Java CI with Gradle
9+
10+
on:
11+
push:
12+
branches: [ '**' ]
13+
pull_request:
14+
branches: [ '**' ]
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
build:
21+
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Set up JDK 21
27+
uses: actions/setup-java@v4.2.1
28+
with:
29+
java-version: '21'
30+
distribution: 'temurin'
31+
- name: Build with Gradle
32+
uses: gradle/actions/setup-gradle@v3
33+
with:
34+
arguments: build
35+
- name: Upload a Build Artifact
36+
uses: actions/upload-artifact@master
37+
with:
38+
# Artifact name
39+
name: NMS-API-Artifact
40+
# A file, directory or wildcard pattern that describes what to upload
41+
path: build/libs/NMS-API*.jar
42+

0 commit comments

Comments
 (0)