Added some .github-Files

This commit is contained in:
2025-01-28 16:12:48 +01:00
parent 69e605fc93
commit 6c52a489c1
5 changed files with 148 additions and 3 deletions

10
.github/CONTRIBUTING.md vendored Normal file
View File

@@ -0,0 +1,10 @@
## Making Changes
Depending on your changes there are certain rules you have to follow if you expect your Pull Request (PR) to be merged.
1. Check for existing pull requests that might already implement your changes.
You can review those pull requests with your suggestions for improvements.
1. Reference documentation or issues that are relevant to your changes.
1. If you implement a new feature, include some examples on how you intend it to be used in your PR description.
1. Write documentation for all public API methods and types.
1. Follow the coding style, even if unconventional, we want to keep it consistent to maintain readability.

75
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@@ -0,0 +1,75 @@
name: Bug Report
description: Found a Bug that needs to be fixed?
body:
- type: markdown
attributes:
value: |-
Please join the [Discord Server](https://discord.gg/0hMr4ce0tIl3SLv5) for questions or ask them in [our Discussions](https://github.com/discord-jda/JDA/discussions).
Keep in mind that this isn't the place to learn Java.
Please head over to [Stack Overflow](https://stackoverflow.com/questions/tagged/java) for your general programming questions.
- type: checkboxes
attributes:
label: General Troubleshooting
description: You confirm to have made the following checks first.
options:
- label: I have checked for similar issues on the Issue-tracker.
required: true
- label: I have checked for PRs that might already address this issue.
required: true
- type: input
attributes:
label: "Version of JDA"
description: |
Please let us know, which specific version of JDA you used.
If your version is outdated, maybe try updating and see if that already fixes your problem.
You can see the latest version in the [Releases](https://github.com/discord-jda/JDA/releases).
To find out your version, you can add `System.out.println(JDAInfo.VERSION);` in your code.
placeholder: "For example 5.0.0-beta.7"
validations:
required: true
- type: textarea
attributes:
label: "Expected Behaviour"
description: "What did you expect JDA to do?"
placeholder: "JDA should do ..."
validations:
required: true
- type: textarea
attributes:
label: "Code Example for Reproduction Steps"
description: |-
Please add the code you use to reproduce this problem.
Make sure to remove or replace any sensitive data like your Bot's token.
Put "N/A" if you don't have a reproducible setup.
The provided text will be rendered as Java code, so you don't have to provide a Code block for it.
render: java
placeholder: |-
public void causeError() {
throw new Exception("Error!");
}
validations:
required: true
- type: textarea
attributes:
label: "Code for JDABuilder or DefaultShardManagerBuilder used"
description: |-
Please provide the code used to create your JDA or ShardManager instance.
Make sure to remove or replace any sensitive data like your Bot's token.
The provided text will be rendered as Java code, so you don't have to provide a Code block for it.
render: java
placeholder: 'JDA jda = JDABuilder.createDefault("token").build();'
validations:
required: true
- type: textarea
attributes:
label: "Exception or Error"
description: |-
Share any Exception or Error you encountered.
Leave this blank or put "N/A" if you don't have an Exception or Error.
The provided text will be rendered as code, so you don't have to provide a Code block for it.
render: yesyes # Unknown code-names = no highlighting.
placeholder: "java.lang.NullPointerException: null"

23
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
blank_issues_enabled: false
contact_links:
- name: Discord
url: https://discord.gg/0hMr4ce0tIk3pSjp
about: The JDA Discord is the best place to receive fast support for your questions.
- name: Questions
url: https://github.com/discord-jda/JDA/discussions
about: You can ask questions about JDA and find useful information in our Discussions.
- name: Javadoc
url: https://docs.jda.wiki/
about: The Javadoc is the perfect place to retrieve information about various methods within JDA.
- name: Wiki
url: https://jda.wiki/
about: You can find answers to common questions on our Wiki. Make sure to read the FAQ page!
- name: Releases
url: https://github.com/discord-jda/JDA/releases
about: You can find the latest releases here on GitHub and on Bintray.
- name: Snapshots
url: https://jitpack.io/#discord-jda/JDA
about: You can find the latest dev builds on JitPack.
- name: Jenkins
url: https://ci.dv8tion.net/job/JDA5/
about: Dev builds also available on the Jenkins CI Server.

View File

@@ -0,0 +1,37 @@
name: Feature Request
description: Request a new feature
body:
- type: markdown
attributes:
value: |-
Please join the [Discord Server](https://discord.gg/0hMr4ce0tIl3SLv5) for questions or ask them in [our Discussions](https://github.com/discord-jda/JDA/discussions).
Keep in mind that this isn't the place to learn Java.
Please head over to [Stack Overflow](https://stackoverflow.com/questions/tagged/java) for your general programming questions.
- type: checkboxes
attributes:
label: General Troubleshooting
description: You confirm to have made the following checks first.
options:
- label: I have checked for similar issues on the Issue-tracker.
required: true
- label: I have updated to the [latest JDA version](https://github.com/discord-jda/JDA/releases/latest)
required: true
- label: I have checked the branches or the maintainers' PRs for upcoming features.
required: true
- type: textarea
attributes:
label: "Feature Request"
description: "Provide a small description of the feature you want to have added."
placeholder: "JDA should get ..."
validations:
required: true
- type: textarea
attributes:
label: "Example Use-Case"
description: |-
Provide some code or describe a possible use-case for this feature.
The provided text will be rendered as Java code, so you don't have to provide a Code block for it.
placeholder: "public void newAwesomeMethod(){}"
render: java

View File

@@ -36,15 +36,15 @@ console.log('%c Wenn du nicht 100% weißt, was du tust, schließe dieses Fenster
<div class="max-w-screen-xl px-4 py-8 mx-auto text-center lg:py-16 lg:px-6"> <div class="max-w-screen-xl px-4 py-8 mx-auto text-center lg:py-16 lg:px-6">
<dl class="grid max-w-screen-md gap-8 mx-auto text-gray-900 sm:grid-cols-3 dark:text-white"> <dl class="grid max-w-screen-md gap-8 mx-auto text-gray-900 sm:grid-cols-3 dark:text-white">
<div class="flex flex-col items-center justify-center"> <div class="flex flex-col items-center justify-center">
<dt class="mb-2 text-3xl md:text-4xl font-extrabold">3.543</dt> <dt class="mb-2 text-3xl md:text-4xl font-extrabold">27</dt>
<dd class="font-light text-gray-500 dark:text-gray-400">Parks</dd> <dd class="font-light text-gray-500 dark:text-gray-400">Parks</dd>
</div> </div>
<div class="flex flex-col items-center justify-center"> <div class="flex flex-col items-center justify-center">
<dt class="mb-2 text-3xl md:text-4xl font-extrabold">453.567</dt> <dt class="mb-2 text-3xl md:text-4xl font-extrabold">400</dt>
<dd class="font-light text-gray-500 dark:text-gray-400">Achterbahnen</dd> <dd class="font-light text-gray-500 dark:text-gray-400">Achterbahnen</dd>
</div> </div>
<div class="flex flex-col items-center justify-center"> <div class="flex flex-col items-center justify-center">
<dt class="mb-2 text-3xl md:text-4xl font-extrabold">5</dt> <dt class="mb-2 text-3xl md:text-4xl font-extrabold">785</dt>
<dd class="font-light text-gray-500 dark:text-gray-400">Datenbankeinträge</dd> <dd class="font-light text-gray-500 dark:text-gray-400">Datenbankeinträge</dd>
</div> </div>
</dl> </dl>