Skip to content

Commit

Permalink
.github update, actions, cla (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightenom authored Aug 27, 2024
1 parent e0ce873 commit 73b6609
Show file tree
Hide file tree
Showing 8 changed files with 206 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .github/CONTRIBUTING
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Please create an issue before submitting a pull request.

All pull request authors need to sign our CLA: https://cla-assistant.io/Minecolonies/minecolonies
83 changes: 83 additions & 0 deletions .github/ISSUE_TEMPLATE/10-bug-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Bug Report
description: If you have a reproducible in-game issue
labels: ["Bug"]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues.
required: true
- type: checkboxes
attributes:
label: Are you using the latest BlockUI Version?
description: |
Please check to see if any newer version fixes the issue you're experiencing.
[List of all BlockUI versions](https://www.curseforge.com/minecraft/mc-mods/blockui/files/all)
[List of all Structurize versions](https://www.curseforge.com/minecraft/mc-mods/structurize/files/all)
[List of all MineColonies versions](https://www.curseforge.com/minecraft/mc-mods/minecolonies/files/all)
options:
- label: |
I am running the latest **beta/release** version of BlockUI for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
required: true
- type: dropdown
id: mc_version
attributes:
label: Minecraft Version
options: ["1.20", "1.21"]
validations:
required: true
- type: input
attributes:
label: BlockUI Version
description: Exact BlockUI version either from file name or in-game mod list.
placeholder: 1.xx.xx-XXXX
validations:
required: true
- type: textarea
attributes:
label: Current Behavior
description: A concise description of what you're experiencing. Please provide screenshots and videos if possible.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Reproduction Steps
description: What should we do to make this issue show up in our own game? Try to give as much detail as possible here too so it's easier for us to reproduce this issue.
placeholder: |
1. Do this...
2. then this....
3. So that this happens
validations:
required: true
- type: input
attributes:
label: Logs
description: Please provide your latest.log related to the time during which you experienced the issue. Upload to eg. [gist](https://gist.github.com/) or [pastebin](https://pastebin.com/) and paste the link here.
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking any text area to highlight it and then dragging files in.
- type: textarea
attributes:
label: "Footer"
description: This is issue footer. Please leave this text as is.
value: |
---
## Viewers
* Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
* Add a comment if you have any insights or background information that isn't already part of the conversation.
validations:
required: true
72 changes: 72 additions & 0 deletions .github/ISSUE_TEMPLATE/30-feature-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Feature Request
description: If you have something new you would like to add
labels: ["Feature: Request"]
body:
- type: checkboxes
attributes:
label: Is there an existing feature request for this?
description: Please search to see if an issue already exists for your feature request.
options:
- label: I have searched the existing feature requests.
required: true
- type: checkboxes
attributes:
label: Are you using the latest BlockUI Version?
description: |
Please check to see if any newer version fixes the issue you're experiencing.
[List of all BlockUI versions](https://www.curseforge.com/minecraft/mc-mods/blockui/files/all)
[List of all Structurize versions](https://www.curseforge.com/minecraft/mc-mods/structurize/files/all)
[List of all MineColonies versions](https://www.curseforge.com/minecraft/mc-mods/minecolonies/files/all)
options:
- label: |
I am running the latest **beta/release** version of BlockUI for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
required: true
- type: dropdown
id: mc_version
attributes:
label: Minecraft Version
options: ["1.20", "1.21"]
validations:
required: true
- type: input
attributes:
label: BlockUI Version
description: Exact BlockUI version either from file name or in-game mod list.
placeholder: 1.xx.xx-XXXX
- type: textarea
attributes:
label: Related Mods and their Versions
description: Mods that may (even indirectly, like Opfitine) interact.
placeholder: |
1. Forge Version:
2. BlockUI Version:
3. Domum Ornamentum Version:
4. ....
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: "A clear and concise description of what the problem is. Ex: I'm always frustrated when..."
- type: textarea
attributes:
label: Feature description
description: "A clear and concise description of what you want to happen."
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking any text area to highlight it and then dragging files in.
- type: textarea
attributes:
label: "Footer"
description: This is issue footer. Please leave this text as is.
value: |
---
## Viewers
* Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
* Add a comment if you have any insights or background information that isn't already part of the conversation.
validations:
required: true
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
blank_issues_enabled: false
contact_links:
- name: Support Requests and Anything Else
about: Visit our discord
url: https://discord.minecolonies.com
- name: MineColonies Bug Tracker
about: Please follow the given template
url: https://github.com/ldtteam/minecolonies/issues/new/choose
- name: Structurize Bug Tracker
about: Please follow the given template
url: https://github.com/ldtteam/structurize/issues/new/choose

12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Closes #
Closes #

# Changes proposed in this pull request
-
-

## Testing
- [ ] Yes I tested this before submitting it.
- [ ] I also did a multiplayer test.

Review please
31 changes: 17 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
name: Build and Test PRs or General Branches
name: Build and Pre-release

on:
pull_request:
types:
- synchronize
- opened
- ready_for_review
- reopened
- synchronize
- labeled
- unlabeled
push:
branches:
- 'feature/**'
- 'bugfix/**'
- 'hotfix/**'
- 'fix/**'
- 'features/**'
- "version/*"
- "release/*"
- "testing/*"
workflow_dispatch:

permissions:
contents: write
contents: read
statuses: write
packages: write

jobs:
release:
build:
uses: ldtteam/operapublicacreator/.github/workflows/gradle.build.yaml@ng7
with:
java: 21
secrets:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
secrets: inherit
pre-release:
uses: ldtteam/operapublicacreator/.github/workflows/gradle.prerelease.yaml@ng7
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && contains( github.event.pull_request.labels.*.name, 'Pre-release')
with:
java: 21
secrets: inherit
19 changes: 6 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@ name: Release

on:
push:
branches: [
"version/*",
"release/*",
"testing/*",
]
branches:
- "version/*"
- "release/*"
- "testing/*"

permissions:
contents: write
statuses: write

jobs:
release:
uses: ldtteam/operapublicacreator/.github/workflows/gradle.publish.yaml@ng7
uses: ldtteam/operapublicacreator/.github/workflows/gradle.release.yaml@ng7
with:
java: 21
curse_release_type: ${{ contains(github.ref, 'release') && 'release' || 'beta' }}
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
CURSE_API_KEY: ${{ secrets.CURSE_API_KEY }}
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
secrets: inherit
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![BlockUI CurseForge](https://img.shields.io/curseforge/dt/522992?logo=curseforge&color=F16436&label=BlockUI)](https://www.curseforge.com/minecraft/mc-mods/blockui)
[![Release 1.20.1](https://img.shields.io/github/actions/workflow/status/ldtteam/blockui/release.yml?branch=version%2F1.20.1&label=Build%201.20.1&event=push)](https://github.com/ldtteam/BlockUI/actions/workflows/release.yml?query=branch%3Aversion%2F1.20.1+event%3Apush)
[![Release 1.21.1](https://img.shields.io/github/actions/workflow/status/ldtteam/blockui/release.yml?branch=version%2Fmain&label=Build%201.21.1&event=push)](https://github.com/ldtteam/BlockUI/actions/workflows/release.yml?query=branch%3Aversion%2Fmain+event%3Apush)
[![CLA assistant](https://cla-assistant.io/readme/badge/ldtteam/BlockUI)](https://cla-assistant.io/ldtteam/BlockUI)

### BlockUI

Expand Down

0 comments on commit 73b6609

Please sign in to comment.