Skip to content

Commit 4b9d4d6

Browse files
Initial Commit
1 parent df12ef3 commit 4b9d4d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1819
-1255
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_size = 4
10+
indent_style = space
11+
trim_trailing_whitespace = true
12+
13+
[*.java]
14+
max_line_length = 120
15+
16+
[*.{json,yml}]
17+
indent_size = 2
18+
19+
[*.md]
20+
max_line_length = 80
21+
trim_trailing_whitespace = false

.github/CODE_OF_CONDUCT.md

+131
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at [email]. All
63+
complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series of
85+
actions.
86+
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or permanent
92+
ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within the
112+
community.
113+
114+
## Attribution
115+
116+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117+
version 2.0, available at
118+
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
119+
120+
Community Impact Guidelines were inspired by
121+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
122+
123+
For answers to common questions about this code of conduct, see the FAQ at
124+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
125+
at [https://www.contributor-covenant.org/translations][translations].
126+
127+
[homepage]: https://www.contributor-covenant.org
128+
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
129+
[Mozilla CoC]: https://github.com/mozilla/diversity
130+
[FAQ]: https://www.contributor-covenant.org/faq
131+
[translations]: https://www.contributor-covenant.org/translations

.github/CONTRIBUTING.md

+141
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# Contributing
2+
3+
## Discussions
4+
5+
Discussions are a great way to ask for help without undergoing the formalities
6+
of opening an issue. You are encouraged to use discussions where appropriate.
7+
8+
* With a single question, you show where contributors can improve the user
9+
experience
10+
11+
## Issues
12+
13+
Issues are an invaluable asset to the success of this project.
14+
15+
* Ideas enable others to make meaningful contributions
16+
* Problems highlight where this project is lacking
17+
* Issues can help others debug their problems
18+
19+
Thank you for creating them.
20+
21+
## Pull Requests
22+
23+
Pull requests are the best way to get your ideas into this repository's
24+
codebase.
25+
26+
When deciding to merge a pull request, the following things are taken into
27+
account alongside the [Code of Conduct][codeofconduct]:
28+
29+
#### 1. Does it state intent
30+
31+
You should be clear with which problem you are trying to solve within your
32+
contribution.
33+
34+
#### 2. Is it justified
35+
36+
You should justify the way your change solves the problem, i.e. why this change
37+
is better. It may also be worth mentioning any alternate solutions considered
38+
but discarded.
39+
40+
#### 3. Is it of quality
41+
42+
There are no grammatical or spelling mistakes - it reads well.
43+
44+
Try to make sure your explanation can be understood without external resources.
45+
46+
Instead of giving a URL to a discussion, try to summarise the relevant points.
47+
48+
## Branches
49+
50+
A branch contains commits to be included in an
51+
aforementioned [pull request](#pull-requests).
52+
53+
### Branching Strategy
54+
55+
This project follows the [GitHub flow][github:flow] - a lightweight,
56+
branch-based workflow that supports teams and projects where deployments are
57+
made regularly.
58+
59+
#### `main`
60+
61+
At any given time, the latest code that exists in production can be found under
62+
the `main` branch.
63+
64+
#### `next` / `next-major`
65+
66+
An upcoming major release can be found under the `next` or `next-major`
67+
branches. For example, if `main` is currently on `v2.4.1`, the next major
68+
release is expected to be on `v3.0.0`.
69+
70+
#### `beta` / `alpha`
71+
72+
The latest Beta and Alpha releases can be found under the `beta` and `alpha`
73+
branches respectively. Their corresponding versions contain the `-beta`
74+
or `-alpha` suffixes.
75+
76+
#### `+([0-9])?(.{+([0-9]),x}).x`
77+
78+
Branches that match the given pattern are for maintenance releases, generally
79+
used for patching older versions of the codebase as outlined below.
80+
81+
## Commits
82+
83+
Many commits may form an aforementioned pull request.
84+
85+
### Commit Messages
86+
87+
This project adheres to [Conventional Commits][conventionalcommits] - a
88+
specification for adding human and machine-readable meaning to commit messages.
89+
90+
It is worth noting that your commit messages will be used to build
91+
automated [changelogs][changelog]! Hence, code owners may choose to squash your
92+
commits in any pull requests to ensure they meet our standards outlined in the
93+
aforementioned Conventional Commits.
94+
95+
## Versions
96+
97+
This project follows the [Semantic Versioning][semver] specification.
98+
99+
### Major Releases
100+
101+
A new feature or fix may introduce a breaking change, this warrants a new major
102+
version. These releases are not backwards compatible.
103+
104+
### Pre-releases
105+
106+
As new features and breaking changes are developed, we may decide to deploy
107+
these only to our most dedicated users to get feedback. These releases are
108+
identified by a `-beta` or `-alpha` suffix in the version specifier.
109+
110+
### Maintenance Releases
111+
112+
Often, it makes sense to release important patches to older versions so those
113+
who cannot update due to strict policies may benefit. To track an older major
114+
version, look for its related branch that follows the
115+
pattern `+([0-9])?(.{+([0-9]),x}).x`, e.g. `2.x`.
116+
117+
## Continuous Integration & Deployment (CI/CD)
118+
119+
This project uses [GitHub Actions][github:actions] in tandem
120+
with [semantic-release][semantic-release] to automate building, testing and
121+
deploying new versions of the codebase.
122+
123+
Please refer to the following [recipes][semantic-release:recipes] for triggering
124+
new releases.
125+
126+
### How it works?
127+
128+
When new commits make their way into one of the release branches outlined in
129+
the [Branching Strategy](#branching-strategy), a
130+
GitHub [workflow][workflow:publish] is triggered. This workflow in turn
131+
executes [semantic-release][semantic-release].
132+
133+
[changelog]: ../CHANGELOG.md
134+
[codeofconduct]: CODE_OF_CONDUCT.md
135+
[conventionalcommits]: https://www.conventionalcommits.org/
136+
[github:actions]: https://github.com/features/actions
137+
[github:flow]: https://guides.github.com/introduction/flow
138+
[semantic-release]: https://github.com/semantic-release/semantic-release
139+
[semantic-release:recipes]: https://github.com/semantic-release/semantic-release/blob/v17.4.4/docs/recipes
140+
[semver]: https://semver.org/
141+
[workflow:publish]: workflows/publish.yml

.github/ISSUE_TEMPLATE/bug-report.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Bug Report
2+
description: Report a bug
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Before reporting a crash here, please make sure you are on the latest supported version.
8+
9+
- type: textarea
10+
attributes:
11+
label: Expected behavior
12+
description: What you expected to see.
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
attributes:
18+
label: Observed/actual behavior
19+
description: What you actually saw.
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
attributes:
25+
label: Steps/models to reproduce
26+
description: This may include a screenshot, a video, or detailed instructions to help reconstruct the issue.
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
attributes:
32+
label: Version
33+
description: Please provide the version of the mod you're running. This can be found in the file name of the mod jar.
34+
validations:
35+
required: true
36+
37+
- type: checkboxes
38+
attributes:
39+
label: Agreements
40+
description: Please agree to the following.
41+
options:
42+
- label: I am running the latest version of the mod.
43+
required: true
44+
- label: My version of Minecraft is supported.
45+
required: true
46+
- label: I have searched for and ensured there isn't already an open issue regarding this.
47+
required: true
48+
49+
- type: textarea
50+
attributes:
51+
label: Other
52+
description: |
53+
Please include other information that may be helpful below.
54+
The more information we receive, the quicker and more effective we can be at finding the solution to the issue.
55+
validations:
56+
required: false

.github/ISSUE_TEMPLATE/config.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Wiki
4+
url: https://github.com/axieum/fabric-example-mod/wiki
5+
about: Please find helpful guides related to using the mod here
6+
- name: GitHub Discussions
7+
url: https://github.com/axieum/fabric-example-mod/discussions
8+
about: Please ask and answer any questions regarding the mod here
9+
- name: Join Discord
10+
url: https://discord.gg/example
11+
about: Please get involved with the mod's community here
12+
- name: About Fabric
13+
url: https://fabricmc.net/
14+
about: Please find information regarding the Fabric mod loader here

0 commit comments

Comments
 (0)